Application Development and Automation 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: 
Read only

Selection screen

Former Member
0 Likes
577

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
Read only

Former Member
0 Likes
539

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
Read only

Former Member
0 Likes
540

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

Read only

Former Member
0 Likes
539

Refer this thread:

Regards,

Ravi

Read only

andreas_mann3
Active Contributor
0 Likes
539

hi,

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

Message was edited by: Andreas Mann

Read only

Former Member
0 Likes
539

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

Read only

Former Member
0 Likes
539

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.

Read only

Former Member
0 Likes
539

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.