Skip to Content
author's profile photo Former Member
Former Member

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2008 at 05:58 AM

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

    Enjoy SAP.

    Pankaj Singh.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.