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 Create reports in SD module such as sales order report, which covers all organization levels, delivery status, invoice status, shipping details and partner function details. The data will be extracted from VBAP, VBPA, VBAK, VBUP, VBFA, KNA1, LIPS, VBRP, MARA, VBEP and KONV tables. plz mention the detail coding Tahnks, Rahul
what is difference between user exit, customer exit and badi?
What are the parameter types for a method?
What are the two methods for modifying sap standard tables?
What are the kinds of foreign key fields?
What is a type group?
What will you code in start-of-selection & end-of-selecton & why?
What is the diff between database view and maintenance view?
Is a logical database a requirement/must to write an abap/4 query?
What is the difference between a pool table and a transparent table and how they are stored at the database level?
How many types of data classes are there in sap?
What is the different type of projects? : sap abap hr
What are the objects of the abap dictionary or what types of objects can be created in the abap dictionary? : abap data dictionary
What is lock object ? : abap data dictionary
In sap scripts, how will you link form with the event driven?