Skip to Content
author's profile photo
Former Member

selection screen

in the selection screen, i have two radio button, p1, p2 and one select option field. fd1.....

if the radio button p1 is selected, then i want the fd1 value to be 100 in the selection screen and if the other radio button p2 is selected, then i want the value fd1 to be 200...

does anyone know how to do this?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 08:15 PM

    IF you want to use select-option then follow this..

    REPORT zdummy_atg_2.

    selection-screen begin of block b2 with frame title text-001.

    parameters: radio radiobutton group rnd user-command test default 'X',

    radio2 radiobutton group rnd.

    select-options : test for bkpf-belnr.

    selection-screen end of block b2.

    AT SELECTION-SCREEN OUTPUT.

    if radio eq 'X'.

    test-low = '100'.

    else.

    test-low = '200'.

    endif.

    <b><REMOVED BY MODERATOR></b>

    Thanks & Regards

    ilesh 24x7

    Message was edited by:

    Alvaro Tejada Galindo

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      REPORT zdummy_atg_2.

      selection-screen begin of block b2 with frame title text-001.

      parameters: radio radiobutton group rnd user-command test default 'X',

      radio2 radiobutton group rnd.

      Select-option: test for bkpf-belnr.

      selection-screen end of block b2.

      AT SELECTION-SCREEN OUTPUT.

      DATA: v_temp type P.

      if radio1 = 'X'.

      v_temp = 100.

      elseif radio1 = 'X'.

      v_temp = 200.

      endif.

      LOOP AT SCREEN.

      IF SCREEN-NAME = 'test-low'.

      SCREEN-VALUE = v_temp.

      MODIFY SCREEN.

      ENDIF.

      ENDLOOP.

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 08:10 PM
    REPORT zdummy_atg_2.
    
    selection-screen begin of block b2 with frame title text-001.
    parameters: radio radiobutton group rnd user-command test default 'X',
                radio2 radiobutton group rnd,
                test type bkpf-belnr.
    selection-screen end of block b2.
    
    AT SELECTION-SCREEN OUTPUT.
      if radio eq 'X'.
        test = '100'.
      else.
        test = '200'.
      endif.
    

    Greetings,

    Blag.

    Add comment
    10|10000 characters needed characters exceeded