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

Select-Option Display

Former Member
0 Likes
645

Hi Folks,

I'm having a problem with my selection-option. I have select option which is displaying only 18 characters whereas the type of the select-option is CHAR255, I want the select-option to be displayed for the full length. Please suggest on the above problem. Please have a look at the below code,

SELECT-OPTIONS :

s_werks FOR g_werks OBLIGATORY, " Werks

s_matnr FOR g_matnr, " Material no

s_matkl FOR g_matkl, " Matetial group

s_dismm FOR g_dismm MATCHCODE OBJECT h_t438a, " MRP Type

s_MTART FOR g_MTART , " Material type

s_bismt for g_bismt , " Old material code

s_mmsta FOR g_mmsta MATCHCODE OBJECT h_t141,

s_lgfsb FOR g_lgfsb MATCHCODE OBJECT h_t001l,

s_spras FOR g_spras NO INTERVALS NO-EXTENSION DEFAULT sy-langu

OBLIGATORY, " Language

s_lmatnr FOR g_lmatnr MATCHCODE OBJECT /ds1/mm_pgse994a_legacy,

s_lmesc FOR g_lmesc MATCHCODE OBJECT /ds1/mm_pgse994a_mesc,

s_maktg FOR g_maktg NO INTERVALS NO-EXTENSION, " Mateial desc

The below one is the select-option parameter to which i want it to be displayed to its full length

s_potxt FOR g_potxt NO INTERVALS NO-EXTENSION . " Mat PO Text

Regards,

Santosh

3 REPLIES 3
Read only

Former Member
0 Likes
531

Hi,

In the generated selection screen the maximum displayed length for a field is 18 chars, but is scrollable up to 45 chars.

If you want a 255 character SELECT-OPTION you will need to create your own selection screen and apply that to the report.

My personal feeling is that a select-option field 255 characters long is not practical thing to use anyway, you may be better offering a shorter text field and use wild-cards.

Regards,

Nick

Read only

Former Member
0 Likes
531

Hi,

Try to open the the screen in se51 by giving you report name and the screen number as 1000. Now in the layout you increase the length of the field by changing the visible length.

Regards

Kiran.

Read only

Former Member
0 Likes
531

Hi,

This is the standard screen and there is some limitation on it.

Design your custom screen for all maximum allowed length.

Regards,

Santhosh.