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: 

Initialize select-option-low when radio button selected.

Former Member
0 Kudos

Hello all,

In the "AT SELECTION-SCREEN OUTPUT" event I am initializing both a parameter and a select-option-low field based on the value of a radio-button. In the debugger I can see that both of these fields are set to their initial value. But the select-option-low field retains the value, rather than resetting to its initial state.

The following code displays the problem. Is anyone aware of a way to correct this problem?

Thanks

Bruce


tables: bkpf.
*
PARAMETERS: p_lstrun RADIOBUTTON GROUP bydt USER-COMMAND xyz
                                            DEFAULT 'X'.
PARAMETERS: p_yr_prd RADIOBUTTON GROUP bydt .

PARAMETERS:     p_gjahr TYPE bkpf-gjahr                MODIF ID abc.
SELECT-OPTIONS: S_MONAT FOR  bkpf-monat  NO INTERVALS  MODIF ID abc.

PARAMETERS: p_updzlr AS CHECKBOX
                     DEFAULT 'X'  MODIF ID sel
                     USER-COMMAND ucom .
*
***************************
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.
*
  ELSEIF p_lstrun = 'X'.            " Select by ZLSTRUN table"
*
    p_gjahr     = ' '.
    S_MONAT-low = ' '.

    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
*
        screen-input     = 0.          " prevent input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
    LOOP AT SCREEN.
      IF screen-group1 = 'SEL'.
*
        screen-input     = 1.          " allow input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
  ENDIF.  " p_yr_prd = 'X'.  

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

Very basic question.

Im afraid to answer this, but still i ll give the hint

select option is similar to a internal table, use the same method you do for clearing internal table body.

2 REPLIES 2

kesavadas_thekkillath
Active Contributor
0 Kudos

Very basic question.

Im afraid to answer this, but still i ll give the hint

select option is similar to a internal table, use the same method you do for clearing internal table body.

0 Kudos

Keshav.T

Your very basic answer to my very basic question solved my problem.

Thanks

Bruce