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: 

Selection screen

Former Member
0 Kudos

Hi Frineds,

I have three paramenter (A,B,C) options in selection screens and two radio buttons, when i click r1 radio button parameter C will be disabled and when i click r1 button c parameter only will be displayed.

its urgent pls give me the some idea

Regs

rams

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Please check if below code can give you some lead.

parameters: p_rad1 radiobutton group rad1 default 'X' 
                   user-command abc,
            p_rad2 radiobutton group rad1.

parameters: a, b, c.

at selection-screen output.

  loop at screen.
    if screen-name cs 'C'.
       if not p_rad1 is initial.
          screen-active = '0'.
       else.
          screen-active = '1'.
       endif.
       modify screen.
    endif.
  endloop.

Kind Regards

Eswar

6 REPLIES 6

Former Member
0 Kudos

Please check if below code can give you some lead.

parameters: p_rad1 radiobutton group rad1 default 'X' 
                   user-command abc,
            p_rad2 radiobutton group rad1.

parameters: a, b, c.

at selection-screen output.

  loop at screen.
    if screen-name cs 'C'.
       if not p_rad1 is initial.
          screen-active = '0'.
       else.
          screen-active = '1'.
       endif.
       modify screen.
    endif.
  endloop.

Kind Regards

Eswar

former_member181962
Active Contributor
0 Kudos

Refer this thread:

Regards,

Ravi

andreas_mann3
Active Contributor
0 Kudos

hi,

use parameters...radiobutton group R USER-COMMAND ucom.

Message was edited by: Andreas Mann

Former Member
0 Kudos

Hi

PARAMETERS: A MODIF ID AAA,

B MODIF ID AAA,

C MODIF ID CCC.

PARAMETERS: R1 RADIOBUTTON GROUP R1 USER-COMMAND AAA DEFAULT 'X',

R2 RADIOBUTTON GROUP R1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF R1 = 'X'.

IF SCREEN-GROUP1 = 'CCC'.

  • If you want only to disable the field

SCREEN-INPUT = 0.

  • If you want to hide the field:

SCREEN-ACTIVE = 0.

ENDIF.

ELSE.

IF SCREEN-GROUP1 = 'AAA'.

  • If you want only to disable the field

SCREEN-INPUT = 0.

  • If you want to hide the field:

SCREEN-ACTIVE = 0.

ENDIF.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Max

Former Member
0 Kudos

hi,

You can use this code.

p_matnr will be enabled/disabled based on the radiobuttons clicked.

parameters : p_rad1 radiobutton group g1 user-command ABCD,
             p_rad2 radiobutton group g1 default 'X',
             p_matnr like mara-matnr.

data: v_chk.

at selection-screen output.

 if v_chk = 'X'.
    loop at screen.
      if screen-name = 'P_MATNR'.
        IF P_RAD1 = 'X'.
          SCREEN-INPUT = 0.
        ELSE.
         SCREEN-INPUT = 1.
        ENDIF.
        MODIFY SCREEN.
      ENDIF.
    endloop.
 endif.

at selection-screen.
 if sy-ucomm = 'ABCD'.
   v_chk = 'X'.
 endif.

Regards,

Sailaja.

Former Member
0 Kudos

Hi ,

check this out.

TABLES : SSCRFIELDS.

PARAMETERS : R1 RADIOBUTTON GROUP RA1 USER-COMMAND C1,

R2 RADIOBUTTON GROUP RA1.

AT SELECTION-SCREEN.

CASE SSCRFIELDS.

WHEN 'C1'.

if r1 = 'X'

SCREEN-INPUT = '1'.

*SCREEN-OUTPUT = ' '.

MODIFY SCREEN.

else.

SCREEN-INPUT = ''.

*SCREEN-OUTPUT = ' '.

MODIFY SCREEN.

endif.

ENDCASE.

please reward helpful answers.

Regards,

Shrita.