Declaring Structures to keep constituents for Report data-items

Overview
In case of ABAP/4(SAP R/3) we are declaraing structures to keep constituents of the data items of the report as follows:

How to do it ?
 000400
 000410 * Structures to keep constituents for Supplier Address
 000420  DATA: BEGIN OF SUPPLIER_ADDRESS,
 000430  SUP_NAME        LIKE         LFA1-LIFNR,
 000440  SUP_TITL            LIKE         LFA1-ANRED,
 000450  SUP_ADD1          LIKE         LFA1-NAME1,
 000460  SUP_ADD2          LIKE         LFA1-NAME2,
 000470  SUP_ADD3          LIKE         LFA1-ORT01,
 000480  SUP_ADD4          LIKE         LFA1-PSTLZ,
 000490  SUP_ADD5          LIKE         LFA1-LAND1,
 000500  SUP_TELF1         LIKE         LFA1-TELF1,
 000510  END OF SUPPLIER_ADDRESS.
 

 
Declaring Internal tables to keep the IG(Master, Detail, Total)

Overview
In case of ABAP/4(SAP R/3) we are declaraing Internal tables to keep Information groups/records of the report as follows:

How to do it ?
000520 * Array to keep Master data
000530 DATA: BEGIN OF MASTER OCCURS 100,
000540 SUP_CODE           LIKE       EKKO-LIFNR,
000550 SUPP_ADDR         LIKE       SUPPLIER_ADDRESS,
000560 PO_NO                  LIKE       EKPO-EBELN,
000570 PO_ITNO               LIKE       EKPO-EBELP,
000580 MAT_CODE          LIKE        EKPO-MATNR,
000590 MAT_DESC           LIKE        MAKT-MAKTX,
000600 END OF MASTER.
000640
 

 

 Declaring User Input screen fields

Overview
In case of ABAP/4(SAP R/3) we are declaraing User input screen fields to accept a range of values for the data items as follows:

How to do it ?
000360 * user input screen
000370   SELECT-OPTIONS:
000380   VEN_NO FOR LFA1-LIFNR,
000390   VEN_NAME FOR LFA1-NAME1,
000400   VEN_ADDR FOR SUPPLIER_ADDRESS,
000410 * CON_PERS FOR
000420   PO_NO FOR EKPO-EBELN,
000430   IT_NO FOR EKPO-EBELP,
000440   MAT_NO FOR EKPO-MATNR,
000450   MAT_DESC FOR MAKT-MAKTX,
000460   DEL_NO FOR  EKET-ETENR,
000470   DEL_DATE FOR EKET-EINDT,
000480   ORD_QTY FOR  EKET-MENGE,
000490   RCV_QTY FOR  EKET-MENGE,
000500   RJT_QTY FOR  EKET-MENGE,
000510   BAL_QTY FOR  EKET-MENGE,
000520   REMARKS FOR  DETAIL-REMARKS.

 
Note:
These suggestions are only valid for SAP and will change depending on the programming environment. Please e-mail me any
suggestion, Improvements that you have explored to achieve it.

 
 
 
 
If you have comments or suggestions, email us at gssoft@goplay.com

Copyright ©, 1998, GS Software, Last modified  Jan 1,1998