‎2006 Mar 08 6:17 AM
Hi,
I have a requirement.
for eg., For sales order, any changes should go through Workflow approval.
Say the <i>customer</i> is changed from ABC to XYZ, is it possible that the order still retains ABC (old value)...And then if the superior <b>approves</b> the change from the Workflow, then the DB is updated with XYZ.
1. If so, how can I do it ?
2. are there any standard WFs that you can show me that might have this implemented..
Rgds,
Prash.
‎2006 Mar 08 6:31 AM
Hi,
Is Sales Order approval is a real example? Coz, i think sales order does not need an approval.
If you want to search for standard workflow,
go to transaction OOCU and check in Sales and Distribution Node. I think there are no standard workflow available for Sales Orders.
You will have create a custom workflow.
Hope this helps..
Regards,
Shashank
‎2006 Mar 08 6:43 AM
Hi Shashank,
The Sales Order approval is a customer requirement. There are reasons why we are doing this.
And we wont be doing this WF thing always. it is based on some condition.
There are 2 problems here really.
1. The new changes should not be done to the order on Order Save.
2. The WF should know the new values.
This will then work like how you have planned changes for material in MM12 using change number.
Rgds,
Prashanth.
‎2006 Mar 08 6:45 AM
Hi Prasanth,
In Workflow ones if Superior approved means old value is no longer present. the Database is updated with new value.
The steps involved in Work flow:
SW01 Maintain Business object in Business object Repository
SWEC : Event linkage for Business Object here only you will set the sales order changed event with Business object
PFTC: Task maintananace
SBWP : Work flow Business place
Regards
Ashok
‎2006 Mar 08 6:59 AM
Hi again,
Offcourse, it has to be a customer requirement. I was just trying to understand the exact requirement.
anyways.. there can be two suitable approaches
1) You can use the user exit USEREXIT_SAVE_DOCUMENT when a sales order is saved. The changed values are available in this user exit.
You can trigger a workflow from this exit and pass the values to the workflow.
2) Use standard business object BUS2032. CHANGED event of this object can also trigger a workflow and all the values will be available to the WF in the attributes of the object BUS2032.
Hope this helps..
Regards,
Shashank