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
Explain what is the difference between sy-tabix and sy-index? Where it is used?
How to handle errors in call transaction bdc method without using bdcmsgcoll internal table? : abap bdc
What is a maintenance view? : abap data dictionary
What is an authorization in sap?
What is the difference between select statement and provide statement ? : abap hr
what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.
What are the 3 types of tables in sap? : abap data dictionary
A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain.? : abap data dictionary
hi I am in training of functional module, i am unable to understand what exactly use of IDOC,BAPI,DIM and BIM. As LSMW and BDC methods are used for data conversion from legacy to sap. Might be it is silly question. please explain me
How do you document abap/4 programs? Do you use program documentation menu option?
What are the uses of interactive reporting?
What are the steps in a bdc session? : abap bdc
How many primary keys can be created for a table?
What is the max no of match code id's that can be defined for one match code object? : abap data dictionary
What do you mean by batch data communications programming?