Message type: E = Error
Message class:  VI - Sales Document Indices 
Message number: 502
Message text: Sold-to party missing during new determination of the billing index
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 VI502 "Sold-to party missing during new determination of the billing index" typically occurs in the context of billing document processing, particularly when the system is trying to determine the sold-to party for a billing document but cannot find the necessary information.
Cause: Missing Sold-to Party: The most common cause is that the sold-to party (customer) is not specified in the billing document or is missing from the relevant master data. Data Inconsistencies: There may be inconsistencies in the customer master data or the sales order that is being billed.
Configuration Issues: There could be issues with the configuration settings in the sales and distribution (SD) module, particularly related to billing and customer determination. Document Flow Issues: If the billing document is created from a sales order or delivery, there may be issues in the document flow that prevent the sold-to party from being determined correctly.
Solution: Check Customer Master Data: Ensure that the
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
VI501 Error in billing index determination. Actual status <> DB status
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
VI500 Document &: error in determination of shipping due date index
What causes this issue?  The delivery due index in the data base (table VEPVG) deviates from the index just determined.System Response  The incorrect ...
VI700 Error inserting Table &, RC = &. Key = &
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
VI701 Error updating Table &, RC = &. Key = &
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.