How do you retrieve the data for repetitive structures
Answer Posted / rudra vinod
I think this example program helps you..........
REPORT RPABAP06.
TABLES:PERNR.
INFOTYPES: 0008.
DATA: BEGIN OF WAGETYPES,
LGA LIKE P0008-LGA01,
BET LIKE P0008-BET01,
ANZ LIKE P0008-ANZ01,
EIN LIKE P0008-EIN01,
OPK LIKE P0008-OPK01,
END OF WAGETYPES.
GET PERNR.
RP_PROVIDE_FROM_LAST P0008 SPACE PN-BEGDA PN-ENDDA.
DO 20 TIMES VARYING WAGETYPES
FROM P0008-LGA01
NEXT P0008-LGA02.
IF WAGETYPES-LGA IS INITIAL.
EXIT.
ELSE.
WRITE: / WAGETYPES-LGA, WAGETYPES-BET.
ENDIF.
ENDDO.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
after creating lock object if does n't access record by second user what should we do?
suppose i want to print sap script output in different printers at a time what are the settings i'll have to make?
Did you create help views?
What is the difference between getting and get late?
What is the function of the transport system and workbench organiser?
What are uses of foreign key?
what is sap scriptview ?
What are the two statements which are required in an abap program to output an icon using a write statement?
What are different ABAP editors? What are the differences?
What are conversion & interface programs in sap?
How is conversion of data types done between abap/4 & db layer?
Explain buffering
On which event we can validate the input fields in module programs?
How many types of tables exist and what are they in data dictionary?
What two statements are required in an abap program to output an icon using a write statement?