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: 

Field name generation dynamically

Former Member
0 Kudos

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 namefield name
VBELNVBELN_VA
VBELNERDAT
VBELNERZET

i_tab2

VBELN_VA
ERDAT
ERZET
120.10.23131.10
220.10.23131.10
320.10.23131.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.

1 REPLY 1

nabheetscn
Active Contributor
0 Kudos

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