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

I need a selection screen

Former Member
0 Likes
1,334

I need a selection screen if there r 3 selection screen in O/P screen

If i click on 1 selection other 2 should be disable

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,304

Hi Swaroop,

U have 3 options to do this.

Option 1: By having 3 Radio Buttons for each field and by selecting corresponding radio Button the other fields were disabled.

Option 2: By having 3 TabStrips for ecch field.

Option 3: Disabling fields after entering value and PRESS ENTER.

Please let me know ur option will suggest u code.

Any how for all u need to disable in EVENT: AT SELECTION-SCREEN OUTPUT.

Regards,

Sanjeev

I need a selection screen if there r 3 selection screen in O/P screen

If i click on 1 selection other 2 should be disable

13 REPLIES 13
Read only

Former Member
0 Likes
1,304

Not clear. Can you rephrase your question?

Read only

0 Likes
1,304

If i enter in 1 selection screen

othere 2 fields should be disable

Read only

0 Likes
1,304

Try the below code...

example you have 3 parameters on the selection-screen p1, p2 and p3.

AT SELECTION-SCREEN OUTPUT.

IF p1 is not initial.

LOOP AT SCREEN.

IF screen-name = 'P2' or screen-name = 'P3'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF p2 is not initial.

LOOP AT SCREEN.

IF screen-name = 'P1' or screen-name = 'P3'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF p3 is not initial.

LOOP AT SCREEN.

IF screen-name = 'P1' or screen-name = 'P2'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Read only

Former Member
0 Likes
1,304

Hi,

Do you want to have a radio button to click on that to disable some of the selection fields..

Or you have a tab strip in your selection screen..??

Please explain your requirement in detail..

Thanks,

Naren

Read only

Former Member
0 Likes
1,304

Hi Swaroop,

Check out this code ..


************************************************************************
*              AT SELECTION SCREEN OUTPUT                              *
************************************************************************
AT SELECTION-SCREEN OUTPUT.
  IF p_deta = 'X' OR p_strt = 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

Read only

rahulkavuri
Active Contributor
0 Likes
1,304

hi i think you are working on a Selection screen with radio button, check this one, works fine

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'POSNR' OR SCREEN-NAME = 'VBELN.

IF RADIO = 'X'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

endif.

ENDLOOP.

Read only

Former Member
0 Likes
1,305

Hi Swaroop,

U have 3 options to do this.

Option 1: By having 3 Radio Buttons for each field and by selecting corresponding radio Button the other fields were disabled.

Option 2: By having 3 TabStrips for ecch field.

Option 3: Disabling fields after entering value and PRESS ENTER.

Please let me know ur option will suggest u code.

Any how for all u need to disable in EVENT: AT SELECTION-SCREEN OUTPUT.

Regards,

Sanjeev

Read only

0 Likes
1,304

Hai,

Can u plz send me the codeing for the 3 options

Read only

Former Member
0 Likes
1,304

Hi Swaroop,

write like this, i hope your problem will solve

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS: S_EBELN FOR EKKO-EBELN.MODIF ID S1.

PARAMETERS: P_MATNR TYPE MATNR MODIF ID S2,

P_WERKS TYPE WERKS_D MODIF ID S3.

SELECTION-SCREEN END OF BLOCK B1.

        • BLOCK 2 ****

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.

SELECTION-SCREEN BEGIN OF LINE.

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

R2 RADIOBUTTON GROUP G1 ,

R3 RADIOBUTTON GROUP G1 .

SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF R1 EQ 'X' .

IF SCREEN-GROUP1 EQ 'S2' AND SCREEN-GROUP1 EQ 'S3'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

SET CURSOR FIELD 'S_EBELN'.

ENDIF.

ENDIF.

IF R2 EQ 'X'

IF SCREEN-GROUP1 EQ 'S1' AND SCREEN-GROUP1 EQ 'S2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

SET CURSOR FIELD 'P_MATNR'.

ENDIF.

ENDIF.

IF R3 EQ 'X'.

IF SCREEN-GROUP1 EQ 'S1' AND SCREEN-GROUP1 EQ 'S3' .

SCREEN-INPUT = 0.

MODIFY SCREEN.

SET CURSOR FIELD 'P_MATNR'.

ENDIF.

ENDIF.

ENDLOOP.

Thanks,

Murali

Read only

former_member69765
Contributor
0 Likes
1,304

See this Code.... I suppose this is exactly what u require...

Note : U need to press enter after populating any of the 3 parameters...

Please tell me if it works and plz reward points.

-


parameters : p1 , p2 , p3.

at selection-screen output.

if p1 is not initial.

LOOP AT SCREEN.

IF screen-name = 'P2' or screen-name = 'P3'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

else.

if p2 is not initial.

LOOP AT SCREEN.

IF screen-name = 'P1' or screen-name = 'P3'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

else.

if p3 is not initial.

LOOP AT SCREEN.

IF screen-name = 'P2' or screen-name = 'P1'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

endif.

endif.

endif.

Read only

Former Member
0 Likes
1,304

I need this if i click on any selection screen other 2 fileds should be disable

is my que clear for u all

Read only

Former Member
0 Likes
1,304

Thx u all

Read only

Former Member
0 Likes
1,304

Thx u all