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: 

Strange field display of Select-options when MODIF ID used

Former Member
0 Kudos

Hello all,

When I use MODIF ID in a select-options definition, the field displays on the screen in an unusual format. There is entry field to the left of the select-option low field. What is this and how can I prevent it from displaying? We are on version 4.7.


TABLES: skb1, bkpf.
*
SELECTION-SCREEN BEGIN OF BLOCK b0 WITH FRAME TITLE text-000.
PARAMETERS: p_lstrun RADIOBUTTON GROUP bydt USER-COMMAND xyz
                                            DEFAULT 'X'.
PARAMETERS: p_yr_prd RADIOBUTTON GROUP bydt .
SELECTION-SCREEN END   OF BLOCK b0.
*
PARAMETERS:     p_gjahr TYPE bkpf-gjahr              MODIF ID sel.
SELECT-OPTIONS: s_monat FOR  bkpf-monat  NO INTERVALS  MODIF ID sel.
*
SELECTION-SCREEN SKIP.
*
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK b5 WITH FRAME TITLE text-005.
PARAMETERS: p_updzlr AS CHECKBOX            " update ZLSTRUN table
                     DEFAULT 'X'  MODIF ID sel.
*                     USER-COMMAND ucom .
SELECTION-SCREEN END   OF BLOCK b5.
*
**********************************************************************
AT SELECTION-SCREEN OUTPUT.
**********************************************************************

  IF p_yr_prd = 'X'.            " Select by screen Year/period
*
    p_updzlr = ' '.             " uncheck "update ZLSTRUN table"
*
    LOOP AT SCREEN.
      IF screen-group1 = 'SEL'.
*
        screen-input     = 0.          " prevent input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
  ELSE.  " p_yr_prd = ' '.               select by ZLSTRUN
*
    LOOP AT SCREEN.
*      IF screen-name  = 'P_UPDZLR'.
      IF screen-group1 = 'SEL'.
*
        screen-input     = 1.          " allow input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
  ENDIF.  " " Select by screen Year/period

Any thoughts?

Thanks

Bruce

1 ACCEPTED SOLUTION

gerd_rother
Active Participant
0 Kudos

Hi,

When you set SCREEN-INPUT to 1 for modif id SEL also the text label of that select-option is set to input - this becomes that unwanted input field.

You should not set SCREEN-INPUT to 1 in selection screens - the fields are already ready for input. Instead set it to 0 when you want the fields not to be ready for input.

Regards, Gerd Rother

2 REPLIES 2

gerd_rother
Active Participant
0 Kudos

Hi,

When you set SCREEN-INPUT to 1 for modif id SEL also the text label of that select-option is set to input - this becomes that unwanted input field.

You should not set SCREEN-INPUT to 1 in selection screens - the fields are already ready for input. Instead set it to 0 when you want the fields not to be ready for input.

Regards, Gerd Rother

0 Kudos

Gerd ,

Thanks for the solution.

Bruce