Symptom
In SAP S/4HANA Cloud Public Edition, there is a requirement to create or update a pricing condition at outbound delivery header level programmatically.
When using API_OUTBOUND_DELIVERY_SRV_0002, no pricing condition entity or field is available in the API schema to maintain delivery header conditions.
The same requirement cannot be achieved using the delivery modification BAdIs LE_SHP_MODIFY_HEAD or LE_SHP_SAVE_DOCUMENT_PREPARE, as pricing condition fields are not available for modification.
This scenario can occur, for example, when an external system or third-party warehouse provides a freight amount that needs to be maintained as a pricing condition in the outbound delivery.
Environment
SAP S/4HANA Cloud Public Edition
Cause
Creating or changing pricing conditions at outbound delivery header level is currently not supported through API_OUTBOUND_DELIVERY_SRV_0002.
The delivery modification BAdIs LE_SHP_MODIFY_HEAD and LE_SHP_SAVE_DOCUMENT_PREPARE also do not support changing pricing condition fields at delivery header level.
This is a functional limitation of the currently released APIs and extensibility options in SAP S/4HANA Cloud Public Edition.
Resolution
It is currently not possible to programmatically create or change a pricing condition at outbound delivery header level using:
- API_OUTBOUND_DELIVERY_SRV_0002
- LE_SHP_MODIFY_HEAD
- LE_SHP_SAVE_DOCUMENT_PREPARE
If the business requirement specifically depends on maintaining a value as a pricing condition in the outbound delivery, the requested functionality is considered a feature request.
The requirement can be submitted through SAP Customer Influence for consideration in future product enhancements.
For further information, refer to:
KBA 2963059 - How to Submit Feature Requests for SAP S/4HANA Cloud Public Edition
As an alternative, it may be evaluated internally whether storing the required value in a custom field instead of a pricing condition could meet the business requirements.
See Also
Business Accelerator HUB - API_OUTBOUND_DELIVERY_SRV_0002
Keywords
outbound delivery api, API_OUTBOUND_DELIVERY_SRV_0002, freight condition, delivery header, pricing condition, condition schema missing, 3PL freight, update not possible, not supported, BAdI, LE_SHP_MODIFY_HEAD, LE_SHP_SAVE_DOCUMENT_PREPARE, custom field, delivery pricing, s4hana cloud public edition , KBA , LE-SHP-DL-2CL , Delivery Processing (Public Cloud) , How To
SAP Knowledge Base Article - Public