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 do you document abap/4 programs? Do you use program documentation menu option?

1169


What two statements are required in an abap program to output an icon using a written statement?

1073


How do you write manual bdc session method? : abap bdc

1048


How to create user interfaces for lists?

962


How to call transaction in session method without recording?

1953


MY DOMAIN IS SAP-ABAP COMPARE TO WEBDYNPRO AND CRM-TECHNICAL WHICH IS BEST?

2883


Explain difference between primary key and unique key?

941


Name a few data dictionary objects?

1036


What are field symbols and field groups? Have you used component idx of structure clause with field groups?

985


What are the events in classical reports?

1119


What is the tcode for sapscript forms?

1072


What is the procedure you followed to upload the data?

996


Normally how many and what files get created when a transaction program is written? what is the XXXXXTOP program?

1055


there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?

2167


Explain the different types of view?

968