‎2006 Oct 12 9:36 AM
Hi,
is it possible to define a string variable like:
PARAMETERS: var_xxx type string,
It doesnt works. Why?
Thanks
Markus
‎2006 Oct 12 9:42 AM
For Parameters , Only types C, N, X or P are allowed
you can declare that as C and give some more length
REPORT YCHATEST.
data v_str(200).
parameters : p_str like v_str.
‎2006 Oct 12 9:42 AM
For Parameters , Only types C, N, X or P are allowed
you can declare that as C and give some more length
REPORT YCHATEST.
data v_str(200).
parameters : p_str like v_str.
‎2006 Oct 12 10:10 AM
HI,
For patameters you can only use FIXED-LENGTH types' Since String is a data type of variable length you can not use it for declaring parameters. Both string and Xstring cannot be used as both are variable lengths. This only for releses before ERP 2005. From ERP 2005 onwards you can type using string but not using xstring.
You can create your own type with
TYPES: param_type(200) type c.
PARAMETERS: input type param_type.
Regards,
Sesh