SAP Knowledge Base Article - Public

3019154 - Company code can not be determined when creating a supplier invoice via EDI

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 S4 HANA Cloud

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

Incorrect or Missing configuration.

Resolution

To use this SOAP service, each invoicing party has to be assigned to a company code first. This assignment is done in the app Manage your Solution, SSCUI 101329 (Application Area: Sourcing and Procurement / Sub Application Area: Integration / Assign Company Code).

If the attribute PartyType = BillTo (Buyer) is used in the payload, then the company code name corresponds to the addressname parameter or to the supplierpartyID parameter. Your supplier (invoicing party) uses these parameters in supplier invoices for your company.

Based on this, the values maintained in the Invoicing party field of the SSCUI 101329 have to exactly match the value of "BuyerPartyID" in the payload, and the values maintained in the Company Code Name field of the SSCUI have to exactly match the value of  "AddressName" in the payload.

Keywords

004(MRM_BASE), Not able to determine company code, EDI, Invoice , KBA , MM-IV-GF-ES , Enterprise Services in Invoice Verification , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions