2007 Aug 22 5:31 PM
i have created 2 radio buttons
Brandwise and customerwise
so i want to validate the radio buttons
how can we validate through at selection screen radiobutton group xx.
if code iam thankful to u
i have created 2 radio buttons
Brandwise and customerwise
so i want to validate the radio buttons
how can we validate through at selection screen radiobutton group xx.
if code iam thankful to u
2007 Aug 22 5:40 PM
HI,
check this one.. based on the radion button this is going to enable and disable a field.
PARAMETERS : Pre_lay RADIOBUTTON GROUP RG USER-COMMAND R DEFAULT 'X'.
PARAMETERS : Apln_lay RADIOBUTTON GROUP RG .
selection-screen begin of block b1 with frame.
parameters : Pre_layr(10) type c modif id abc.
selection-screen end of block b1.
selection-screen begin of block b2 with frame.
parameters : Appl_lay(40) type c modif id def.
selection-screen end of block b2.
at selection-screen output.
IF Pre_lay = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'DEF' .
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF Apln_lay = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC' .
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Thanks
Mahesh
2007 Aug 22 6:50 PM
Hi,
mahesh.
i would like to know abt
At selection screen on radiobutton group g1.
2007 Aug 22 7:09 PM
Hi,
In the PAI event of the selection screen, the event
AT SELECTION-SCREEN ON RADIOBUTTON GROUP <radi>
is triggered when the contents of all of the fields in a radio button group are passed from the selection screen to the ABAP program. To define a radio button group <radi>, use the addition RADIOBUTTON GROUP <radi> in the corresponding PARAMETERS statements. This event block allows you to check the whole group. If an error message occurs within this event block, the radio button group is made ready for input again on the selection screen. The individual fields of radio button groups do not trigger the event AT SELECTION-SCREEN ON <field>.
REPORT EVENT_DEMO.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
R2 RADIOBUTTON GROUP RAD1,
R3 RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
PARAMETERS: R4 RADIOBUTTON GROUP RAD2 DEFAULT 'X',
R5 RADIOBUTTON GROUP RAD2,
R6 RADIOBUTTON GROUP RAD2.
SELECTION-SCREEN END OF BLOCK B2.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
IF R1 = 'X'.
MESSAGE W040(HB).
ENDIF.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD2.
IF R4 = 'X'.
MESSAGE W040(HB).
ENDIF.
regards,
Ravi
2007 Aug 22 7:25 PM
yes what validatation u want to do...
plz tell me so that i can send you some code..
Thanks
mahesh
2007 Aug 23 10:07 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |