Application Development and Automation 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: 
Read only

Dynamically allocating structure names

Former Member
0 Likes
284

Hello,

In a database table I have the name of strcutures, such as my_address1

in a loop, I am reading my database table and making up the name of the structure exactly like:

data v_my_structure type text40.

and then

concatenate 'real_structure-' wa_component into v_my_structure.

and then I though I would be able to use

concatenate v_my_structure ', ' 'california' into v_my_structure.

but when I do this it does not point to the structure, is there a way of doing this?

Or even an easier way of doing this?

Thanks

1 REPLY 1
Read only

Former Member
0 Likes
268

I'm not sure I understand your question, but it sounds like you need to use field-symbols. Use the ABAP help on this.

Doug