Skip to Content
0
Oct 27, 2009 at 08:52 AM

Select-option length specification (in report program, not module pool)

1385 Views

Dear forumers,

Is there a way to properly customize the length of a select-option in a report program?

Currently, the select-option S_ADMAIL is shown in the selection screen at a length of 18 characters. No matter what I've coded, this length does not change. The requirement states for the length to be shown at 40 characters long:-

Admin Email (type STRING showing up to 40 char on screen)

How may I fix the select-option's visible length to 40 characters?

DATA: v_admail TYPE string.   " Tried with TYPE CHAR40 too

SELECT-OPTIONS: s_admail FOR (v_admail) NO INTERVALS VISIBLE LENGTH 40.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name CS 'S_ADMAIL'.
      screen-length = 40.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Perhaps there is an FM that can accomplish this (but I'm not sure what it is)? Please do help. Thanks a lot.