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 prakasareddyk on Feb 5 at 3:16 AM
Here is the code that I am using currently.

Please suggest to me where it is going wrong.

LOOP AT itab2 ASSIGNING <FS>.
* AT LAST.
l_index = sy-tabix.

READ TABLE itab1 WITH KEY vblnr = <FS>-vblnr. " INDEX l_index.

IF sy-subrc = 0.
IF itab1-vblnr IS NOT INITIAL.

<FS_1>-vblnr = itab2-vblnr.

ENDIF.
ENDIF.
UNASSIGN: <FS>,<FS_1>.

ENDLOOP.


ENDIF.

Here itab1 contains the following fields

Field1 field2 field3

1 f1100017 A


2 f110002 B

3 C

4 f1100015 D

5 f1100010 E

6 F
7 f1100009 G

and itab2 contains following fields


Field1 field2 field3

1 f1100001 A


4 f1100002 B

10 f1100003 C

3 f1100004 D

2 f1100005 E

6 f1100006 F
5 f1100007 G


How to modify the field2 values of itab1 with field2 values of itab2
without changing the other field values.





Thank you,

kasi.

---------------Original Message---------------
From: Evan Feamster
Sent: Tuesday, February 04, 2014 5:37 PM
Subject: Replace Or Modify Content of One Internal Table by Content of Another Internal Table

Asking for the source code does not permit you to learn. Please post your code with respect to what you currently have, and we will help you. You need to be looping, reading, etc. your internal tables so that you can modify the records one by one...which I am assuming you are doing. Also you might read up on these activities in regard to looping and reading into work areas, but more preferably, field-symbols.

 
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
prakasareddyk  
 
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