Message type: E = Error
Message class:  GLO_FIN_TAX_MGMT - Message Class of China Tax Invoice Management 
Message number: 510
Message text: Only invoices with all referrence documents posted can be declared.
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 GLO_FIN_TAX_MGMT510 indicates that there are invoices that cannot be declared because they have reference documents that have not been fully posted. This error typically arises in the context of tax management and reporting, particularly when dealing with tax declarations or submissions.
Cause: Incomplete Posting: The primary cause of this error is that one or more reference documents (such as purchase orders, goods receipts, or previous invoices) related to the invoice in question have not been fully posted. This means that the system cannot recognize the invoice as valid for declaration purposes. Document Status: The status of the reference documents may be incomplete, blocked, or in a state that prevents them from being considered in the declaration process.
Configuration Issues: There may be configuration settings in the tax management module that require all related documents to be posted before an invoice can be declared.
Solution: Check Reference Documents: Review the reference documents associated
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
GLO_FIN_TAX_MGMT509 Save draft version of VAT Invoice &1 &2 first.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
GLO_FIN_TAX_MGMT508 Declaration period &1 cannot be greater than the current period &2.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
GLO_FIN_TAX_MGMT600 *****  MESSAGE FOR PUBLIC API  *****
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
GLO_FIN_TAX_MGMT601 Enter the VAT invoice code and number.
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.