cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with approvers in SC, using BADI BBP_WFL_APPROV_BADI SRM 4.0

Former Member
0 Kudos

Hello,

In our system he have a strength problem. When we create one SC in the Portal(ITS) using the Catalog products the document (when we memorized the document) shows 2 approvers (this is a N-step approval with the implementation BADI BBP_WFL_APPROV_BADI), when we try to order the same document shows only one approver. We cannot understand this behavior. Testing the BADI, always shows 2 approvers.

We try another test, with the difference of recording directly the products in the portal, not using the catalog, and everything goes right with 2 approvers.

Anyone had the same problem???

Accepted Solutions (0)

Answers (3)

Answers (3)

khan_voyalpadusman
Active Contributor
0 Kudos

hi,

looks like the badi in your system behaves differently for the same value of the shopping cart.

so the best way to identify , is to debug the approval determination of N-step Badi.

in two different cases

so if you know how to debug , then it is very easy to find out.

you have to put breakpoint at function module

bbp_wfl_db_update. and then go to debugging of the N-step badi

Former Member
0 Kudos

Hi,

Try to debug the BADi for the case where you are adding the items from the catalog.Are the correct values getting passed to the container.Also check the logic written in the BADI for catalog items.

Also for the Catalog items, although it shows 1 approver after ordering does the Work item goes to both the approvers???

BR,

Disha.

Pls reward points for useful answers.

Former Member
0 Kudos

Hello,

We had test the BADI, always times have 2 approvers...

The work item just go to one approver.

Regards

martin_nooteboom
Active Contributor
0 Kudos

Hi Duarte,

Just to be sure, In the preview you see two approvers, but when the SC is ordered and the first approver approves the SC is approved completely and the SC is ordered?

You can debug the BADI by putting in an endless loop in the BADI and then access the badi from SM50. You will see a dialog process for the user which is ordering the SC. Select that session and go to Program / modus -> Program -> Debug. You will get a debug session which is at your endless loop. Then you can debug your BADI. You will enter it when you go to the preview and a second time when the SC is ordered I think. Debug both times and compare the different parameters. Maybe you can find the difference (if there is one).

Regards,

Martin

Former Member
0 Kudos

Hi

<b><u>Please go through the following SAP OSS Notes -></u></b>

Note 910612 - Composite note: BADI workflows - replacing programming exits

Note 716928 - Workflow BADI: Inserted approver disappears

Note 738726 - SRM-EBP-WFL: No approvers possible for WF WS14000133

Note 644065 - Approval preview: Incorrect sequence in the table

Note 748655 - SC APPROVAL GRAPHIC PREVIEW NOT CORRECT FOR BADI APPROVERS

Note 730033 - Added approver: Change from standard to BAdI workflow

Note 799688 - Approver cannot be replaced in BADI workflow

<u>For Debugging Workflow, use this SAP OSS Note -></u>

<b>Note 903200 - Workflow tracing for problem detection</b>

Incase none of them helps, Please raise a Customer OSS message with SAP as well.

Do let me know.

Regards

- Atul

Former Member
0 Kudos

Hello,

Thanks for the replay. But those note´s cannot help me...

Regards