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 the modification assistant?

1019


What is an Open Item in SAP? How will you find an Open Item in SAP?

1081


Which bdc you prefer? : abap bdc

1326


What is the collect statement?

1147


hi,i worked mostly in core abap.know iam assigned to XI utility project.can u experts let me know what r the basic things i need to learn to work in XI utility project.i already searched in forum.thanks in advance.

2055


What is update task

8428


How many ways can a sap system be accessed?

1242


What are the dynapro keywords?

1136


Can we display a list in a pop-up screen other than full-size stacked list?

1114


​​What is amdp (abap managed data procedures)?​​

1199


Why do we declare a method of a class final? What can be the purpose? Give a scenario.

1426


If I want to execute a program only in background not in foreground is there any option for this? : abap bdc

1014


Explain the difference between float and packed data type?

1382


Write an abap program for creation of customer enquiry using BAPI 'BAPI_INQUIRY_CREATEFROMDATA'.

2203


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

1178