SAP Message C2294 - It was not possible to select a routing automatically

Diagnosis
The system found multiple valid routings but was not able toautomatically select a routing because the program was executed in thebackground (for example, when creating an order from a BAPI).

System Response
The system terminates processing.

Procedure
Ensure that there is only one valid routing for routing selection whencreating an order in the background (from a BAPI).