2008 Dec 08 5:21 AM
Hi Experts,
I need to change the size of input parmeter size.It accepts only 132 characters but i need to pass 300 characters. this parameter i am not going to use anywhere in a pgm.it is just for input.it doesnt accept string also.
help me.
thank u ,
Manjula Devi.D
2008 Dec 08 5:28 AM
Hi,
What Data type are you using???
Use CHAR300 for that parameter.
Regards,
Neha
2008 Dec 08 5:31 AM
Hi Manjula,
Please try this.
SELECTION-SCREEN : BEGIN OF BLOCK 001.
PARAMETERS param(300) type c.
SELECTION-SCREEN : END OF BLOCK 001.
Regards,
Amit.
2008 Dec 08 5:33 AM
Hi Manjula devi Damadharan,
Try using STRING data type while declaring PARAMETER.
in selection screen it will show less length but it will allow you to enter extra length for that parameter...
Try to execute below code with different inputs in parameter and check the result...
PARAMETERS : P_STR TYPE STRING.
INITIALIZATION.
P_STR = 'hi friends.. This is just to show an example.... For testing only... I am writing this because I wanted to make the length of this string more then 132 char to show an example here... Have a nice time from Ilesh Nandaniya'.
DATA : LEN TYPE I,
TEMP TYPE I.
START-OF-SELECTION.
LEN = STRLEN( P_STR ).
TEMP = LEN - 140.
END-OF-SELECTION.
WRITE : / P_STR+0(140) , / P_STR+140(TEMP).
SKIP.
WRITE : / 'length of above string is' , LEN.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
2008 Dec 08 5:37 AM
Hi Manjula,
The maximum length of the input field is 132. If the length of the parameter is greater than 132, the content is truncated from the right. This is the standard functionaly of the parameters.
Reg,
Pradeep