cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_WFL_APPROV_BADI - Change approval step

Former Member
0 Kudos

Hi,

we need to determine the shopping cart approvals in every approval step.

We have N-step BADI workflow and we use the BBP_WFL_APPROV_BADI to determine the approval step.

We have a BIG problem because it seems that BBP_WFL_APPROV_BADI was called only if an update or a rejection is made.

For us, the BBP_WFL_APPROV_BADI must be always called, even if the person only approve.

This badi is not always called because in the function BBP_WFL_DIN_APPR_FINALLIST_GET there is the following check

IF ( iv_wf_state = '0001' OR iv_wf_state = '0002' AND iv_obj_changed IS NOT INITIAL ).

In the approval, without changes, the variable iv_obj_changed is initial, so the BADI is not called for approvals.

Anyone could help me to understand?

Should we change the standard function and delete the iv_obj_changed check?

Please help me, it' very important

Thanks

Lara

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Lara,

First of all to clarify that BBP_WFL_ APPROV_BADI triggers for all the approval steps.

In your case i believe the possibilities of badi not being called could be

1) Workflow start condition - Check for the changed version and original WF that you have activated for the n-step approval.

2) Check for the filters you have created for BADI

3) Check your code in BADI for scenario specific coding.

4) Check your settings for BADI in SPRO

If still this doest help then let me know to sugget you further..

Regards

RP

Ps: Pls close the thread if your question in answered..

khan_voyalpadusman
Active Contributor
0 Kudos

Hi ,

Have you done debugging of the approval process? please let me know.

BBP_WFL_DIN_APPR_FINALLIST_GET --> FM is called at three places and one most important place is in the FM

BBP_WFL_DIN_APPR_CONTAINER_SET.

i have seen during debugging that N-STEP badi is always called during the approval process.

If you need help to debug , let me know

bhakti2
Active Participant
0 Kudos

Hello Usman,

I have a problem in debugging this BADI. Will you please help me ?

I have put the loop and trying to debug in SM50.

When I try to debug in SM50 nothing happens, debugger doesnt start at all and neither is there any message.

I have tried the same procedure in another SRM system available to me and its working there.

Should I contact any basis person ?

I have posted the same question in a separate thread.

I need to rsolve this very urgently.

any input will be a great help to me.

thank you very much in advance.

-rita

bhakti2
Active Participant
0 Kudos

Hi Lara,

Were you able to solve you problem ?

-rita

Former Member
0 Kudos

Hi Lara,

Have you defined yet the Level of authorization for this particular approver role.

If not go to the specific role with transaction PFCG and go to Personalization Tab

there you will find BBP_WFL_SECURITY Option and set Authorization Levels

such as HIGH MEDIUM LOW etc..

I think this may solve your issue.

with regards,

mahesh

Former Member
0 Kudos

Hi,

before all thanks for your reply ...

Yes, our users already have the BBP_WFL_SECURITY Option set.

We have the problem even if the user has

2 (Low) or 4 (High) authorization level (BBP_WFL_SECURITY Option).

It seems that the variable iv_obj_changed is not related to BBP_WFL_SECURITY Option.

Any other suggestion?

Please help me.

Thanks

Lara