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
can i use table key and key in an internal table and explain the functionalities of each one and what functionality does it give if both are used for same internal table
What is an Open Item in SAP? How will you find an Open Item in SAP?
Can i Have Some Examples on Enhancements.
i have executed a report via back ground job, in this report i have used enqueue and dequeue function modules on a table, but before releasing the lock(before dequeue function module is not call) job gives the dump, so the lock is not released the table, here my question is how to set the lock automatically release the there is a short dump before calling the dequeue module?
How can we upload a text file having delimiters in to legacy system? : abap bdc
what is the exact code that shoud be implimented in sap note
how to Implement a BADI in which it restricts the access when purchase order is created against contract using definition ME_PURCHDOC_POSTED. please tell me the answers if any one knows. thanks in advance. :ravikiran
How do you set up background jobs in sap? What are the steps? What are the events driven batch jobs?
How can we determine a vendor is Bloc/Unblock from the table LFA1?
identify valid statement when coding a field exit ? a) submit RSCA101X b)MESSAGE E101 C)MESSAGE I101 d)BREASK-POINT
Define abap/4 layer?
What is roll area?
Structures can contain data only during the runtime of a program (t/f) : abap data dictionary
What does the insert statement in extract datasets do? : abap modularization
What is the use of start-of-selection.,if not use in report what will happen,?