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: 

Program should execute both for F8 and F9

Former Member
0 Kudos

Hi All,

I have a requirement that my program should execute both for F8 and F9.

I have developed it as a report as the selection-screen contains 'Select-Options' and they want the Multiple Selection Button.

I know that if I develop it as a Module pool, my problem is very easily solved.

But since they want the Multiple-Selection button for Select-options which we cannot provide in a Module-Pool I am forced to develop a report.

Please let me know if its possible to execute the program with both F8 and F9 function keys, while F8 can be the normal execute button, there is no need of any button for F9, that is a F9 key press is enough. The Report should execute if the user presses F8 or F9 key on the Key-board.

Hope I am clear.

Please help me with your suggestions.

Thanks in Advance.

Edited by: Dagny on Apr 1, 2009 6:57 AM

6 REPLIES 6

Former Member
0 Kudos

By default program will be executed in Background for F9. Since it was predefined functionality i hope you cant change it.

Former Member
0 Kudos

Hi,

You can create a button on the Application toolbar and assign it to F9 and at sy-ucomm of that button , you can call execute.

Former Member
0 Kudos

Hi, Dangy

I dont think you can do with f9 fkey,

but you can do with ctrl+f9 , if ur client like this..

this are some available FKeys.

Freely assigned function keys

F5

F6

F7

F8 ONLI Execute

Shift-F1 DOCU Program Documenta...

Shift-F6 SCRH Selection Screen ...

Shift-F7 ALLS All Selections

Shift-F8 FEWS Chosen Selections

Shift-F9

Shift-Ctrl-0

Shift-F11

Shift-F12

Ctrl-F1 FC01 <SSCRFIELDS-FUNC...>

Ctrl-F2 FC02 <SSCRFIELDS-FUNC...>

Ctrl-F3 FC03 <SSCRFIELDS-FUNC...>

Ctrl-F4 FC04 <SSCRFIELDS-FUNC...>

Ctrl-F5 FC05 <SSCRFIELDS-FUNC...>

Ctrl-F6 LVUV User Variables...

Ctrl-F7

Ctrl-F8

Ctrl-F9

Ctrl-F10

Ctrl-F11

Ctrl-F12

Ctrl-Shift-F1

Ctrl-Shift-F2

Ctrl-Shift-F3

Ctrl-Shift-F4

Ctrl-Shift-F5

Ctrl-Shift-F6

Ctrl-Shift-F7

Ctrl-Shift-F8

Ctrl-Shift-F9

Ctrl-Shift-F10

Ctrl-Shift-F11

Ctrl-Shift-F12

Just execute ur program, and go to system>status->in SAP data , there is GUI status-> dbl clik in ur gui status and assign Fcode for ctrl+f9 and handle the same in user command.

I hope it will solve ur problem.

Former Member
0 Kudos

Hi,

The program will executed in backgrounf for F9 by default. I think you can not change it.

Regards,

Jyothi CH.

0 Kudos

Hi,

F8 okcode = ONLI

F9 okcode = SJOB

declare TABLES : sscrfields.

then check the okcode is SJOB or not, then change the okcode to ONLI.

IF sy-ucomm EQ 'SJOB'.

sscrfields-ucomm = 'ONLI'. "GLOBAL DECLARATIONS

ENDIF.

This will bypass the normal F9 okcode. Hope it help.

Former Member
0 Kudos

Closing the thread