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


Please Help Members By Posting Answers For Below Questions

Explain what are the different functions used in sap script? What are the parameters used in each function?

557


The extract statements in field groups can be used before or after processing the sort statements. State true or false. : abap modularization

614


What are the attributes of the data? : abap data dictionary

656


When a program is created and need to be transported to prodn does selection texts always go with it? If not how do you make sure? Can you change the cts entries? How do you do it?

572


Fallback class

1744






How are the date abd time field values stored in sap?

601


Update types in Call transaction method. What is the difference?

607


please any one can tell me How to validate the data in Table maintinance generator?how can u validate the table field values if u r entering the data into fields .it shows record is wrong?wher we can done validation in table maitenance generator before getting the data as out ?

1585


Explain sap abap 3-tier architecture?

737


What is example class

888


wht is the diff. b/n initialization and lotus of event

1395


What is meant by stacked list?

601


What does nw 7.4 sp 05/nw 7.5 sp 02 offers in abap?

692


What is the definition of modification in an sap system and how do they impact an upgrade?

539


What are the different attributes that can be assigned to a variant?

587