How do you retrieve the data for repetitive structures
Answer Posted / amit
TABLES:PERNR.
INFOTYPES: 0008.
DATA: BEGIN OF WAGETYPES,
LGA type P0008-LGA01,
BET type p0008-BET01,
ANZ type p0008-ANZ01.
data:END OF WAGETYPES.
write:/ 'PersonalNo','Wage type ' , ' ' ,
'Amount' , ' ' , 'Number'.
START-OF-SELECTION.
GET PERNR.
RP_PROVIDE_FROM_LAST P0008 SPACE PN-BEGDA PN-ENDDA.
DO 12 TIMES
VARYING WAGETYPES-lga FROM P0008-LGA01
NEXT P0008-LGA02
VARYING WAGETYPES-bet FROM P0008-BET01
NEXT P0008-BET02
VARYING WAGETYPES-anz FROM P0008-ANZ01
NEXT P0008-ANZ02 .
IF WAGETYPES-LGA IS INITIAL.
EXIT.
ELSE.
WRITE: / pernr-pernr , ' ' , WAGETYPES-LGA , WAGETYPES-
bet , WAGETYPES-anz.
ENDIF.
ENDDO.
END-OF-SELECTION.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Control Break statements- At new...endat.
Explain the advantages and disadvantages of abap query tool?
How can we declare a table control in the abap/4 program?
write a program for creation of customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA'.
What is the function module to popup contents in the internal table?
can anyone please tell me, in orient paper mill project which fields exits for creating report.
What is a data dictionary? : abap data dictionary
Which function module would you use to check the user’s authorization to access files before opening a file?
What are field symbols?
Have you set up a back ground job? How to create a background job without a variant ? : abap bdc
When to use logical database?
Does every abap/4 have a modular structure? : abap modularization
What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?
What is a data class? : abap data dictionary
How to call other programs?