Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to enable the f8 on selection-screen

Former Member
0 Kudos

hi,

how to enable the f8 on selection-screen when radiobuttons are present??..

Thanks

Sri

9 REPLIES 9

I355602
Advisor
Advisor
0 Kudos

Hi,

Whenever you take some parameters on the selection screen, the EXECUTE button is displayed by default.

Regards,

Tarun

Former Member
0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

By default it wil lbe enable, Is it not for you?

former_member242255
Active Contributor
0 Kudos

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..

Former Member
0 Kudos

Hi

When select-options are declared F8 is default, It will work Check it once again.

Regards,

Rajnai.

Former Member
0 Kudos

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

0 Kudos

i got it myself..

just by using exit in radiobutton code and switching to start-of-selection.

Former Member
0 Kudos

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