Skip to Content
avatar image
Former Member

select options

Hello all,

I want to make the high value input field of a select option disabled based upon some condition.

Precisely if the condition is true then the select option high value will be accepted otherwise not.

Please let me know how I will proceed.

Thanks,

Sudipto

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 13, 2008 at 11:05 AM

    Hi,

    1. In At Selection-Screen event , you have to use :

    loop at screen.

    if screen-name = 'SELCTOPTIONNAME-HIGH'.

    if conditon is true.

    screen-input = '1'.

    else.

    screen-inout = '0'.

    endif.

    endloop.

    Thanks & Regards,

    Navneeth K.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Navneeth,

      I would use the following event:

      at selection-screen OUTPUT.

      This works better, I think...

      Best regards,

      Jörg Racz

  • Oct 13, 2008 at 11:07 AM

    hi,

    try like this.

    if ........
    
    loop at screen.
    if screen-name = s_matnr-high.
    screen-output = 0.
    modify screen
    endif.
    endloop.
    
    endif.
    

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 11:11 AM

    Here,

    report ztest.
    
    tables vbak.
    select-options : p_s1 for vbak-vbeln.
    
    at selection-screen output.
    
    loop at screen.
    
    * Stick the condition here.
      if screen-name = 'P_S1-HIGH'.
    *    screen-active = 0.
        screen-input =  0.
        modify screen.
      endif.
    endloop.
    

    You can check for any condition before doing this. You can write the code in the PAI ( at selection-screen on ) of another select-option or parameter also.

    regards,

    Advait

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 13, 2008 at 11:07 AM

    Hi Sudipto,

    For this type of requirement you can use the event " AT SELECTION SCREEN OUTPUT".

    and inside this event put

    Loop at Screen

    if Screen-name = 'field name'.

    Screen-input = 'X'.

    endif.

    EndLoop.

    Thanks,

    Chidanand

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 12:25 PM

    Hi,

    Check the following code:

    tables: mara.

    parameters: p_rd1 radiobutton group grp1 user-command cmd1,

    p_rd2 radiobutton group grp1.

    select-options: s_matnr for mara-matnr.

    at selection-screen output.

    if p_rd2 = 'X'.

    loop at screen.

    if screen-name = 'S_MATNR-HIGH'.

    screen-input = 0.

    endif.

    modify screen.

    endloop.

    endif.

    Regards,

    Bhaskar

    Add comment
    10|10000 characters needed characters exceeded