Skip to Content
author's profile photo Former Member
Former Member

selction screen

hi all,

i am using select-options:s_uload FOR rlgrap-filename NO intervals OBLIGATORY.

but at selection screen the lenght of the field is small...as rlgrap-filename has length 128.i have to increase the selection filed length.for ex:

filed for selction show::...........

i have to do it like ::...........................

i means to say that on selection screen i have to just increase the length.

if i am using parameter option then its work ok...but i have to use select-options only...

any suggestions will be great...

thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 06:38 AM

    We can not specify the length too much. If you specify the option using char of length of even 30. While activating you will get the error message that

    <b>Length specification "30" is not allowed with SELECT-OPTIONS.</b>

    So There is a limit on the length

    The max length that we can display on the selection screen is 18 not more than this. And the length it will take is 45 chars only.

    The LOW and HIGH fields of a selection option are displayed in a length up to 18 bytes long (scrollable up to 45 bytes). If you define a length longer than 45, fields are truncated on the selection screen after the 45th character. This affects the first line of the SELECT-OPTIONS table. You can, however, use SUBMIT to pass longer selection options to a report if they are specified with the addition NO-DISPLAY and thus do not appear on the selection screen.

    Even if you define the field as parameter then also it will take max length as 45. It will not go upto 128.

    Amit

    Message was edited by: Amit Kumar Jain

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 06:38 AM

    u can't specify length with select options...and by the way y would u use select options for a file name...

    parameters should work just fine...

    parameters : p_uload type rlgrap-filename .

    it gives a longer text than select options..

    read the following extract from documentation...

    *************************

    The statement SELECT-OPTIONS has the following effect:

    .....

    <b>Two input fields with the name selscrit-low and selscrit-high are created on the current selection screen using a matching external data type in a new line at positions 35 and 60. The length of the input fields bases upon the length of the data type which is defined after FOR. The maximum length of the input fields is 45. The maximum visible length of the input fields is, depending on the nesting depth, in blocks with frames between 10 and 18. If the length is larger than the maximum visible length, then the content is scrollable.</b>

    .....

    rgds,

    PJ

    Message was edited by: Priyank Jain

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 29, 2005 at 06:42 AM

    Y U WANT TO USE SELECT-OPTIONS?

    U just want a file name right?

    U can use

    PARAMETERS:    p_unix     LIKE rlgrap-filename.

    This will take default length.

    I tried using SELECT-OPTIONS it is taking upto a maximum of <b>45Char.</b>

    SELECT-OPTIONS  s_unix   FOR rlgrap-filename
     VISIBLE LENGTH 128 NO INTERVALS NO-EXTENSION .

    It has the same effect no change.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      I tried using TYPE STRING also, it is not accepting more than 45.

      If multiple files has to be selected u can better design a scren instead of selection screen. In that define the text box withmultiple select options as well as of type STRING. U can achieve what u want.

      Try this option.

      Kindly reward points for the answers which helped u.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 06:51 AM

    Hi,

    This is written in the SAP documentation.

    <i>The LOW and HIGH fields of a selection option are displayed in a length up to 18 bytes long (scrollable up to 45 bytes). If you define a length longer than 45, fields are truncated on the selection screen after the 45th character. This affects the first line of the SELECT-OPTIONS table. You can, however, use SUBMIT to pass longer selection options to a report if they are specified with the addition NO-DISPLAY and thus do not appear on the selection screen. Without NO-DISPLAY, the fields are then truncated whenever the selection screen is processed in the background ( SUBMIT without VIA SELECTION-SCREEN).</i>

    It seems to be that you can display max 18 characters.

    Svetlin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 07:11 AM

    Even after using the following code you will not get the visible length 128.

    PARAMETERS: p1(128) TYPE c VISIBLE LENGTH 128,

    p2(50) TYPE c VISIBLE LENGTH 5,

    p3(10) TYPE c VISIBLE LENGTH 10.

    START-OF-SELECTION.

    WRITE: / 'P1:', p1,

    / 'P2:', p2,

    / 'P3:', p3.

    I do not think that there is any option available to see the length 128 on the selection screen.

    Regards,

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.