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-options on selection-screen type char100 problem

Former Member
0 Likes
1,512

Hi friends! I created on selection-screen a select-options:

SELECT-OPTIONS: zzcduc     FOR      equi-ZZCDUC.

The field equi-ZZCDUC is a CHAR100 field. The problem is when I run program, in this field user can't input more of 46 characters. This is a serial number with 100 characters, why I can input 100 characters?

Thanks for any help.

1 ACCEPTED SOLUTION
Read only

former_member184675
Active Participant
0 Likes
967

Hi, this is copied from SELECT-OPTION documentation:

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).

regards,

5 REPLIES 5
Read only

Former Member
0 Likes
967

Hello

Press F1 on SELECT-OPTIONS and read documentation.

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
967

Read OSS [Note 32140 - SUBMIT: Blanks in long parameters|https://service.sap.com/sap/support/notes/32140] - usually only the first record of the select-options is truncated to 45.

Regards,

Raymond

Read only

former_member184675
Active Participant
0 Likes
968

Hi, this is copied from SELECT-OPTION documentation:

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).

regards,

Read only

Former Member
0 Likes
967

Thanks for replies!

So, I can't use more then 45 chars except if I using submit...I got a problem here, this program is a copy of standard IH08, so i can't create module pool...

Edited by: Fulvio Valente on Aug 27, 2010 2:23 PM

Read only

Former Member
0 Likes
966

Hi!

Try this:


SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 5(28) text-001 FOR FIELD tb_sck.
SELECTION-SCREEN POSITION POS_LOW.
PARAMETERS tb_sck LIKE rlfitdnk-snksl.
SELECTION-SCREEN END OF LINE.

thanks,

Raul Natu