cancel
Showing results for 
Search instead for 
Did you mean: 

using WF expressions in N-Step Approval BAdi (code)

Former Member
0 Kudos

Hi SRM Gurus,

In the N-Step approval BADI code, can I use expressions in determining the agent? Something like this:

CASE actual_approval_index.

WHEN 0.

ls_approver-approval_index = 1.

ls_approver-approval_agent = '&AGENT_0001.AGENTS&'.

ls_approver-name = 'Immediate Superior'.

ls_approver-approval_description = 'First approval step'.

APPEND ls_approver TO approval_table.

Would this be possible? Through this way, the system can dynamically determine that the next approver is the immediate manager of the WF initiator.

Or I got it wrong?

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Marvin,

As far as I know we cannot use these kind of expressions. We will have to pass the real approver objects.

In your case you can find out the manager and then pass the user-id of the manager.

Rgds,

Prasanna

Former Member
0 Kudos

Ok. Sounds plausible. Thanks!

Answers (0)