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

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

3387


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

5291


What are the parameter types for a method?

1551


What are the two methods for modifying sap standard tables?

1438


What are the kinds of foreign key fields?

1134


What is a type group?

985


What will you code in start-of-selection & end-of-selecton & why?

1092


What is the diff between database view and maintenance view?

1110


Is a logical database a requirement/must to write an abap/4 query?

1133


What is the difference between a pool table and a transparent table and how they are stored at the database level?

1122


How many types of data classes are there in sap?

1094


What is the different type of projects? : sap abap hr

964


What are the objects of the abap dictionary or what types of objects can be created in the abap dictionary? : abap data dictionary

1033


What is lock object ? : abap data dictionary

1203


In sap scripts, how will you link form with the event driven?

1036