Application Development 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: 

Maximum length for input parameter

Former Member
0 Kudos

Hi All,

I have requirement in which I have to pass a string in the input parameter but the maximum length is 132 characters.Is there any way I can increase the length to 500 characters..

Regards

Lalit

9 REPLIES 9

Former Member
0 Kudos

Hi Lalit,

In SE11 declare a domain with CHAR with size 1000 characters and then declare it in your program

You can use this domain type:

CHAR1024_WAO Its length is 1024.

Hope this will help.

Regards,

Nitin.

Former Member
0 Kudos

Nitin,

But it is taking only the first 132 characters only.

Regards

Lalit

Former Member
0 Kudos

Lalit,

Would you please show me your code so that i can analyse what exactly the problem is...

Regards,

Nitin.

Former Member
0 Kudos

types: begin of t_order,

order type aufnr,

end of t_order.

data: it_order type standard table of t_order,

wa_order type t_order.

parameters: p_order type SELSTRING_WAO.

start-of-selection.

split p_order at ',' into table it_order.

loop at it_order into wa_order.

write:/ wa_order-order.

clear: wa_order.

endloop.

Former Member
0 Kudos

Hi Lalit,

Try with select-options instead of parameters.

Because If the length of the parameter is greater than 132, the content is truncated from the right.

Hope this will work.

Regards,

Nitin.

former_member705122
Active Contributor
0 Kudos
PARAMETERS: p_test type string. 
DATA: w_i TYPE i.
w_i = STRLEN( p_test ).
WRITE: w_i.

Former Member
0 Kudos

Nitin,

select-options is giving the same problem.

Regards

Lalit

Former Member
0 Kudos

hii

select option will have same problem as if type is character then it will take 132 characters in input field..

so it is better to use type as STRING as it can have 500 char.so try using string type for input parameters.

regards

twinkal

Former Member
0 Kudos

Hi Latit,

It may not possible to get 500 char input in selection screen.

You can do this way ... take it in two parameters and concatenate that in at selection screen event in to a variable and use it whereever necessary.

Regards,

Nitin.