on 01-12-2016 12:19 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If I understand You correctly Your WF is triggered again after You change Sales Order using BAPI right? Or?
br,
artur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.