2007 Jul 02 8:47 AM
Hi all,
How to define a variable which have dynamic length.
Thanks in advance.
Regards,
Swati
2007 Jul 02 8:48 AM
2007 Jul 02 8:50 AM
2007 Jul 02 8:51 AM
HI,
You can use the FIELD-SYMBOLS
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm
Regards
Sudheer
2007 Jul 02 8:51 AM
Hi,
STRING TYPE is somthing which is variable in length.
Its handled differently at the runtime compared to any other type.
Regards,
Sesh
2007 Jul 02 8:52 AM
Hi,
You can define a field symbol of Type any.
Field-symbols: <fs> type any.
At run time , you can assign a variable to this field.
Assign VAR1 to <fs>.
Then this field-symbol will have the length of the assigned Variable VAR1.
Pls reward if it is useful..
2007 Jul 02 8:52 AM
HI Swati
check your variable length (mask)
data mask(100) type c.
data length type i value 10.
clear mask.
do length times.
concatenate mask '*' into mask.
enddo.
Reward all helpfull answers
Regards
krishna