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

How do you get the number of lines in an internal table?

620


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

2046


What are the uses of the information in the data dictionary? : abap data dictionary

730


Mention the various databases integrities?

616


what is sales order confirmation and how can do design it in webdynpro. what is Tcode for the same?

1999






How will you link form with the event driven in sap scripts?

535


what are the two methods of modifying sap standard tables ?

559


How to create a check box/option button in a list?

2462


What are the function of the transport system and workbench organiser? : abap data dictionary

560


how to genernate 21 sencondary index

7022


How does the interection between the dynpro and the abap/4 modules takes place?

649


What is an update type with reference to a match code id?

568


What is the difference between a substructure and an append structure?

627


What is an “on input filed” statements?

631


How to convert normal function module to bapi?

1523