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
316

Hi ,

I have two buttons in application toolbar of my

selection-screen.if click one button the other should

be disabled.so help me out to solve this.

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
284

HI,

Check out programs:

DEMO_SEL_SCREEN_FUNCTION_KEY

DEMO_SEL_SCREEN_PUSHBUTTON

Refer a sample code:

************************************************************************

  • Selection Screen Declaration

************************************************************************

  • Selection Screen

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS : rb_pc RADIOBUTTON GROUP r1 DEFAULT 'X'

USER-COMMAND ucomm, "For Presentation

p_f1 LIKE rlgrap-filename

MODIF ID rb1, "Input File

rb_srv RADIOBUTTON GROUP r1, "For Application

p_f2 LIKE rlgrap-filename

MODIF ID rb2, "Input File

p_direct TYPE char128 MODIF ID abc DEFAULT c_path.

"File Directory

SELECTION-SCREEN END OF BLOCK b1.

  • Data Migration Details

SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.

PARAMETERS : p_comp TYPE temksv-firma OBLIGATORY

MATCHCODE OBJECT emi_object," DM Company

p_obj LIKE temksv-object

MODIF ID abc DEFAULT 'CRDMGMT'." DM Object

SELECTION-SCREEN END OF BLOCK b.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF rb_pc = 'X' AND screen-group1 = 'RB2'.

screen-input = '0'.

MODIFY SCREEN.

ELSEIF rb_srv = 'X' AND screen-group1 = 'RB1'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'ABC'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Reward points if this helps.

Manish

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
284

Hi, I assume that you are using the SET PF-STATUS, if so use the EXCLUDING extenstion of this statement. This way you can toggle which button to exclude.

Regards,

Rich Heilman