1 / 5

ABAP Report uses Internal tables and Work Areas

In ABAP write statement is used to print output and : is chain statement ( Print multiple records ).<br><br>https://www.ducatindia.com/Best-sap-erp-training/

ducathub
Download Presentation

ABAP Report uses Internal tables and Work Areas

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WELCOME TO DUCAT INDIA ABAP Report uses Internal tables and Work Areas 7070905090 info@ducatindia.com

  2. ABAP Report uses Internal tables and Work Areas In ABAP write statement is used to print output and : is chain statement ( Print multiple records ). Display MARA data DATA : IT_MARA TYPE TABLE OF MARA . "INTERNAL TABLE FOR MARA TABLE DATA : WA_MARA TYPE MARA. "WORK AREA FOR MARA SELECT * FROM MARA INTO TABLE IT_MARA. " GET MARA DATA LOOP AT IT_MARA INTO WA_MARA. WRITE :/ WA_MARA-MATNR, WA_MARA-MTART, WA_MARA-MEINS, WA_MARA-MBRSH. "Display required fields ENDLOOP

  3. LOOP AT IT_MARA INTO WA_MARA. **TYPES is a statement which is used to declare a user defined internal table with specific fields TYPES : BEGIN OF TY_MARA, MATNR TYPE MARA-MATNR, MTART TYPE MARA-MTART, MEINS TYPE MARA-MEINS, MBRSH TYPE MARA-MBRSH, END OF TY_MARA. DATA : IT_MARA TYPE TABLE OF TY_MARA . "INTERNAL TABLE FOR ABOVE USER DEFINED TYPES TABLE DATA : WA_MARA TYPE TY_MARA. "WORK AREA FOR ABOVE USER DEFINED TABLE SELECT MATNR MTART MEINS MBRSH FROM MARA INTO TABLE IT_MARA. " GET MARA DATA Display MARA data using user defined internal table WRITE :/ WA_MARA-MATNR, WA_MARA-MTART, WA_MARA-MEINS, WA_MARA- MBRSH. "Display required fields

  4. Display MARA data using user defined internal table ABAP 7.4 SELECT matnr, mtart, meins, mbrsh FROM mara INTO TABLE @DATA(it_mara). ” GET MARA DATA LOOP AT it_mara INTO DATA(wa_mara). WRITE :/wa_mara-matnr, wa_mara-mtart, wa_mara-meins, wa_mara-mbrsh. “Display required fields ENDLOOP.

  5. THANK YOU ABAP Report uses Internal tables and Work Areas 7070905090 info@ducatindia.com

More Related