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: 

call dialog screen - use function key

Former Member
0 Kudos

Hi all.

I must add in tc VA01, VA02, MIGO, VL01N, VL02N, VLMOVE my logic. I want to call my function module by hit function key (F1-F12) or another shortcut. How i can do this? I must get some value from tc do my fm.

Thx

Grzegorz

7 REPLIES 7

Former Member
0 Kudos

you can use even at pfn.

like at PF8.

call transaction...

but it is obsolete now

regards

shiba dutta

Former Member
0 Kudos

Hi

U should change the status of that transaction in order to assign a function key, but this means you have to insert a new function in the status and so you need to change the tables for the program flow.

Are you sure you need to do it?

Max

Former Member
0 Kudos

I`m new in abap and sap. Maybe is another way. In tc that i write earlier i must have possibility to call dialog, where i will have my logic (convert units). But only if somebody want call dialog. Maybe add some button?

0 Kudos

Hi

It's not easy to add a new function in those transactions because the system check if the functionality selected exists.

There's a standard function module (SCREEN_SEQUENCE_CONTROL) manages what every functionality has to do, and all these data are stored in std tables (run trx VFBS).

It's not easy to add new data in trx VFBS in order to manage own buttons.

U can try to add a pushbutton in some screen-exit: but only VA01 and VA02 has one.

Max

Former Member
0 Kudos

Creat a Menu With Azll the Function Keys And In your Program Set The

PF-STATUS Name As the Newly Created Menu NAME.

And In your Code write the logic as below i.e

Set Pf status 'Zmymenu'

case Sy-ucomm

when f1

CAll transaction VA01.

......................

...................

And So on

EndCase.

Former Member
0 Kudos

You have to explore several possibilities of handeling event.

I am thinking of giving u solution based on Call Transaction... Before that If I get your exact requirement then I will be able to help u with possible code also,

Darshan

Former Member
0 Kudos

Ok, this is exact requirement for my problem

In transaction VA01, VA02, MIGO, VL01N, VL02N, VLMOVE, when user will be creating order and select material, then if he want, he can call my program/dialog by use function key/shortcut for selecting material. To my program/dialog will be transferring some value (material index, name, width, height, units ...).

In my "calculator" will be make recalculating beetwen units (mostly items for m3 and m3 for items) uses dimension or conversion rate. In "calculator" user will be can edit dimension or conversion rate. This data should be save when exit from "calculator" to transaction from user call my program. This is no easy problem. I hope i explain problem.

Thx

Grzegorz