Symptom
Not all tax numbers from the account are transferred to the invoice document output (XML and PDF).
Environment
SAP Business ByDesign
Reproducing the Issue
- Navigate to the Account Management Work Center.
- Select the Accounts View.
- Filter for All Accounts.
- Search for the Account XYZ (where XYZ represents the Account ID).
- Click Edit and select Financial Data.
- Under Tax Data sub tab:
It can be observed that there is more than one Tax Number maintained, for example VAT Registration Number ABC and Organization Registration Number EDF (where ABC and EDF are Tax numbers).
Missing Tax Number in Invoice Document:
- Navigate to the Customer Invoicing work center.
- Select the Invoice Documents view.
- Search for and Open the Invoice ABC (where ABC is Invoice Document ID).
- Click on Edit and View All.
- Navigate to the General Tab.
It can be observed that one Tax Number is missing, for example Organization Registration Number EDF.
Output History: It can also be observed that the same Tax Number is missing, for example Organization Registration Number EDF, in both PDF and XML.
Cause
- Multiple tax numbers (for example, VAT Registration Number and Organization Registration Number) are maintained in the Business Partner master data.
- During invoice processing, the system determines the applicable tax number(s) based on the standard tax number determination logic. This logic evaluates the tax country of the customer and seller and selects the relevant tax number(s) accordingly.
- If the tax country of the customer and seller differs, the system restricts the determination to a single tax number identified during the initial invoice processing step. Additional tax numbers maintained in the master data are not considered for further processing.
- Therefore, only the determined tax number is transferred to the invoice document and included in the PDF and XML output, while other maintained tax numbers are not displayed.
Resolution
- This is the standard system behavior where only the first determined tax number is available in the invoice and XML output document.
- While releasing an invoice, the tax numbers of both customer and seller visible in the General Tab are first filled into the XML structure.
- The system then retrieves all tax numbers maintained for the respective customer and seller from Account.
- If the system identifies that the customer and seller tax country codes are different, it ignores the additional tax numbers and retains only the initially determined tax number.
- If the country codes match, the system determines and includes all tax numbers in the XML and output document.
Keywords
Tax Number; Missing Tax Number; Business Partner; Account Management; Invoice Document; XML Output; PDF Output; Tax Data Tab; VAT Registration Number; Organization Registration Number; Tax Country Code; Tax Number Determination; Invoice Processing; Output History , KBA , AP-CI , Customer Invoice Processing , Problem
SAP Knowledge Base Article - Public