Skip to Content
Former Member
Aug 20, 2013 at 04:02 PM

Dynamic variable name


Hi Experts,

I want to create variable names dynamically in my program.

i know what should be the type of my variable.

eg: I want to create variable of pattern time.001, time.002, time.003 etc.

i get values 001, 002 from one of my source.

then I loop that source,

loop at it_table.

wa_table-period holds this number.

now i want to concatenate that number(001) with time and use this time.001 as a variable for further calculations.


this time.001 then time.002 should have type c length 7 and should be able to store values in those variables.

i want this variables are seperate and not in any internal table.

in short, data: time.001(7) type c,

time.002(7) type c. needs to be created dynamically in program.

Can anyone help.