Symptom
The SOAP service InvoiceRequest_In is used to create a Supplier Invoice from a Billing Document. The invoice creation fails and the error message "Not able to determine company code" is returned.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
Following the steps of scope item 3ZB a Billing Document is created. However, the Supplier invoice is not created in turn. In the Message Dashboard app, under /MMEDI PRocurement EDI scenario, the INVREQUIN/0001 invoice request interface returns the error "Not able to determine company code. "
Cause
To use the supplier invoice SOAP service, each invoicing party must be assigned to a company code. If the exact payload parameters are not correctly mapped to the configuration fields, the system cannot determine the company code.
Resolution
-
Open configuration step 101329 (Application Area: Sourcing and Procurement -> Sub Application Area: Integration -> Assign Company Code).
-
Maintain the invoicing-party-specific determination:
-
The values maintained in the Invoicing party field of the SSCUI must exactly match the value of BuyerPartyID for the attribute PartyType = BillFrom in the payload.
-
If the attribute PartyType = BillTo (Buyer) is used in the payload, the company code name corresponds to the addressname parameter or the supplierpartyID parameter.
-
The values maintained in the Company Code Name field of the SSCUI must exactly match the value of AddressName or supplierpartyID in the payload.
-
-
Alternatively, maintain a default mapping:
-
It is also possible to use the field Default (Mapping without Invoicing Party) to maintain company code names independently of the invoicing party.
-
If an invoicing-party-specific company code determination is not possible, the system uses the field AddressName to find a customizing entry that is valid for all invoicing parties (marked with the Default indicator).
-
See Also
KBA 3337080 - Error "Not able to determine invoicing party" happens when creating supplier invoice via EDI
Keywords
SOAP service, supplier invoice, invoicing party, company code, Manage your Solution, SSCUI 101329, Assign Company Code, PartyType, BillTo, Buyer, BuyerPartyID, BillFrom, AddressName, supplierpartyID, Default, Mapping without Invoicing Party, integration, S/4HANA Cloud Public Edition , KBA , MM-IV-GF-ES-2CL , Enterprise Services in Invoice Verification (Public Cloud) , Problem
SAP Knowledge Base Article - Public