09-12-2008 7:12 AM
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
09-12-2008 7:24 AM
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.
09-12-2008 7:29 AM
Nitin,
But it is taking only the first 132 characters only.
Regards
Lalit
09-12-2008 7:30 AM
Lalit,
Would you please show me your code so that i can analyse what exactly the problem is...
Regards,
Nitin.
09-12-2008 7:32 AM
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.
09-12-2008 7:38 AM
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.
09-12-2008 7:51 AM
PARAMETERS: p_test type string.
DATA: w_i TYPE i.
w_i = STRLEN( p_test ).
WRITE: w_i.
09-12-2008 8:10 AM
09-12-2008 8:25 AM
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
09-12-2008 8:27 AM
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.