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


Please Help Members By Posting Answers For Below Questions

Control Break statements- At new...endat.

902


Explain the advantages and disadvantages of abap query tool?

524


How can we declare a table control in the abap/4 program?

642


write a program for creation of customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA'.

2779


What is the function module to popup contents in the internal table?

563






can anyone please tell me, in orient paper mill project which fields exits for creating report.

1278


What is a data dictionary? : abap data dictionary

581


Which function module would you use to check the user’s authorization to access files before opening a file?

609


What are field symbols?

642


Have you set up a back ground job? How to create a background job without a variant ? : abap bdc

599


When to use logical database?

573


Does every abap/4 have a modular structure? : abap modularization

700


What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?

602


What is a data class? : abap data dictionary

634


How to call other programs?

622