How do you retrieve the data for repetitive structures
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / rudra vinod
I think this example program helps you..........
REPORT RPABAP06.
TABLES:PERNR.
INFOTYPES: 0008.
DATA: BEGIN OF WAGETYPES,
LGA LIKE P0008-LGA01,
BET LIKE P0008-BET01,
ANZ LIKE P0008-ANZ01,
EIN LIKE P0008-EIN01,
OPK LIKE P0008-OPK01,
END OF WAGETYPES.
GET PERNR.
RP_PROVIDE_FROM_LAST P0008 SPACE PN-BEGDA PN-ENDDA.
DO 20 TIMES VARYING WAGETYPES
FROM P0008-LGA01
NEXT P0008-LGA02.
IF WAGETYPES-LGA IS INITIAL.
EXIT.
ELSE.
WRITE: / WAGETYPES-LGA, WAGETYPES-BET.
ENDIF.
ENDDO.
Is This Answer Correct ? | 1 Yes | 1 No |
real time report in material management and sales and distribution with codes
A report has statements like: top-of-page. write :/. End-of-page. write:/. But the end-of-page is not displayed ?please verify?
how to upload logo in the smart forms
What is the role of an abapper in developement process? What is the process of technical specification and how it is carried out?
What is difference between dialog program and a report?
What is inheritance and multi-level inheritance? Explain with example ?
how to create lock object
What are Standard Texts?
why we are using pgm RSTXTRAN?
what is the difference between session ,call Transaction?
Explain what is the difference between primary key and unique key?
How can you call a page explicitly in smart forms?