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

PARAMETERS : fname type string.

Former Member
0 Likes
896

Hi,

when i write the statement PARAMETERS : fname type string.

It says the " nested datatype string is not allowed".

Wht possibly cud be the problem ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
621

Hi Sai,

The data Type "String" is not allowed for parameters.

you can go with type "C".

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
622

Hi Sai,

The data Type "String" is not allowed for parameters.

you can go with type "C".

Thanks.

Read only

Former Member
0 Likes
621

Hi Sai,

Define it as: PARAMETERS: fname(255) type c.

Thanks and Regards,

Kunjal Patel

Read only

Former Member
0 Likes
621

Hi,

After the <b>Type</b> u must give:

The built-in ABAP types c, d, i, n, p, t, and x

Otherwise,A non-specific data type from the ABAP Dictionary or a non-generic data type, from the same program, already defined using TYPES, and which is elementary and flat and not of the type f (with the exception of the use of NO-DISPLAY).

It won't accept the Predefined Data Type.

Regards,

Padmam.

Read only

Former Member
0 Likes
621

Hi Sai,

You can define string in data element and refer it in parameters.

Like,

ZELE_STRING is your string and then

in paramaters write it like,

parameters: pa_bukrn type zele_string.

Reward if useful!