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 do you document abap/4 programs? Do you use program documentation menu option?
What two statements are required in an abap program to output an icon using a written statement?
How do you write manual bdc session method? : abap bdc
How to create user interfaces for lists?
How to call transaction in session method without recording?
MY DOMAIN IS SAP-ABAP COMPARE TO WEBDYNPRO AND CRM-TECHNICAL WHICH IS BEST?
Explain difference between primary key and unique key?
Name a few data dictionary objects?
What are field symbols and field groups? Have you used component idx of structure clause with field groups?
What are the events in classical reports?
What is the tcode for sapscript forms?
What is the procedure you followed to upload the data?
Normally how many and what files get created when a transaction program is written? what is the XXXXXTOP program?
there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?
Explain the different types of view?