Skip to main content

YCLASSICAL_JOINING

*&---------------------------------------------------------------------* *& Report  YCLASSICAL_JOINING *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT   yclassical_joining  NO   STANDARD   PAGE  HEADING                               LINE - SIZE   110                               LINE - COUNT   255                               MESSAGE - ID  z...

YINTERACTIVE_REPORT

*&---------------------------------------------------------------------*
*& Report  YINTERACTIVE_REPORT
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  yinteractive_report1 NO STANDARD PAGE HEADING
                             
LINE-SIZE 60
                             
LINE-COUNT 255
                             
MESSAGE-ID zsan.

** T Y P E    D E C L A R A T I O N **
TYPES : BEGIN OF ty_mara,
         matnr 
TYPE matnr,
         ernam 
TYPE ernam,
         pstat 
TYPE pstat_d,
        
END OF ty_mara,

        
BEGIN OF ty_makt,
         matnr 
TYPE matnr,
         spras 
TYPE spras,
         maktx 
TYPE maktx,
        
END OF ty_makt.

** D A T A     D E C L A R A T I O N **
DATA : it_mara  TYPE STANDARD TABLE OF ty_mara,
       it_makt  
TYPE STANDARD TABLE OF ty_makt,
       wa_mara  
TYPE ty_mara,
       wa_makt  
TYPE ty_makt,
       gv_matnr 
TYPE mara-matnr.

** C O N S T A N T     D E C L A R A T I O N **
CONSTANTS : c_23  TYPE matnr VALUE '23',
            c_100 
TYPE matnr VALUE '100',
            c_eng 
TYPE spras VALUE 'E'.

** S E L E C T I O N    S C R E E N **
SELECTION-
SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-006.
SELECT-OPTIONS   : s_matnr FOR gv_matnr.
SELECTION-
SCREEN : END OF BLOCK b1.

INITIALIZATION.
  s_matnr-low  = c_23.                                      
"'23'.
  s_matnr-high = c_100.                                     
"'100'.
  
APPEND s_matnr.

START-
OF-SELECTION.
  
SELECT matnr   " Material Number
         ernam   
" Name of Person who Created the Object
         pstat   
" Maintenance status
  
FROM mara INTO TABLE it_mara
  
WHERE matnr IN s_matnr.
  
IF sy-subrc EQ 0.
    
SORT it_mara BY matnr.
    
SELECT matnr
           spras
           maktx
    
FROM makt INTO TABLE it_makt
    
FOR ALL ENTRIES IN it_mara
    
WHERE matnr = it_mara-matnr
    
AND   spras = c_eng.
    
IF sy-subrc NE 0.
      
MESSAGE s001(zsan). " No values found
      
LEAVE LIST-PROCESSING.
    
ENDIF.
  
ELSE.
    
MESSAGE s001(zsan). " No values found
    
LEAVE LIST-PROCESSING.
  
ENDIF.

END-OF-SELECTION.

* Now proceed for output.
  
LOOP AT it_mara INTO wa_mara.
    
AT FIRST.
      
ULINE.
      
WRITE:/1'|',  'Material Number'(001)     COLOR 1,  19'|',
                    
'Created By'(002)          COLOR 1,  32'|',
                    
'Maintenance status'(003)  COLOR 1,  60'|'.
      
ULINE.
    
ENDAT.
    
HIDE : wa_mara-matnr.
    
WRITE:/1'|', wa_mara-matnr,  19'|',
                 wa_mara-ernam,  32
'|',
                 wa_mara-pstat,  60
'|'.
    
ULINE.

    
AT LAST.
      
WRITE: 1'|''This is the end of report'(004), 60'|'.
      
ULINE.
    
ENDAT.

  
ENDLOOP.

AT LINE-SELECTION.   " Intaractive Events

* Now proceed for output of MAKT.
  
READ TABLE it_makt INTO wa_makt WITH KEY matnr = wa_mara-matnr.
  
ULINE.
  
WRITE:/1'|',  'Material Number'(001)     COLOR 3,  19'|',
                
'Material Desc'(003)       COLOR 3,  60'|'.
  
ULINE.
  
WRITE:/1'|', wa_makt-matnr,  19'|',
               wa_makt-maktx,  60
'|'.
  
ULINE.



BASHAR RABBANI

Comments

Popular posts from this blog

SAP INTERVIEW QUESTIONS AND ANSWERS

SAP INTERVIEW QUESTIONS AND ANSWERS What is SAP? SAP is the name of the company founded in 1972 under the German name (Systems, Applications, and Products in Data Processing) is the leading ERP (Enterprise Resource Planning) software package. SAP Basics feature * Configuration of the SAP modules o Transaction SPRO - this is the main tree for all the configuration. * Function Key o F1 - Help o F4 - Possible entries or matchcode for the field you are accessing o F5 - Selection screen o F7 - Previous screen o F8 - Next screen o F9 - Technical info o CTRL+X - Cut o CTRL+C - Copy o CTRL+V - Paste * Navigation o /n Skip to the next record if you are processing one batch input session o /bend Cancel a batch input foreground process o /nend Close all R/3 sessions and logoff o /nxxx x Call the transaction xxxx in the same session o /o Generate a session list o /oxxx x Call the transaction xxxx in an additional session o /i Delete the current session o /h Turn the de...

ABAP Code Inspector Tool

ABAP Code Inspector Tool The Code Inspector is a tool for checking static ABAP coding and DDIC objects . It helps developers to adhere to programming standards and guidelines by creating messages on less-than-optimal coding. The Code Inspector offers various possibilities to define object sets and to combine multiple single checks in so-called "check variants". Single object checks from the Development Workbench You can check a single object with the Code Inspector from the ABAP Editor (transaction SE38), the Function Builder (transaction SE37), the Class Builder (transaction SE24), or the ABAP Data Dictionary (transaction SE11). To do this, choose <object> > Check > Code Inspector from the menu, where <object> can be a program, function module, class, or table. Checks on transport objects from the Transport Organizer You can invoke the Code Inspector from within the Transport Organizer (transaction SE09) to check objects in a transport reques...

Some Basics of SAP ABAP

Some Basics of SAP ABAP.:- 1.What is an ABAP? ABAP (Advanced Business Application Programming) is a high level programming language created by the German software company SAP. It is currently positioned as the language for programming SAP&apos;s Web Application Server, part of its NetWeaver platform for building business applications. Its syntax is somewhat similar to COBOL. **************** 2.What is an ABAP data dictionary? ABAP 4 data dictionary describes the logical structures of the objects used in application development and shows how they are mapped to the underlying relational database in tables/views. *************** 3.What are domains and data element? Domains:Domain is the central object for describing the technical characteristics of an attribute of an business objects. It describes the value range of the field. Data Element: It is used to describe the semantic definition of the table fields like description the field. Data element describes how a field can be dis...