Message type: E = Error
Message class:  IDFOT - Elster Extension for EC Sales List in NL 
Message number: 004
Message text: Cannot create reporting file; VAT number for company code missing
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message IDFOT004, which states "Cannot create reporting file; VAT number for company code missing," typically occurs when the system is unable to generate a reporting file due to the absence of a VAT (Value Added Tax) number for a specific company code. This is particularly relevant in contexts where VAT reporting is required, such as in financial reporting or compliance with tax regulations.
Cause: Missing VAT Number: The primary cause of this error is that the VAT number has not been maintained for the company code in the system. Incorrect Configuration: There may be incorrect or incomplete configuration settings in the SAP system related to tax codes or company codes. Data Entry Errors: There could be data entry errors where the VAT number was not entered or was entered incorrectly.
Solution: To resolve this error, you can follow these steps: Check Company Code Configuration: Navigate to the transaction code OBY6 (or use the path: SPRO
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
IDFOT003 Fiscal Unit VAT &1 without Company VAT Number is not allowed.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
IDFOT002 Fisc.Unit VAT Number &1 cannot be the same as Company VAT No &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
IDFOT005 Cannot create reporting file; company VAT No. and OB No. missing
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
IDFOT006 MessageReferenceSupplierVAT be of pattern 'OB-([A-Z0-9.]|-){8}'.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.