‎2008 Jun 11 3:26 AM
Hi guys,
i have a variable v_var with type p...
I want to have this code:
write v_var(9) to i_tab-val.
but im getting a syntax error...
wat is the possible solution in order for me to get only the fisrt nine char of v_var to move to i_tab-val?
thanks a lot!
Always,
mark
‎2008 Jun 11 3:39 AM
HI ,
instead declare a variable of type c for say 16 chars and assign the packed variable to it. then offset the temp char variable for 9 chars.
data: var1 type p,
temp(16) type c.
temp = var1.
temp = temp(9).
Hope this will help.
Reward Points.
Raj
‎2008 Jun 11 3:39 AM
HI ,
instead declare a variable of type c for say 16 chars and assign the packed variable to it. then offset the temp char variable for 9 chars.
data: var1 type p,
temp(16) type c.
temp = var1.
temp = temp(9).
Hope this will help.
Reward Points.
Raj