2006 Nov 15 4:12 PM
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
2006 Nov 15 5:32 PM
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
2006 Nov 15 4:15 PM
2006 Nov 15 4:24 PM
If i enter in 1 selection screen
othere 2 fields should be disable
2006 Nov 15 5:23 PM
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.
2006 Nov 15 4:28 PM
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
2006 Nov 15 5:11 PM
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.
2006 Nov 15 5:18 PM
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.
2006 Nov 15 5:32 PM
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
2006 Nov 16 5:15 AM
2006 Nov 16 5:34 AM
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
2006 Nov 16 5:55 AM
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.
2006 Nov 16 11:27 AM
I need this if i click on any selection screen other 2 fileds should be disable
is my que clear for u all
2006 Nov 17 6:03 AM
2006 Nov 17 6:03 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |