I have developed a sales contract approval workflow. The workflows that has credit block will go for approval.
Manually it should be approved through VKM3. But I am using FIORI font end for approval and a background task is updating the table VBUK-CMGST each time its get approved through FIORI. Which is working fine.
But if the user approves through VKM3 (not through workflow), the workflow remains incomplete. it will remain in his inbox for lifetime.
Approval through VKM3 - event that is captured is "Changed".But I cannot use change because, if user open and change the amount the workflow will get completed, which is wrong.
How can I complete the workflow if approved through VMK3?
Tried :
1.I have tried using fork with wait step, and used "wait for condition", overallcredit status = D, but its not working
2. Scheduled a background job in every hour, but there I have to specify abap program name, cannot provide a task name.
3.I have tried using fork with wait step, and used "wait for event" created custom event "RELEASEOUTSIDE" and mapped but, its also not workfing. because RELEASEOUTSIDE is not defined anywhere.
See attached. Any suggestion/hint/steps to follow is appreciated.