How to move the even records of one internal table to other
Answer Posted / ariv
types : begin of ty_vbak,
vbeln type vbeln_va,
erdat type rdat,
end of ty_vbak.
DATA: it TYPE TABLE OF ty_vbak,
it1 TYPE TABLE OF ty_vbak,
wa type ty_vbak.
data: LO type I VALUE 1.
SELECT vbeln erdat FROM vbak INTO TABLE it UP TO 10 ROWS.
LOOP AT it INTO WA.
IF SY-TABIX = LO.
APPEND WA TO IT1.
LO = LO + 2.
ENDIF.
endloop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a modification assistant?
Do we create table fields with out data elements and domains?
What are the uses of secondary indexes?
What are the Control levels in internal tables?
hi to all abap interview guys please notify this .. first if u have any doubts please go through google search or else please do debugging with some sample programs . but don't post even silly questions too. thanking you.
What are the classifications of the sap abap data classes?
When is the top-of-page event triggered? : abap data dictionary
How do you save data in bdc tables? : abap bdc
What is the different type of projects? : sap abap hr
Where do you find info on new developments in SAP?
In which cluster time results are stored? : abap hr
How is the command suppress-dialog useful?
Difference between stand alone CRM and back-end CRM
How do you find out whether a file exits on the presentation server?
What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?