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: 

regarding selection screen

Former Member
0 Kudos

hi experts,

i have a scenario like this,in the selection i have two radio button

one for bank transfer and one for cash transfer what i want that ven ever i select bank transfer my banktransferselection selection screen will come

and when ever i select cash transfer my cash transfer selection screen will come plz help me regarding this

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try something like this..

report  zsel.

parameters: p_bank radiobutton group rad1 default 'X' user-command opt,
            p_cash radiobutton group rad1.

selection-screen begin of block b01 with frame title text-t01.
parameters: banksel type sy-datum modif id bk.
selection-screen end of block b01.

selection-screen begin of block b02 with frame title text-t02.
parameters: cashsel type sy-datum modif id ch.
selection-screen end of block b02.

at selection-screen output.

  loop at screen.
    if ( p_bank is initial and screen-group1 = 'BK' ).
      screen-active = '0'.
      modify screen.
    endif.

    if ( p_cash is initial and screen-group1 = 'CH' ).
      screen-active = '0'.
      modify screen.
    endif.
  endloop.

Darren

3 REPLIES 3

Former Member
0 Kudos

Hi,

Try something like this..

report  zsel.

parameters: p_bank radiobutton group rad1 default 'X' user-command opt,
            p_cash radiobutton group rad1.

selection-screen begin of block b01 with frame title text-t01.
parameters: banksel type sy-datum modif id bk.
selection-screen end of block b01.

selection-screen begin of block b02 with frame title text-t02.
parameters: cashsel type sy-datum modif id ch.
selection-screen end of block b02.

at selection-screen output.

  loop at screen.
    if ( p_bank is initial and screen-group1 = 'BK' ).
      screen-active = '0'.
      modify screen.
    endif.

    if ( p_cash is initial and screen-group1 = 'CH' ).
      screen-active = '0'.
      modify screen.
    endif.
  endloop.

Darren

Former Member
0 Kudos

sorry..post wrong ans..

Edited by: SAP ABAP/4 on Oct 10, 2008 5:24 PM

Former Member
0 Kudos

Hi Rajat,

Just look into the below code, it will help you for the requirement.


TABLES : MARA,SSCRFIELDS.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME.
PARAMETERS : RB1 RADIOBUTTON GROUP RB1 USER-COMMAND COM MODIF ID R11
DEFAULT 'X',
             RB2 RADIOBUTTON GROUP RB1 MODIF ID R12,
             RB3 RADIOBUTTON GROUP RB1 MODIF ID R13.
SELECTION-SCREEN : END OF BLOCK B1.

SELECTION-SCREEN : BEGIN OF BLOCK B2 WITH FRAME.
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR MODIF ID RR1,
                S_ERNAM FOR MARA-ERNAM MODIF ID RR1,
                S_MTART FOR MARA-MTART MODIF ID RR2,
                S_MBRSH FOR MARA-MBRSH MODIF ID RR3.
SELECTION-SCREEN : END OF BLOCK B2.


AT SELECTION-SCREEN OUTPUT.
  IF RB1 = 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'RR1'.
        SCREEN-INTENSIFIED = '1'.
        SCREEN-ACTIVE      = 1.
        SCREEN-DISPLAY_3D  = '1'.
        MODIFY SCREEN.
      ENDIF.



      IF SCREEN-GROUP1 = 'RR2'.
        SCREEN-INTENSIFIED = '0'.
        SCREEN-ACTIVE      = 1.
        SCREEN-DISPLAY_3D  = '0'.
        SCREEN-INPUT       = '0'.
        MODIFY SCREEN.
      ENDIF.

      IF SCREEN-GROUP1 = 'RR3'.
        SCREEN-INTENSIFIED = '0'.
        SCREEN-ACTIVE      = 1.
        SCREEN-DISPLAY_3D  = '0'.
        SCREEN-INPUT       = '0'.
        MODIFY SCREEN.
      ENDIF.

    ENDLOOP.
  ENDIF.

Comment on it

Regards

Kumar M

Edited by: mukesh kumar on Oct 10, 2008 1:56 PM