SAP Knowledge Base Article - Public

3771312 - Company ID Not Generated in Invoice XML in Document Compliance Monitor

Symptom

The Company ID field is missing or blank in the XML payload of an Invoice in the Document Compliance Monitor View.

The following errors are displayed in the response payload:

Error: Document MUST not contain empty elements.
Error: Swedish organization number MUST be stated in the correct format.

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Go to the Customer Invoicing work center.
  2. Select the Document Compliance Monitor view.
  3. Search for document XYZ (where XYZ is the Invoice ID).
  4. Select XYZ and click Preview.
  5. In the XML, the instances of "CompanyID" does not contain a value:

<n2:CompanyID xmlns:n2="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"></n2:CompanyID>

Expected Result:

<n2:CompanyID xmlns:n2="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">ABC</n2:CompanyID>

(where ABC represents the Company ID)

Cause

The Schematron validation error, "Swedish organization number MUST be stated in the correct format," occurs because the Organization Registration Number is not maintained for the relevant account.

For Sweden (SE), the Organization Registration Number is a mandatory field and must contain a valid Swedish organization number.

Resolution

Maintain a valid Organization Registration Number for the relevant account and resubmit the document by following the steps below:

  1. Go to the Account Management work center.
  2. Select the Accounts view.
  3. Select All Accounts and search for the relevant account.
  4. Click Edit and navigate to the Financial tab.
  5. Open the Tax Data subtab.
  6. Enter a valid Organization Registration Number for Sweden (SE).
  7. Save the changes.
  8. Go to the Document Compliance Monitor and resubmit the document.

Keywords

CompanyID; field; Sweden (SE); Organization Registration Number; Swedish Organization Number; Schematron Validation Error; Swedish organization number MUST be stated in the correct format; Document Compliance Monitor; Invoice; XML , KBA , AP-CI-CI-GLO , Cross-Country Extensions , Problem

Product

SAP Business ByDesign all versions