cancel
Showing results for 
Search instead for 
Did you mean: 

SWO1 approval in background does not clear manager workflow item

harishsarathy29
Active Participant
0 Kudos

Hi,

I am trying to approve the shopping cart from a managers UWL in background through SWO1.

But when I do the shopping cart is getting approved whereas the approval item is still pending with the manager of the shopping cart.

How to delete the workitem from the manager inbox once I push the shopping cart for approved status in SWO1 ?

Regards

harish

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

What is the workflow status in BBP_PD transaction?

Regards,

Masa

harishsarathy29
Active Participant
0 Kudos

Hi,

Workflow status is awaiting approval, it is with same manager even after using SWO1 to approve.

Regards

harish

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Awaiting approval is document status. You can find workflow status and workflow item number in BBP_PD.

Please check workflow item detail in SWI1 transaction.

I think debug the setReleased method is good way for finding the root cause. It might change only document status and does not change workitem side.

If the SWO1 method does not fit your requirement, please check the class /SAPSRM/CL_OFFLINEAPP_INBOUND.

  • (b) Check whether workitem is still in status 'READY'

  • (d) Check procurement document

  • (e) Lock procurement document

  • (f) Append approval note as a long text of type NOTM to the

  • procurement document => Update document

  • (g) Execute the workitem

  • (h) Unlock the document

  • Export the processing results and errors out of the method

Regards,

Masa