Skip to Content
0
Former Member
Jul 22, 2008 at 12:08 PM

getting a value of a string.

620 Views

Hi All,

I want to get the value of a string which is assigned to a variable. i have declared the value of the string but this value is not going to the variable. i will send you the code i did.

DATA: V_VAR(20) TYPE C,

V_VAR1(20) TYPE C,

V_CNT(2) TYPE C,

I_VAR1(2) TYPE C VALUE 10.

V_CNT = 1.

CONCATENATE 'I_VAR' V_CNT INTO V_VAR.

V_VAR1 = V_VAR.

WRITE:/ V_VAR1,

/ V_VAR.

how can i get the value if "i_var" that is assigned as 10 to the variable v_var1?

i am getting the output for v_var1 as i_var1.

POINTS WILL BE REWADED.

ASK ME IF U CANT GET THE QUESTION.

Regards,

Santosh