How do you retrieve the data for repetitive structures
Answer Posted / 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 |
Post New Answer View All Answers
How do you document ABAP programs? Do you use program documentation menu option?
when are objects are passed from task to the change request?
Difference between transparent tables and pooled tables? : abap hr
What is design pattern? Provide example .Why are we using it?
How to transfer the objects? Have to transferred any objects?
What happens if we use leave to list-processing without using suppress-dialog?
What is a multiple line field? : abap bdc
What is an “on input filed” statements?
A field containing quantity amounts (data type quan) must be assigned to a referencetable and a reference field. Explain?
While sorting field groups we cannot use more than one key field. State true or false. : abap modularization
What is the maximum number of structures that can be included in a table or structure
What is use of transparent table in abap? How it is different from pool tables?
Write syntax for message error (report)?
if while coding power goes off , how to retrieve the codes?
A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?