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 / raju

TABLES:ZKNA11,ZKNA12.
DATA:it TYPE TABLE OF zkna11,
it1 TYPE TABLE OF zkna12.

data:wa like LINE OF it,
wa1 like LINE OF it1.

data: LN type I VALUE 2.
data: LN1 type I .
data: LO type I VALUE 1.

SELECT * FROM ZKNA11 INTO TABLE IT UP TO 4 ROWS.

LOOP AT IT INTO WA.
IF SY-TABIX = LO.
wa1-kunnr1 = wa-kunnr.
wa1-NAME11 = wa-name1.
wa1-LAND11 = wa-LAND1.
APPEND WA1 TO IT1.
LO = LO + 2.

ENDIF.

IF SY-TABIX = LN.

wa1-kunnr2 = wa-kunnr.
wa1-NAME12 = wa-name1.
wa1-LAND12 = wa-LAND1.
LN1 = LN - 1.
MODIFY IT1 FROM WA1 INDEX LN1 TRANSPORTING KUNNR2 NAME12 LAND12.
LN = LN + 2.
ENDIF.
ENDLOOP.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find Kernal badi ?

1615


What is sapnet?

1463


What is sequence number

2194


what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.

2566


Explain open dataset in sap abap?

1320


In BDC, data transfer is done success in foreground mode but if we done the same in background mode it shows errors. What is the reason?

1473


What is the process to enhance the Infotype

3414


Give Some examples of reports generated in real time scenarion? Also give examples of standard reports in SAP used in real time?

2788


Differentiate screen painter from menu painter.

1062


What are the different types of parameters?

1174


Explain about drill down report?

9210


What is meant by authorization? Did you ever work on it? : sap abap hr

950


What is meant by read lock? : sap abap data dictionary

1038


What are the Various Types of internal tables?

1187


What is a predefined type in abap?

1182