How to move the even records of one internal table to other

Answer Posted / abapguru

data: lv_div type f.

loop at itab.
lv_div = sy-index / 2.
if lv_div = 0.
move itab to itab1.
append itab1.
endif.
endloop.

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read 5th record from Hash Internal Table?

1037


What are the mandatory fields to be filled for BAPI_CUSTOMER_CREATEFROMDATA1

3258


What is an Unpack command?

824


what is call back in alv?

2192


What is the difference between select statement and provide statement ? : abap hr

784


How to create any functions? How to go about it?

766


What are the attributes of a field that can be activated or deactivated during runtime?

741


What are smart forms?

807


singleton class

1126


What are the different types of abap/4 programs?

802


What are function modules?

776


hi,i worked mostly in core abap.know iam assigned to XI utility project.can u experts let me know what r the basic things i need to learn to work in XI utility project.i already searched in forum.thanks in advance.

1757


What are the data classes in abap?

809


WHAT ARE THE MANDATORY FIELDS TO BE FILLED FROM TABLES BAPIITEMIN, BAPIPARTNR, BAPIITEMEX, BAPICUCFG, BAPICUINS, BAPICUPRT, AND BAPICUVAL IN BAPI 'BAPI_QUOTATION_CREATEFROMDATA

2259


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

822