07-05-2014 6:12 AM
Hi Folks,
I am using an LDB(Logical Data Base) of 'PNP' in my custom report and the LDB has a selection screen with different parameters .
My concern is, the selection screen has 6 Radio buttons from which if I select one from the first 5 Radio buttons the Dates highlighted should clear off, and when I click on Radio Button 'Other Period' the dates should display as shown .
Note: I am using the ECC 4.6C
Please suggest any solution to achieve this functionality .
Thanks,
Sujay.V
07-05-2014 9:11 AM
In the Database Read Program, add event:
AT SELECTION-SCREEN ON RADIOBUTTON GROUP grp.
READ TABLE screen WITH KEY name = 'OTHER_PD'. "change name to selection screen for period.
IF sy-subrc EQ 0.
IF radio_button6 EQ 'X'.
screen-enabled = '1'.
ELSE.
CLEAR screen-enabled.
ENDIF.
MODIFY SCREEN.
ENDIF.
07-05-2014 10:05 AM
Hi,
Consider your radio buttons looks like below:
PARAMETERS: RADIO1 RADIOBUTTON GROUP R1 MODIF ID RA1, "Today
RADIO2 RADIOBUTTON GROUP R1 MODIF ID RA2, "Current Month
RADIO3 RADIOBUTTON GROUP R1 MODIF ID RA3, "Current Year
RADIO4 RADIOBUTTON GROUP R1 MODIF ID RA4, " Up to today
RADIO5 RADIOBUTTON GROUP R1 MODIF ID RA5, "From today
RADIO6 RADIOBUTTON GROUP R1 MODIF ID RA6. "Other period
AT SELECTION-SCREEN.
IF RADIO1 EQ 'X' OR RADIO2 EQ 'X' OR RADIO3 EQ 'X'
OR RADIO4 EQ 'X' OR RADIO5 EQ 'X'.
CLEAR: "Add your date variables here
ELSEIF RADIO6 EQ 'X'
ADD Logic for your date variable here
ENDIF.
Hope this will help you .
regards,
Rajesh Sadula.