Symptom
User receives "In the context of Data Services an unknown internal server error occurred" when opening a GI Status Completed Outbound Delivery in the Manage Outbound Deliveries app.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the Manage Outbound Deliveries app.
- Search for any Outbound Delivery with GI Status Completed.
- Try to open the Outbound Delivery.
- The error appears and the Outbound Delivery does not open.
Cause
- A custom BAdI implementation for LE_SHP_MODIFY_HEAD is assigning a DATE type field (e.g., ACTUALGOODSMOVEMENTDATE) directly to a DateTime/Timestamp field (INTCOEXTACTLTRANSFOFCTRLDTETME or INTCOINTACTLTRANSFOFCTRLDTETME).
- The invalid value written causes an OData serialization failure in service LE_SHP_OUTBOUND_DELIVERY_FS.
Resolution
- Open the Custom Logic app and locate the active BAdI implementation for extension point LE_SHP_MODIFY_HEAD.
- Remove or correct the incorrect assignment of a DATE type field to INTCOEXTACTLTRANSFOFCTRLDTETME or INTCOINTACTLTRANSFOFCTRLDTETME. If the assignment is required by your business process, replace it with a proper type conversion from DATE to DateTime/Timestamp before assigning the value.
- Republish the implementation.
- Identify all Outbound Deliveries affected by the invalid value. These are all Outbound Deliveries with GI Status Completed that were processed on or after the date the incorrect BAdI implementation was last activated. Use the Manage Outbound Deliveries app and filter by GI Status Completed and Actual Goods Movement Date to scope the affected records.
- Correct the invalid Transfer of Control DateTime values on the affected Outbound Deliveries using the "Filling in the Transfer of Control Dates" functionality. See: Transfer of Control of Goods - SAP Help Portal
- Validate the fix by opening a previously affected Outbound Delivery in the Manage Outbound Deliveries app and confirming the error no longer appears.
Keywords
Outbound Delivery, Data Services error, LE_SHP_MODIFY_HEAD, BAdI, Transfer of Control, IntcoExtActlTransfOfCtrlDteTime, DateTime , KBA , LE-SHP-DL-2CL , Delivery Processing (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public