The document describes creating two internal tables in ABAP, populating them with data, and appending data between the tables. It creates an initial table with 6 lines, each containing an index and multiplied index. It then creates a second table with 5 lines of indexed and multiplied indexed data, and appends the first table and a range of lines from the first to the second table.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
The document describes creating two internal tables in ABAP, populating them with data, and appending data between the tables. It creates an initial table with 6 lines, each containing an index and multiplied index. It then creates a second table with 5 lines of indexed and multiplied indexed data, and appends the first table and a range of lines from the first to the second table.
The document describes creating two internal tables in ABAP, populating them with data, and appending data between the tables. It creates an initial table with 6 lines, each containing an index and multiplied index. It then creates a second table with 5 lines of indexed and multiplied indexed data, and appends the first table and a range of lines from the first to the second table.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
The document describes creating two internal tables in ABAP, populating them with data, and appending data between the tables. It creates an initial table with 6 lines, each containing an index and multiplied index. It then creates a second table with 5 lines of indexed and multiplied indexed data, and appends the first table and a range of lines from the first to the second table.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
* *& * *&---------------------------------------------------------------------* *& * *& * *&---------------------------------------------------------------------* REPORT ZSREENU_PROGRAM7 . **************FIRST INTERNAL TABLE************* DATA : BEGIN OF ITAB OCCURS 6, A TYPE I, B TYPE I, END OF ITAB. DO 6 TIMES. ITAB-A = SY-INDEX. ITAB-B = SY-INDEX * 10. APPEND ITAB. ENDDO. WRITE :'ITAB HEADER :'. WRITE : / ITAB-A,ITAB-B. WRITE : / 'ITAB BODY :'. LOOP AT ITAB. WRITE : / ITAB-A,ITAB-B. ENDLOOP. *************SECOND INTERNAL TABLE************** DATA : JTAB LIKE ITAB OCCURS 5 WITH HEADER LINE. DO 5 TIMES. JTAB-A = SY-INDEX. JTAB-B = SY-INDEX * 100. APPEND JTAB . ENDDO. * * *
APPEND ITAB TO JTAB.
APPEND LINES OF ITAB TO JTAB. APPEND LINES OF ITAB FROM 2 TO 4 TO JTAB. WRITE : / 'HEADER OF JTAB'. WRITE : / JTAB-A,JTAB-B. WRITE :/ 'BODY OF JTAB :'. LOOP AT JTAB. WRITE : / JTAB-A,JTAB-B. ENDLOOP.