We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-abap] Replace Or Modify Content of One Internal Table by Content of Another Internal Table

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from Kabil on Feb 6 at 4:54 AM
Add this piece of code in your requirement this will work

LOOP AT it_vbap INTO wa_vbap.

MODIFY it_vbakFROM wa_vbak transporting matnr.
WHERE vbeln = wa_vbap-vbeln

endloop.

---------------Original Message---------------
From: prakasareddyk
Sent: Tuesday, February 04, 2014 7:10 AM
Subject: Replace Or Modify Content of One Internal Table by Content of Another Internal Table

Hi Friends,

i have a requirement , where need to modify the content of an internal table by another internal table.

for example:
Itab1 is as follows
Field1 field2 field3
1 f1100017 A
2 f110002 B
3 C
4 f1100015 D
5 f1100010 E
6 F
7 f1100009 G

and itab2 is as follows


Field1 field2 field3
1 f1100001 A
2 f1100002 B
3 f1100003 C
4 f1100004 D
5 f1100005 E
6 f1100006 F
7 f1100007 G
How to replace or modify the field2 values of itab1 with field2 values of itb2, when field2 value is not empty.
I have tried with the field symbol logic but it is not working. Please provide me the source code for the same.

Thank you,
kasi.

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2014 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
Kabil  
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language