Application Development and Automation 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: 
Read only

How to run a program using wf-batch

Former Member
0 Likes
990

Hi all,

We are creating production order. While doing this when we save the order a program or function module should be automatically triggered using the user wf-batch.

How to do this?

Regards,

Kumar.

Hi all,

We are creating production order. While doing this when we save the order a program or function module should be automatically triggered using the user wf-batch.

How to do this?

Regards,

Kumar.

3 REPLIES 3
Read only

mvoros
Active Contributor
0 Likes
735

Hi,

when you have properly configured workflow on your system then there is RFC destination for each client (SM59 - Logical Connections) with name WORKFLOW_LOCAL_XXX where XXX is a client number. This destination has predefined user WF-BATCH. So you need to create a FM which will create a production order and call it with destination WORKFLOW_LOCAL_XXX.

Cheers

Read only

Former Member
0 Likes
735

Hi Martin,

Thanks for ur answer. Yes the same WORKFLOW_LOCAL_XXX is in SM59 and also having one FM in our production server. But dont know how it is running(its working fine in Production server)?

How to find it?

Could u pls tell me how to call it with destination WORKFLOW_LOCAL_XXX?

Thanks & Regards,

Kumar.

Read only

mvoros
Active Contributor
0 Likes
735

CALL FUNCTION 'ABC'
DESTINATION 'WORKFLOW_LOCAL_XXX'
...

More info ABAP documentation.

Cheers