cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic Workflow BAdI in IF_USMD_SSW_SYST_METHOD_CALLER is not working

rei12345
Discoverer
0 Likes
205

Hello

I am implementing a dynamic workflow using a System Method BAdI. I have already created a service name and assigned it as a filter value in the BAdI.

(The other code reads data from the change request and I am only permitted to share the condition code below.) Here is the code within the BAdI:

 CONSTANTS:
    lc_action_approve TYPE usmd_crequest_action VALUE '03',
    lc_action_reject  TYPE usmd_crequest_action VALUE '04'.

*Check MBRSH
  CASE ls_material-mbrsh.
    WHEN 'M'.
      ev_action lc_action_reject.
    WHEN OTHERS.
      ev_action lc_action_approve
      .
  ENDCASE.

I have placed a debugger within the code, and I can confirm that the condition is being evaluated. However, after the system processes ev_action (e.g., lc_action_approve), the workflow does not proceed to the next step. Conversely, if ev_action equals lc_action_reject, the M2 step is not triggered.

Thank you!

Best regards,

Rei

Filter ValueFilter ValueNon User agent TableNon User agent TableService NameService NameSingle Value TableSingle Value Table

 

Accepted Solutions (0)

Answers (0)