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


Please Help Members By Posting Answers For Below Questions

Difference between top-of-page and top-of-page during at line- selection?

2125


What are the two levels in defining a match code ?

808


What is the tcode to create indexes?

776


What are the differences between a database index and a match code?

776


When the top-of-page event does get triggered?

857






identify valid statement when coding a field exit ? a) submit RSCA101X b)MESSAGE E101 C)MESSAGE I101 d)BREASK-POINT

2186


What are logical databases?

806


What is sap abap tables?

804


How do you work with semi colon se[arated files in BDC ?

1670


What is personnel sub are

1742


What is append search help? : sap abap data dictionary

878


If your project is support project ? when is your implementation has completed ?

1734


Explain the Inportance of pa30? : abap hr

972


How many types of buffering? : abap data dictionary

901


What are the main uses of the primary key?

957