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 determine call is from workflow

Former Member
0 Kudos

Hello All,

I am developing a user exit to update a Z table when a vendor invoice is being posted. This has to be done only when the invoice is being posted manually and not through workflow.

I want to know if there is a way to find out if the 'Post' action has been triggered by Workflow or manually.

I know that I can do some checks on sy-tcode or sy-ucomm but I wanted to know if there is any FM which can determine if a particular application is called via workflow or not.

I tried using 'SWO_REQUESTER', 'GET_WORKFLOW_ID' but I am not sure what it returns in what case.

Please suggest.

Thanks in advance,

Archana.

1 ACCEPTED SOLUTION

messier31
Active Contributor
0 Kudos

Can you trying checking if 'GET_WORKFLOW_ID' is initial or not, if not then call from workflow?

Enjoy SAP.

Pankaj Singh.

1 REPLY 1

messier31
Active Contributor
0 Kudos

Can you trying checking if 'GET_WORKFLOW_ID' is initial or not, if not then call from workflow?

Enjoy SAP.

Pankaj Singh.