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

Re: selection-screen

Former Member
0 Likes
432

hi to all,

i had a selection screen. in that one radiobutton is there and below that one selction parameter is there. if i click that radio button the selection parameter will go to the disable mode.

please help me in this regard

thanks

raj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
398

Hi,

If it is a report program, then use the following logic,

AT SELECTION-SCREEN OUTPUT.

IF rb_button = `X`.

loop at screen.

if screen-name = `P_MATNR`.

screen-input = 0.

endif.

modify screen.

endloop.

endif.

If its a module pool program, then

In the PAI,

CHAIN.

FIELD RB_BUTTON1.

module update_flag.

ENDCHAIN.

In --->

module update_flag.

if rb_button1 = `X`.

v_flag = `X`.

endif.

endmodule.

in PBO.

IF V_FLAG = `X`.

clear v_flag.

loop at screen.

if screen-name = `P_MATNR`.

screen-input = 0.

endif.

modify screen.

endloop.

endif.

Best regards,

Prashant

3 REPLIES 3
Read only

Former Member
0 Likes
399

Hi,

If it is a report program, then use the following logic,

AT SELECTION-SCREEN OUTPUT.

IF rb_button = `X`.

loop at screen.

if screen-name = `P_MATNR`.

screen-input = 0.

endif.

modify screen.

endloop.

endif.

If its a module pool program, then

In the PAI,

CHAIN.

FIELD RB_BUTTON1.

module update_flag.

ENDCHAIN.

In --->

module update_flag.

if rb_button1 = `X`.

v_flag = `X`.

endif.

endmodule.

in PBO.

IF V_FLAG = `X`.

clear v_flag.

loop at screen.

if screen-name = `P_MATNR`.

screen-input = 0.

endif.

modify screen.

endloop.

endif.

Best regards,

Prashant

Read only

Former Member
0 Likes
398

Hi Sundeep,

Check this Code.

SELECTION-SCREEN BEGIN OF BLOCK b1.

PARAMETERS: p_rad1 RADIOBUTTON GROUP radi USER-COMMAND

ucomm,

p_check AS CHECKBOX,

p_rad2 RADIOBUTTON GROUP radi,

p_check2 AS CHECKBOX.

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF p_rad1 EQ 'X' AND screen-name EQ 'P_CHECK2'.

screen-input = 0.

ELSEIF p_rad2 EQ 'X' AND screen-name EQ 'P_CHECK'.

screen-input = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

I hope this might Help you out

Regards,

Prashanth

Read only

naimesh_patel
Active Contributor
0 Likes
398

Hello,

PARAMETERS : rb1 RADIOBUTTON GROUP rad1 USER-COMMAND USR,

rb2 RADIOBUTTON GROUP rad1.

PARAMETERS: fpath TYPE filename modif id Gp1.

At selection-screen output.

if rb2 = ' '.

loop at screen.

if screen-group1 = 'GP1'.

screen-input = 0.

modify screen.

endif.

endloop.

endif.

Regards,

Naimesh