2009 Jul 06 6:12 AM
Hi Friends,
I have 3 input field and two radio button in my selection screen, On clicking the first radio button, the sum of two fields should be displayed in the third input field. Similarly when i click the second radio button, the multiply of two fields should be displayed in third inpur field.
Could you please all help me on this?
Regrads,
Sundaresan
2009 Jul 06 6:24 AM
Hi,
Check this code..
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
parameter : num1 TYPE i,
num2 TYPE i,
num3 TYPE i.
PARAMETERS: r1 RADIOBUTTON GROUP rad1 user-command usr DEFAULT 'X',
r2 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
IF r1 EQ 'X'.
num3 = num1 + num2.
ENDIF.
IF r2 EQ 'X'.
num3 = num1 * num2.
ENDIF.
Hi Friends,
I have 3 input field and two radio button in my selection screen, On clicking the first radio button, the sum of two fields should be displayed in the third input field. Similarly when i click the second radio button, the multiply of two fields should be displayed in third inpur field.
Could you please all help me on this?
Regrads,
Sundaresan
2009 Jul 06 6:24 AM
Hi,
Check this code..
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
parameter : num1 TYPE i,
num2 TYPE i,
num3 TYPE i.
PARAMETERS: r1 RADIOBUTTON GROUP rad1 user-command usr DEFAULT 'X',
r2 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
IF r1 EQ 'X'.
num3 = num1 + num2.
ENDIF.
IF r2 EQ 'X'.
num3 = num1 * num2.
ENDIF.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |