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

Problem with business object using BAPI for sales order

Hi,

My requirement is to send work item for approval/rejection for sales order discount condition based on sales organization.

I have created custom business object ZSEBUS2032 and delegate it to BUS2032.


My workflow is triggering fine and work item is sent to SAP Inbox. Once Approve/Reject action is performed in the work item then the same condition value has to get updated in sales order. so I am using BAPI_SALESORDER_CHANGE for the same.


The value is updated correctly, but here the problem is when the BAPI is getting triggered, again standard business object BUS2032 is triggered and again work item is updated in the Inbox.


Can anyone please suggest to control business object getting triggered when using BAPI.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 13, 2016 at 01:52 PM

    http://scn.sap.com/thread/3383394

    Hi Kusuma,

    Kindly define Check FMs in SWE2 to check whether any active instance of the workflow exists for the same Sales Order. If an active instance for the Custom Workflow Template exists for the same key(Sales Order#), then raise the exception in the check FM.

    The exception will ensure that another instance of the workflow does not trigger for the same Sales order.

    Kindly refer to the above link for further details on Check FM concept.

    Thanks and Regards,

    Vikram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2016 at 10:04 AM

    Hi,

    If I understand You correctly Your WF is triggered again after You change Sales Order using BAPI right? Or?

    br,

    artur

    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.