cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with WS14000145 Approval N-Step for PO

Former Member
0 Kudos

Hi All,

Please help me,

We have SRM 5.5 (SAPKIBKT11). We use the BADI BBP_WFL_APPROV_BADI

and WS14000145 with 3-step approval (example, Manager1,Manager2,Manager3)

When the PO - hold, in approval I see 3 approval, but when I to push in button "Order" in approval I see only: Workflow started/Result: Approved (,i.e. work workflow without Approval for PurchOrder) all approvals disappear. And all three of approvals don't get the authorization flow. In the BADI in approval_table I have this approvals.

Best regards,

Guzal.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi, Martin,

Thank you for your answers,

Yes in the BADI I use No_Further_approval_needed, the fragment of my BADI:

WHEN 3.

ls_approver-approval_index = 3.

ls_approver-approval_agent = 'USKOMORNIKO_DA'.

ls_approver-name = 'Manager3'.

ls_approver-approval_description = 'Third approval step'.

APPEND ls_approver TO approval_table.

WHEN OTHERS.

no_further_approval_needed = 'X'.

ENDCASE.

Best regards,

Guzal.

Former Member
0 Kudos

Hi, Imthiaz Ahmed,

I'm order PO directly after doing a "CHECK" and status WS14000146 - Logically deleted.

Best regards,

Guzal.

martin_nooteboom
Active Contributor
0 Kudos

Hi Guzal,

Do you set 'No_Further_approval_needed' at any point in the BADI?

Regards,

Martin

Former Member
0 Kudos

Hi, Martin

Thank you for reply.

I'm trace WS14000145 through the tr. SWUD and I see that it start.

Work item selection:

10063 Background Step Set Status of Purchase Order to Released

10062 (Sub)workflow Update Purchase Order After Approval/Rejection

10061(Sub)workflow Subworkflow for N-Step (BADI) Approval PO

10060 (Sub)workflow Wait for BUS2202 Events (Subworkflow)

10059 (Sub)workflow BAdI approval for Purchase order no. 4400050008, GUID 480E86C61B6900BA000000000A012E1E

Workflow log:

Workflow and task Status Result

1) BAdI approval for Purchase Completed WF started

order no. 4400050008, GUID

2)Subworkflow for N-Step (BADI) Logically Deleted

Approval PO

3) Update Purchase Order After Completed Step Executed

Approval/Rejection

4) Set Status of Purchase Order Completed Purchase Order

to Released status set to

Released

And I set the external break-point in the BADI, I see that the Badi is called.

In the tr. SWI2_FREQ I see:

TS14007956 Set Purchase Order to Released Background Step

WS14000076 Wait for BUS2201 Events (Sub)workflow

WS14000077 Update PO After Approval (Sub)workflow

WS14000145 Approval N-Step for PO (BADI) (Sub)workflow

WS14000146 Subworkflow N-Step for PO (BADI) (Sub)workflow

WS14000154 Reviewer Workflow for PO Approval (Sub)workflow

Best regards,

Guzal.

imthiaz_ahmed
Active Contributor
0 Kudos

Do not put on "hold" and order it directly after doing a "CHECK" and let us know the behavior. I see in the log, it is logically deleted.

Former Member
0 Kudos

Hi, Martin,

Thank you for you answers.

The start conditions of WS14000145 is active (&EC Purchase Order.CreatorUser.Activity Group& CE Z_SRM_ADMIN), for WS14000075 - not active.

Best regards,

Guzal.

martin_nooteboom
Active Contributor
0 Kudos

Hi Guzal,

Could you activate the event trace (SWELS) and then create the PO again and check the event trace (SWEL) to see which workflow is started. You could also put an external break-point for the user to see if the Badi is called.

Regards,

Martin

martin_nooteboom
Active Contributor
0 Kudos

Hi Guzal,

Probably the start conditions still point to the automatic approval workflow or the event linkage is not activated. Check the start conditions or activate the event linkage to WS14000145 and deactivate it for WS14000075.

Regards,

Martin