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 / n m s m krishna

DATA : BEGIN OF ITAB OCCURS 0,
         KUNNR TYPE KUNNR,
         END OF ITAB.
DATA : ITAB_EVEN LIKE ITAB OCCURS 0 WITH HEADER LINE.
DATA : ITAB_ODD LIKE ITAB OCCURS 0 WITH HEADER LINE.




SELECT KUNNR FROM KNA1 INTO TABLE ITAB UP TO 20 ROWS.




LOOP AT ITAB.
  IF SY-TABIX MOD 2 = 0.
    ITAB_EVEN-KUNNR = ITAB-KUNNR.
    APPEND ITAB_EVEN.
  ELSE.
    ITAB_ODD-KUNNR = ITAB-KUNNR.
    APPEND ITAB_ODD.
  ENDIF.
ENDLOOP.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is mean be On Change of in Control Break statement

1271


How are the function code handles in flow logic?

1067


What is the difference between Check and Continue?

1119


What is netweaver???what is the relationship with ABAP?

2159


​​Can multiple abap systems connect to abap database?

1097


Did you create secondary index?

1143


How will you transfer data into a file in application server?

1040


10) How to get Item Header in Sales Order?

1998


How do you work with semi colon se[arated files in BDC ?

1927


what are the two methods of modifying sap standard tables? : abap data dictionary

1101


What are the merits of its?-

1058


What is the use of at new statement ?

1774


What is the max. No. Of structures that can be included in a table or structure? : abap data dictionary

963


What is exception class and test class. How to use it?

1368


How many tables are there in sap?

1097