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 are the differences between table controls and step loops?
What is occurs in internal table?
What is an Unpack command?
Explain the Importance of pa20? : abap hr
What is alv programming in abap? When is this grid used in abap? : abap hr
To how many tables can an append structure be assigned. : abap data dictionary
Give an example of interface from your project explaining why you used it?
Static and instance variable and method with live example. Why and when to use
what are the problem we face during development( if we say v are in support(development)? what are the critical problems araises during LSMW updation and Smart form layout development for involce and po? very very important questions now a days commonly asking..plz plz reply me
How to eliminate duplicate entries in internal tables? : abap data dictionary
How do you set up background jobs in sap? What are the steps? What are the events driven batch jobs?
How to combine multiple order in one Delivery ( Step by Step)?
What are the disadvantages of abap query tool?
Persistent class
How do you write manual bdc session method? : abap bdc