Do you have any question about this error?
Message type: E = Error
Message class: MM_IM_ODATA_API_PI - Messages for Physical Inventory OData API
Message number: 002
Message text: Creation of several documents via OData is not supported
The current OData request leads to a creation of multiple documents
according to the split criteria. Split criteria could be the maximum
number of item (e.g. 333) or the grouping criterions (e.g. grouping by
bin).
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
MM_IM_ODATA_API_PI002
- Creation of several documents via OData is not supported ?The SAP error message MM_IM_ODATA_API_PI002 indicates that the creation of multiple documents through the OData API is not supported. This error typically arises when a user attempts to create multiple instances of a document (like purchase orders, goods movements, etc.) in a single OData request, which is not allowed by the API.
Cause:
- Single Document Limitation: The OData API for Material Management (MM) is designed to handle one document creation at a time. Attempting to send a batch request that includes multiple document creations will trigger this error.
- Incorrect API Usage: The API might be incorrectly used in a way that suggests multiple document creations, such as sending an array of objects instead of a single object.
Solution:
- Single Document Requests: Ensure that each OData request is for a single document creation. If you need to create multiple documents, you should send separate requests for each document.
- Batch Processing: If you need to create multiple documents, consider using batch processing capabilities of OData, but ensure that each individual operation within the batch is still a single document creation.
- Check API Documentation: Review the official SAP OData API documentation for the specific service you are using to understand the limitations and correct usage patterns.
Related Information:
By following these guidelines, you should be able to resolve the MM_IM_ODATA_API_PI002 error and successfully create documents using the OData API.
Get instant SAP help. Start your 7-day free trial now.
MM_IM_ODATA_API_PI001
Field &1 cannot be set for this operation on item level
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
MM_IM_ODATA_API_PI000
Field &1 cannot be set for this operation on header level
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
MM_IM_ODATA_API_PI003
All items must belong to the same physical inventory document
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
MM_IM_ODATA_API_PI004
The combination of changes is not allowed in a change set
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.