Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: VG - EDI Messages in SD
Message number: 217
Message text: Order could not be determined using BSTNK & VKORG & customer &
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.
VG217
- Order could not be determined using BSTNK & VKORG & customer & ?SAP Error Message:
VG217 - Order could not be determined using BSTNK & VKORG & customer &
Meaning of the Error
This error occurs in SAP Sales and Distribution (SD) module, typically during order processing or delivery creation, when the system tries to find a preceding sales document (like a sales order or contract) based on certain key fields but fails.
The message indicates that the system attempted to determine the sales order using the following combination of fields:
But no matching order was found.
No Sales Order Exists with the Given PO Number (BSTNK):
The customer PO number entered does not exist in any sales order for the specified sales organization and customer.
Mismatch in Sales Organization (VKORG):
The sales organization entered does not match the sales organization in the sales order with the given PO number.
Customer Number Mismatch:
The customer number used does not correspond to the customer in the sales order with the given PO number.
Incorrect or Missing Data Entry:
The PO number, sales organization, or customer number might be incorrectly entered or missing.
Document Flow or Reference Document Missing:
The system expects a preceding document (e.g., sales order) to create a delivery or billing document, but it cannot find it.
Customizing or User Exit Issues:
Sometimes, custom logic or user exits that influence order determination might cause this error if they filter or restrict the search incorrectly.
Verify the PO Number (BSTNK):
Check if the PO number entered exists in the sales order header (field VBAK-BSTNK) for the given sales organization and customer.
SELECT * FROM VBAK WHERE BSTNK = '<PO Number>' AND VKORG = '<Sales Org>' AND KUNNR = '<Customer>'
Check Sales Organization and Customer:
Confirm that the sales organization and customer number are correct and consistent with the sales order.
Correct Data Entry:
Ensure that the PO number, sales org, and customer are entered correctly in the transaction.
Check Document Flow:
If creating a delivery or billing document, ensure the preceding sales order exists and is not blocked or deleted.
Check Customizing Settings:
Use Alternative Search Criteria:
If PO number is not mandatory or not unique, try searching by sales order number directly.
Check Authorization:
Sometimes, missing authorizations can prevent the system from reading sales orders.
Field Descriptions:
Related Transactions:
SAP Notes:
Check SAP Notes related to VG217 for any known issues or patches.
Debugging:
If the problem persists, debugging the order determination logic in the relevant program or user exit can help identify why the system cannot find the order.
Aspect | Details |
---|---|
Cause | No sales order found matching PO number, sales org, and customer combination. |
Solution | Verify and correct PO number, sales org, and customer; ensure sales order exists. |
Check | Data entry, document flow, customizing, authorizations, and custom code/user exits. |
Related Info | VBAK table, VA03 transaction, delivery/billing creation processes, SAP Notes on VG217. |
If you provide the exact transaction or process where this error occurs, I can help with more specific troubleshooting steps.
Get instant SAP help. Sign up for our Free Essentials Plan.
VG216
Postal code & cannot be converted
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
VG215
Item texts have been recorded over the IDOC
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
VG218
No SD item category determined for item category & from IDoc
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
VG219
Suitable sched. agreement &1 &2 with reason for rejection has been found
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.