Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Does the call transaction method allow multiple transactions to be processed by sap?

990


What is a modification assistant?

1031


How would you set the formatting options statically and dynamically within a report?

1065


What are internal tables? How do you get the number of lines in an internal table?

1064


How to handle error in session method? : abap bdc

1285


What are the steps to execute session method?

1046


What are the different types of abap reports in sap?

1313


How do you get the number of lines in an internal table?

1054


Print options in smartforms?

1979


what is difference between user exit, customer exit and badi?

5174


What is database utility?

1253


Differentiate between report and dialog program

1053


In which cluster time results are stored? : abap hr

1045


What is projection view?

939


Explain some essential objects in abap dictionary?

1157