Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow to aprove changes

Former Member
0 Likes
719

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.

4 REPLIES 4
Read only

Former Member
0 Likes
670

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

Read only

0 Likes
670

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.

Read only

Former Member
0 Likes
670

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

Read only

Former Member
0 Likes
670

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