Question:
Hi All
I am trying to create a workflow that is triggered when ever a sales order is created with a manual price or a Sales order is changed with the same reason.
I am hoping to use a field in the VBUP table containing the sales order line items status. When this field contains a certain value the workflow should be triggered.
I have found a userexit USEREXIT_SET_STATUS_VBUP. Where I could check that the conditions are correct to trigger the workflow.
Is it possible to trigger the workflow directly from the user exit or should I create a new event it BUS2032 any ideas anyone ?
Rgds
Mr Dubbya
Answer:
The SAP recommended method would be to create a custom object and use delegation to tie the new event to the standard object. This will help ensure retaining the object integrity and future compatiblity.
Regards,
Timothy Harris
Answer:
What is delegation & how to tieup the custom object with standard transaction?
Answer:
What you need to have in mind is which is the actual event that raises the workflow. Does it already exist or is it a new one? if there is an existing event that suits, then you can use the standard business obect (unless some other enhancement is needed, of course), if not, you should create a new subordinated object for you development.
Regarding the user exit, you should check when is being call. The event should be raised when the sales order is actually changed, and this is in update task. For this you have to be sure that whenever the user exit is called, the commit work is followed.
I hope this could help.
Regards,
Leonardo.
_________________
------------------------------------
Two wrongs can't make a right,
it usually takes three or more.
------------------------------------
Hasta la victoria, Siempre.