Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to determine call is from workflow

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.

replied

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

Enjoy SAP.

Pankaj Singh.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question