cancel
Showing results for 
Search instead for 
Did you mean: 

Use of function module BBP_PDH_WFL_APPROVAL_SIMULATE

Former Member
0 Kudos

Dear SAP Gurus,

We have build a custom check in the BBP_DOC_CHECK_SC Badi to check if an approver is added to the Shopping cart.

In case of creating a Shopping Cart we can use the function module BBP_PDH_WFL_APPROVER_CHECK to check if an approver is added.

In case of a Shopping Cart with status held, in case of the Shopping Cart in approval or in case of the Shopping Cart is disapprvod we can't use the function module BBP_PDH_WFL_APPROVER_CHECK. Because it's not checking correctly if the approver exist.

In those case we use the function module BBP_PDH_WFL_APPROVAL_SIMULATE to check if en approver exist in the workflow. But we encounter a problem when using this function module.

When the requester wants to add an approver, the requester first searches for the approver and then click on add approver. Then nothing happens. The approver isn't added to the workflow and in case there was no approver anymore (after disapproving the SC) first an error message is displayed but after performing the add approver task the error message isn't displayed anymore and the approver isn't visible in the workflow.

Add an approver is also not possible when there is already an approver of no approver and the SC is put on Held. Then the same happens. Search for approver and click on Add Approver no approver is added.

We think this has something to do with function module BBP_PDH_WFL_APPROVAL_SIMULATE.

Has anyone some ideas how we can solve this? Check if approver exist in the workflow and still be abble to add an approver.

We are on SRM 4.0 with ECC 6.0 in Extended Classic Scenario.

Thank you in advance for your replies.

Best regards,

Jean-Pierre

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In my current project, there is a requirement to forward approver to other approver.

Something like tcode SWIA when forwarding a workitem.

In order to list approver of particular document, I am using BBP_PDH_WFL_APPROVAL_SIMULATE to needed parameters to run following FM BBP_PDH_WFL_PARAM_APPLET_FILL2.

From FM BBP_PDH_WFL_PARAM_APPLET_FILL2, I know whether the document has approver assigned or not.

Hopefully can help you.

Former Member
0 Kudos

Dear SAP gurus,

Any ideas about the question above?

Best regards,

Jean-Pierre