03-04-2009 4:46 AM
hi,
how to enable the f8 on selection-screen when radiobuttons are present??..
Thanks
Sri
03-04-2009 4:47 AM
Hi,
Whenever you take some parameters on the selection screen, the EXECUTE button is displayed by default.
Regards,
Tarun
03-04-2009 4:52 AM
Its not like that. just see the code below.. F8 is not working..
AT SELECTION-SCREEN.
CASE SY-UCOMM.
WHEN 'PB1'.
IF R1 = 'X'.
PERFORM SUB_DISP_CUSTGRP.
ELSEIF R2 = 'X'.
PERFORM SUB_DISP_CUSTOMER.
ENDIF.
WHEN 'PB2'.
R1 = 'X'.
R2 = ' '.
REFRESH: S_KUNNR,
S_KDGRP,
S_MATKL,
S_SPMON.
ENDCASE.
03-04-2009 5:09 AM
Hi,
The F8 button is already enabled but its corresponding sy-ucomm value is 'ONLI'.
So, you should check for :
CASE SY-UCOMM.
WHEN 'ONLI'.
Regards.
03-04-2009 4:49 AM
03-04-2009 4:51 AM
if you want to enable or disable the F8 button according to u r radio button slection then you have to create your own custom button and program accordingly..
03-04-2009 4:52 AM
Hi
When select-options are declared F8 is default, It will work Check it once again.
Regards,
Rajnai.
03-04-2009 4:53 AM
Hi Dude,
For all the reports(Executable programs) By defaulty F8 button will be enable. For F8 Button Enable no need to write the explicitly.....
Hope it may clears for you
Thanks & Regards
Ramakrishna Pathi
03-04-2009 5:03 AM
i got it myself..
just by using exit in radiobutton code and switching to start-of-selection.
03-10-2009 2:50 PM
F8 is atomatically enabled for executable programs .
AT SELECTION-SCREEN event is used to validate the selection screen variables and display the result in the selection screen
CASE SY-UCOMM.
WHEN 'ONLI' " It is the Fcode for F8.
IF R1 = 'X'.
PERFORM SUB_DISP_CUSTGRP.
ELSEIF R2 = 'X'.
PERFORM SUB_DISP_CUSTOMER.
ENDIF.
WHEN 'PB2'.
R1 = 'X'.
R2 = ' '.
REFRESH: S_KUNNR,
S_KDGRP,
S_MATKL,
S_SPMON.
ENDCASE.
In Above code.you select radio button one R1 and SY-UCOMM is PB1
In Perform routinue You can write code like to enter the KUNNR values.
form SUB_DISP_CUSTGRP.
s_kunnr-low = '0001232324'.
s_kunnr-high = '000234456'.
append s_kunnr.
endform.
The range will be displayed in the kunnr field when you press F8 button.
Please try this once