Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

string variable - within parameters statement

Former Member
0 Likes
455

Hi,

is it possible to define a string variable like:


   PARAMETERS: var_xxx type string, 

It doesnt works. Why?

Thanks

Markus

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
418

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.

2 REPLIES 2
Read only

Former Member
0 Likes
419

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.

Read only

0 Likes
418

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