2013 Oct 24 5:32 PM
Hi ,
I have a requirement to fill some field dynamically.
One internal table(i_tab1) have the information about the table name and field name.
and in another internal table( i_tab2) have these fileas below :
i_table 1
table name | field name |
---|---|
VBELN | VBELN_VA |
VBELN | ERDAT |
VBELN | ERZET |
i_tab2
VBELN_VA | ERDAT | ERZET |
---|---|---|
1 | 20.10.2313 | 1.10 |
2 | 20.10.2313 | 1.10 |
3 | 20.10.2313 | 1.10 |
Based on i_tab1 value i have to update the i_tab2.
ex : in i_tab1 tab name vblen and field name = vbeln_va.
I have to update i_tab2
field vbeld_va with some value.
Please help me.
Thanks in Advance.
2013 Oct 24 5:41 PM
Loop at itab1
Loop at itab2 assigning <fs>
Assign field ( itab1-fieldname) of structur <fs> to <fs1>.
Now assign value to fs1 field symbol
Endloop
Endloop