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
What is table pool?
What should be the approach for writing a bdc program? : abap bdc
How to write a code for multiple transactions? : abap bdc
write a program for creation of customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA'.
What is the function module for INDIAN PAYROLL to read table cluster for given cluster table and sequence number?
What is the function of the correction system?
In se11 -->Tech. settings --> Data class. If I save table as Mater data OR Transaction data, what effect will it has for 'Storage' in Database after activation. or In Database how it will store in both the cases.
What is the difference between data elements and domains? : abap data dictionary
What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?
While doing bdc exp va01 transaction sometime in the item level data shows only 4 items and other times it will show 6 line items, how will you maintain this kind of screen resolutions scenerio? : abap bdc
How do you differentiate tax for different countries? : sap abap hr
What is a function group? : abap modularization
What are the different types of the variable in the sap abap?
What statement will be found in an sap application program that implements a function module exit?
Persistent class