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

What is the table buffer? Which type of tables used this buffer?

558


What is personnel sub are

1575


What does the extract statement do in extract datasets? : abap modularization

564


How many default tab strips are there? How to insert more tabs in it?

607


What is abap?

613






How can cluster table be created?

656


What are the domains and data element?

564


How do you find out whether a file exits on the presentation server?

572


Sales Order Information Report that lists information like sales order no, Item no, material no, Quantity, Quantity unit, Net value, Currency,Sub Total, Grand Total. plz mention the detail coding Tahnks, Rahul

1717


data:zxyz type xyz. where xyz is a standard sap structure where it contains data type fields and line type (refer to other structure) fields. my question is how to assign values to field zxyz-str-matnr where str is a structure inside xyz structure.

1897


What are the difference between tables and structures?

617


What is the difference between collect and append statements?

565


What are the two different ways of building a match code object? : abap data dictionary

613


What are the objects of the abap dictionary or what types of objects can be created in the abap dictionary? : abap data dictionary

538


Under Data Transfer Portion of ABAP, what do you mean by DX Project

1853