Symptom
- The user is attempting to perform a modify entity operation using BO I_INBOUNDDELIVERYTP to update multiple inbound deliveries.
- Only the first entry in the internal table is updated, while subsequent entries are not processed.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Use the modify entity operation to update multiple inbound deliveries via BO I_INBOUNDDELIVERYTP.
- Execute the example code snippet below:
MODIFY ENTITIES OF I_InboundDeliveryTP FORWARDING PRIVILEGED
ENTITY InboundDelivery
UPDATE FIELDS (DeliveryDate DeliveryTime)
WITH lt_update "lt_update is internal table with multiple inbound deliveries
REPORTED DATA(ls_reported)
FAILED DATA(ls_failed)
MAPPED DATA(ls_mapped). - Observe that only the first entry in the internal table is updated, while other entries (inbound deliveries) remain unchanged.
Cause
The BO I_INBOUNDDELIVERYTP allows modification of only one inbound delivery document at a time.
Resolution
- Commit or roll back changes for the first inbound delivery before proceeding to modify another.
- Refer to the 'Constraints' section in the Business Accelerator Hub documentation for BO I_INBOUNDDELIVERYTP for further details:
Business Accelerator Hub Documentation for BO I_INBOUNDDELIVERYTP
Keywords
EML, inbound delivery, BO I_INBOUNDDELIVERYTP, multiple entries, internal table, update issue, custom fields, constraints, business accelerator hub, commit changes, roll back changes , KBA , LE-SHP-API-2CL , Interfaces for Delivery Documents (API) (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public