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: 

Parameter

Former Member
0 Kudos
81

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

4 REPLIES 4

Former Member
0 Kudos
59

Hi,

What Data type are you using???

Use CHAR300 for that parameter.

Regards,

Neha

Former Member
0 Kudos
59

Hi Manjula,

Please try this.

SELECTION-SCREEN : BEGIN OF BLOCK 001.

PARAMETERS param(300) type c.

SELECTION-SCREEN : END OF BLOCK 001.

Regards,

Amit.

former_member387317
Active Contributor
0 Kudos
59

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

Former Member
0 Kudos
59

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