Application Development and Automation 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: 
Read only

Problem with the selection screen

Former Member
0 Likes
1,490

Hi,

i got one problem with the maximum charater length of select option, so it is truncation the last charater set of the selected entry in the search help.

eg: if i give ' SAP tech 2008, SAP ERP tools etc'

in the selection screen i got only 'SAP tech 2008, SAP ERP' but the 'tools etc' is gone away.

it is taking upto 45 character length.

kinldy help me in this reg.

Reg,

hariharan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,435

Hi,

there will . ... VISIBLE LENGTH <vlen> option for Select-option statment, Even provide with the specified length. This may solve your problem.

11 REPLIES 11
Read only

Former Member
0 Likes
1,435

Hi,

Try increase the length of select-options.

Thanks,

Krishna..

Read only

Former Member
0 Likes
1,435

show me how to write so i can help u

Read only

Former Member
0 Likes
1,436

Hi,

there will . ... VISIBLE LENGTH <vlen> option for Select-option statment, Even provide with the specified length. This may solve your problem.

Read only

Former Member
0 Likes
1,435

Hi,

Generally in ECC, the internal lengths are taken diferently. I think you might be having some problem with the internal and offset lengths.

Can you provide the code that you have written ?

Read only

Former Member
0 Likes
1,435

Hello,

I believe you cannot do that.

Jayant

Read only

Former Member
0 Likes
1,435

Hi,

For select options , the max length permissible is 45 characters only. not more than that.

Read only

Former Member
0 Likes
1,435

Hi,

Yeah it seems to be a problem with the selection options. The maximum length you can enter in selection option in low or high is 45 characters.

If you need to have option with more length, then its better to go for parameters, where you can enter more in the field.

sample code:-

DATA: gl_char(100) type c.

select-OPTIONS so_char for gl_char.

PARAMETERs: p_char like gl_char.

If found in parameters you can give 100 characters where as in select options you can give only 45 chars.

From SAP Help:-

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.

The first row of the selection table selcrit is linked with the input fields on the selection screen. All rows are displayed in the dialog box for multiple selection. Each time before the selection screen is sent to the selection screen event ATSELECTION-SCREEN OUTPUT, the content of first row in the selection table is transported to the selection screen, with a conversion routine being executed if required. If the length of columns low and high in the first row of the selection table is over 45, the excessive content is cut off to the right. It is only possible for all rows to be transported if the button for multiple selections is selected. A conversion routine might be executed here, and rows might be cut off. Settings for the content of the input fields can be made in value_options.

Edited by: Krishna Adabala on Nov 27, 2008 7:13 AM

Read only

Former Member
0 Likes
1,435

Hi guys,

thanks for you replay,

but i want that option, because it is the requirement.

Any alternative to get more charater length in select option.

Reg,

Hariharan

Read only

Former Member
0 Likes
1,435

hELLO Hariharan,

do u want to display the entire text , which is given by user in select-option ?

I did't got the question in corect way ,

as per my understanding :

u can give

TABLES BKKBENCH.

SELECT-OPTIONS : S_text FOR BKKBENCH-TEXT.

  • here Text is of char100. so upto 100 characters u can enter and get those.

WRITE S_text-LOW.

-


and go to se51 --> enter the pgm name --> screen number 1000 and press change ,

select the select-option of s_text , select the s_text-low field and double click on it , set the default lenght as much as you want like 100 or any number ,

save and Activate.

it works .........

Regards

Aby.

please close this thread as soon as your problem is solved.

Edited by: abhi on Nov 27, 2008 10:21 AM

Edited by: abhi on Nov 27, 2008 10:25 AM

Read only

Former Member
0 Likes
1,435

Hi,

you can create a screen with low and High fields and then call the screen.

Read only

Former Member
0 Likes
1,435

HI,

Try for this code :

SELECTION-SCREEN BEGIN OF LINE.

select-options : s_select for data-field.

SELECTION-SCREEN COMMENT 5(50) text-011.

SELECTION-SCREEN END OF LINE.

Put your full text in text-011.

Thanks.