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: 

selction screen

Former Member
0 Kudos

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

11 REPLIES 11

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

hi judith,

the problem is still same it is not taking more than 51 chars...

any other suggesstions from ur side..

thanks

0 Kudos

Hi anu,

this may help you.

http://help.sap.com/saphelp_erp2004/helpdata/en/f5/e9bb3787e88d74e10000009b38f8cf/frameset.htm

for example

REPORT demo_sel_screen_vis_len.

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.

reward points for helpfull answers and close the thread if your question is solved.

regards,

venu.

0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

hi amit,

i have to use select-options for uploading file as i have to upload more than 15 files together...so i cant use parameter.

i have to use select-options and is there any way to increase the length...

thanks in advance..

0 Kudos

Hi,

The max value is 45. So if your files are longer, you have to find another solution. For example your can create your own select option, using a button on the screen, that calls a screen with a table control.

Svetlin

0 Kudos

as in my previous message, if we use the select option then we can not display the length more than 18 and the file name used will be 45 chars only.

Regards,

Amit