Skip to Content
0
Former Member
May 30, 2008 at 07:03 PM

Not even sure how to tag this one...so I guess it's a challenge

30 Views

In Visual FoxPro you could do the following:

myVar1 = "myVar2"

myVar2 = "This is the contents of myVar2"

? &myVar1

What will be displayed is "This is the contents of myVar2". It was called "macro expansion" and at runtime the string contents of "myVar1" would be executed as if it were VFP code (the ? is a print command).

I need to do something like this in ABAP. I have the name of a variable in another variable but I need get the contents of the second variable (stored as a string in the first). Can I do this w/ ABAP?