Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

subworkflow - event trigerring within workflow

Hi,

Scenario -- WF is triggered when customer creates quote and it goes to manager for approval. If the manager rejects it, work item goes back to the user. My requirement is -- if the user makes any change with price - he changes the status of the quote to 'revised' at header level. Then it should again go back to manager for approval. If the user makes some other changes and does not change the status to revised--- then it need not go back to manager. How do I keep it in loop. Is there need for me to check some table and trigger a new event and create a subworkflow. How do I go about. Please help me. It is urgent.

Thanks,

Raju

Former Member
replied

First of all do not include new question in existing thread. Post a new Thread for this.

Your original question resolution.

Create a fork(1 necessary branch and 2 parallel branch). In one branch put the approval step. In aonther branch put the wait for Change Event Step. Put this step in a loop. Now create an attribute inside your business object or amethod that will check whether it is a price change or not. You can achieve this by Changedocument. Read CDHDR and CDPOS table. Accordingly set a flag. If the flag is X means change in price the Loop condition will tereminate. Otherwise flag not X that means changes not relevant for approval.

Please close thread if resolved.

Thanks

Arghadip

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question