2008 Jun 24 1:09 PM
Hello All,
I have 3 Radiobuttons(RB1,RB2,RB3) on my SSCRN.
For each Radio Button there are ceratin I/P FIelds.
For RB1 There are Input fields as well as one Checkbox CB1.
My Intention is :
When either of the Radiobutton is selected the I/P Fields of the other radiobuttons must be INITIALIZED and shud be DEACTIVATED.
This is working fine for the first time.
But when 2nd time the CB1 value is not getting correct.
i.e say when RB1 is pressed the I/P fields of RB2 and RB3 shud get cleared and deactivated.
This is working fine.
But when RB1 is pressed and CB1 is also pressed and then RB2 is pressed -->
then the CB1 check box is not getting cleared instead it's getting deactivated with the checkbox checked.
I tried to debug this but when I debug it's working abs. fine.
But when outside debugging it's failing.
I'm not kidding .The problem is in that way.
Can u guys help me out ?
Regards,
Deepu.K
...
Hello All,
I have 3 Radiobuttons(RB1,RB2,RB3) on my SSCRN.
For each Radio Button there are ceratin I/P FIelds.
For RB1 There are Input fields as well as one Checkbox CB1.
My Intention is :
When either of the Radiobutton is selected the I/P Fields of the other radiobuttons must be INITIALIZED and shud be DEACTIVATED.
This is working fine for the first time.
But when 2nd time the CB1 value is not getting correct.
i.e say when RB1 is pressed the I/P fields of RB2 and RB3 shud get cleared and deactivated.
This is working fine.
But when RB1 is pressed and CB1 is also pressed and then RB2 is pressed -->
then the CB1 check box is not getting cleared instead it's getting deactivated with the checkbox checked.
I tried to debug this but when I debug it's working abs. fine.
But when outside debugging it's failing.
I'm not kidding .The problem is in that way.
Can u guys help me out ?
Regards,
Deepu.K
...
2008 Jun 24 1:24 PM
Check the sample for 2 radio buttons:
*Selection screen
*Radiobuttons for selecting single material or range of BOM components
SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
*Radiobutton for selecting material
PARAMETERS:rb_mat RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND com1.
*Radiobutton for selecting BOM components
PARAMETERS:rb_comp RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
*Enter BOM header and details
SELECTION-SCREEN BEGIN OF BLOCK sub1 WITH FRAME TITLE text-002.
PARAMETERS:p_matnr TYPE mara-matnr MODIF ID id1. "Material Number
PARAMETERS:p_werks TYPE marc-werks MODIF ID id1. "Plant
PARAMETERS:p_stlan TYPE mast-stlan MODIF ID id1. "BOM usage
PARAMETERS:p_stlal TYPE mast-stlal MODIF ID id1. "Alternative BOM
PARAMETERS:p_capid TYPE rc29l-capid MODIF ID id1. "BOM Application
SELECTION-SCREEN END OF BLOCK sub1.
*Enter BOM components
SELECTION-SCREEN BEGIN OF BLOCK sub2 WITH FRAME TITLE text-003.
SELECT-OPTIONS:s_matnr FOR marc-matnr MODIF ID id2. "Material Number(BOM component)
SELECTION-SCREEN END OF BLOCK sub2.
*Enter document details
SELECTION-SCREEN BEGIN OF BLOCK sub3 WITH FRAME TITLE text-004.
*Document number
PARAMETERS:p_doknr TYPE draw-doknr.
*Document Type
PARAMETERS:p_dokar TYPE draw-dokar.
*Document Part
PARAMETERS:p_doktl TYPE draw-doktl DEFAULT '000'.
*Document Version
PARAMETERS:p_dokvr TYPE draw-dokvr DEFAULT '00'.
SELECTION-SCREEN END OF BLOCK sub3.
*Display screen based on selection of radio button
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF rb_mat = 'X'.
IF screen-group1 = 'ID2'.
screen-active = 0.
ENDIF.
ELSEIF rb_comp = 'X'.
IF screen-group1 = 'ID1'.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |