cancel
Showing results for 
Search instead for 
Did you mean: 

Approval N Step workflow

Former Member
0 Kudos

Hi Experts,

For PO approval we were using n step workflow.We were populating approver details implementing BADI BBP_WFL_APPROVE_BADI.

Now i have a query that when ever an approver approves the purchase order this BADI is getting called.

When we read the Workitem details in BADI using FM  SAP_WAPI_WORKITEMS_TO_OBJECT in approver_et_table that approver approval_state is not coming as '00000000'

.Is it possible to have the information of who approved the Purchase order at the time BADI is getting called.Is there any method available to get that details of approver and approval state (i.e) ordered or awaiting approval.

Thanks in advance.

Regards,

Shiva

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you check this class and method.

/sapsrm/cl_wf_process_manager=>get_current_process_level and pass the PO guid.

Try that and let me know how it goes.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shiva,

Are you using SRM 7.0 with Application Controlled workflow or SRM 5.0? because class provided by Vinay will be found in SRM 7.0 only.

Thanks

Siddarth

Former Member
0 Kudos

Hi Vijay and Siddarth,

Thanks for your reply.

My issue got resolved by using approval index and approver history table.

Since the method is triggered by approver i used sy-user as approval agent and used approval index to determine who is the initial agent.

Then based on that i wrote my logic.It worked.

Thanks and Regards,

Shiva