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 are the dynamic actions and how to configure it? : sap abap hr

1214


What are the data types of the abap/4 layer? : abap data dictionary

1293


What are the basic components of dialog program?

1290


Explain the advantages of different types of bdc's?

1030


What is the difference between a structure and a table?

1202


What are the personnel administration related Infotypes

2560


Update types in Call transaction method. What is the difference?

1195


Can we use transfer dataset to transfer data in internal table ?

2157


10) How to get Item Header in Sales Order?

2066


What is the use of the raising exception? : abap modularization

1029


Explain what is step-loop?

1280


What are the fields in a bdc_tab table? : abap bdc

1168


What is tcode se16?

1060


write a program for creation of customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA'.

3312


What are the advantages and disadvantages of different types of bdc's?

1162