How to move the even records of one internal table to other
Answer Posted / nag
REPORT ztest_report11.
TYPES : BEGIN OF ty_itab ,
kunnr TYPE kunnr,
END OF ty_itab.
DATA : itab_even TYPE TABLE OF ty_itab,
itab_odd TYPE TABLE OF ty_itab,
itab TYPE TABLE OF ty_itab,
wa TYPE itab.
SELECT kunnr FROM kna1 INTO TABLE itab UP TO 20 ROWS.
LOOP AT itab INTO wa.
IF sy-tabix MOD 2 = 0.
APPEND wa TO itab_even.
ELSE.
APPEND wa TO itab_odd.
ENDIF.
ENDLOOP.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to read the standard field value in your custom program.
Explain the function module in bdc?
Why grouping of fields is required? What is the max no of modification groups for each field?
In which cluster time results are stored? : abap hr
What are the screen painter and menu painter?
How can we achieve MVC ?
How do you set up background jobs in sap?
Example of table cluster and cluster tables.
A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain.? : abap data dictionary
What are lock objects?
wat are the process that can be executed & tracked in a workflow?
What are the basic components of dialog program?
Write the bdc table structure? : abap bdc
What is database view ? : sap abap data dictionary
Why do we need enhancements?