Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to modify field symbol of type Index Table with other field symbol of type any.

Former Member
0 Kudos

Hello Experts,

How is it possible to update an filed symbol table of type Index table with other filed symbol table.

e.g.

Field symbol :  <lt_table1> type Index table.

Field symbol : <lt_table2> type Index table.

after some code...at run time these table filled like following.

<lt_tabel1 > has  value fore column  like c11 , c12 , c13 

<lt_table2> has value for column like C11     , C12 , C13 , C14 , C15 . some extra  values from <lt_table1>

Now I want to be modify <table1> one entires like C12 with <table2 > col C12.

how I can achieve this.

Regards,

Chetan.

3 REPLIES 3

FredericGirod
Active Contributor
0 Kudos

Hi,

did you try  ASSIGN COMPONENT xx OF STRUCTURE <IT_TABEL1> TO <IT_TABLE2>.

?

xx will contain the number of the column

or maybe, if you have the description with a field catalog or other, that will be easier ..

regards

Fred

0 Kudos

Hi ,

At run time only I know  structure of table  <IT_TABEL1>.

So not able to fill COMPONENT , in this case.


Regards,

Chetan.

0 Kudos

why didn't you try for all of the fields of the structure to use the COMPONENT statement ?

you could catch the error ..

Fred