Skip to Content
0
Former Member
Sep 24, 2005 at 09:41 PM

How do I get the name of a variable into a variable?

3401 Views

Hi,

I declare a variable and later I want to use not only the value but also the (declared) name in the ABAP program (dynamically).

Assign? Or with a class? I searched the CL_ABAP... classes but without success.

Example:

Data: myname(30) type c.

data: variablenames(100) type c.

variablenames = ....?

How can I get "MYNAME" dynamically as value into variablenames?

Werner