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

Statement PARAMETERS as STRING (report)

Former Member
0 Likes
581

Hello experts,

I would like to use TYPE STRING as declaration in the report and statement PARAMETERS

(PARAMETERS : i_param type string)

error message "The deep data type 'STRING' is not allowed"

Could you give me help how set up parameters, which should be long e.g. 150 characters ?

Thanks you in advance

Martin

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
533

Try this

PARAMETERS : p_type(150) TYPE c.

Regards

Gopi

3 REPLIES 3
Read only

gopi_narendra
Active Contributor
0 Likes
534

Try this

PARAMETERS : p_type(150) TYPE c.

Regards

Gopi

Read only

Former Member
0 Likes
533

ok, i was confused that i see only "input" window with 50 Char, but the length was longer ( it depends on Char)

Thanks Martin

Read only

0 Likes
533

Yes you can see only input width 50 char, its just the visible length

but infact its actual length is 150, its a selection screen limit which shows you only 50 chars

Regards

Gopi

The selection screen limit of character is only 132, so you can not display a parameter with length 150, even if you declare 150 it considers only 132.

Hope this is clear.

Check this.

PARAMETERS : p_t(150) TYPE c.
DATA : l_str TYPE string.
DATA : len TYPE i.
l_str = p_t.
len = strlen( l_str ).

WRITE : len.