cancel
Showing results for 
Search instead for 
Did you mean: 

Flexible workflow for Supplier Invoice

YAnkit
Discoverer
0 Kudos
144

Hi All,

While Maintain of Flexible workflow for supplier invoice ( Workflow for Parked Invoice as Complete). During activation we are getting below error. - User " " is not authorized. Please enter a valid user as approver.

Note: If Employee integration to Business partner is maintained then we are able to activate the workflow successfully. But the requirement is to maintain the approver without any integration, when we try then we face below issue. 

Workflow activation ErrorWorkflow activation Error

{
  "message": "HTTP request failed",
  "statusCode": "400",
  "statusText": "Bad Request",
  "headers": {
    "Content-Type": "application/json;charset=utf-8",
    "Content-Length": "855",
    "DataServiceVersion": "1.0"
  },
  "responseText": "{\"error\":{\"code\":\"APPL_MM_IV_WORKFLOW/007\",\"message\":{\"lang\":\"en\",\"value\":\"User "xyz" is not authorized. Please enter a valid user as approver.\"},\"innererror\":{\"application\":{\"component_id\":\"BC-BMT-WFM-DEF\",\"service_namespace\":\"/SAP/\",\"service_id\":\"SWF_FLEX_DEF_SRV\",\"service_version\":\"0001\"},\"transactionid\":\"40EE68B549A945188D69AF4E9448F5E1\",\"timestamp\":\"\",\"Error_Resolution\":{\"SAP_Transaction\":\"\",\"SAP_Note\":\"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)\",\"Batch_SAP_Note\":\"See SAP Note 1869434 for details about working with $batch (https://service.sap.com/sap/support/notes/1869434)\"},\"errordetails\":[{\"ContentID\":\"\",\"code\":\"APPL_MM_IV_WORKFLOW/007\",\"message\":\"User "xyz" is not authorized. Please enter a valid user as approver.\",\"propertyref\":\"\",\"severity\":\"error\",\"transition\":false,\"target\":\"\"}]}}}"
}

 

Is there a Service Configuration needs to be maintained or any other alternatives solution to fix this issue.

Or is it mandatory to integrate an employee to business partner for maintaining the approver as a recipient in the Supplier invoice workflow step.

Also when we tried to configure the flexible workflow for purchase orders then we are able to activate the workflow without the employee integration to Business partner. Can we do same for Supplier Invoice as well?

Please help on the above issue.

Best regards,

Ankit

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Sanan
Active Participant
0 Kudos

Hi,

You can choose Role instead of User and then work with your developer to add the logic in a BADI to determine the agent.

But what is the issue if you maintain Employee as a BP? This option is easier and more flexible.

Thanks,

Sanan Afridi