Symptom
It is necessary that the time and date displayed in the “Manage Outbound Delivery - VL06O” app at the List Outbound Delivery view is shown in local local time (CSTNO (i.e. UTC-6) for Mexico) in the UI´s date and time.
*Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Access Manage Outbound Deliveries – VL06O.
- Go to the List Outbound Deliveries button.
- In the Navigation Panel chose Created on field.
- Inform the Sales organization.
- Check values in the delivery date column.
Cause
The current app shows the time in UTC time zone.
Resolution
Use in-app and developer extensibility to apply a workaround that will allow to reflect the local time.
The workaround requires implementation effort, and it is your responsibility to test and check for potential impacts in your system according to your business requirements.
The approach taken here is to create an extensibility to make the date and time of the system user available on the home screen on the List Outbound Deliveries within “manage Outbound Delivery” app.
Class for time Conversion Development – Create a custom class in embedded ABAP (Eclipse)
This extensibility was provided by creating the two custom fields using the same business context: Shipping: Delivery.
Make sure to enable Odata Service, Odata Entry and SAP Gui for Data field:
Save and Publish.
For updating the Time and Date field we need to create an implementation with business context: LE_SHP_DELIVERY using LE_SHP_SAVE_DOCUMENT_PREPARE BADI .
Write the logic to populate these custom fields.
Unset
MOVE-CORRESPONDING delivery_document_in TO delivery_document_out.
zedoc_cl_utc_time_converter=>get_utc_time_min_6h( IMPORTING date = delivery_document_out-yy1_outbounddeldate_dlh
time = delivery_document_out-yy1_timeinmx_dlh ).
Save and Publish.
Open Manage Outbound Deliveries. Choose List of Outbound Deliveries.
Enter the Sale Organization Number you have created the outbound delivery for in the previous step.
Press Execute.
We can see that the outbound delivery Date and Time field is displayed correctly with Mexico Time. These fields are populated when the delivery document is created.
This workaround was implemented to a customer only doing business in and out of Mexico without any other country that requires Manage Billing Documents in the landscape.
See Also
Keywords
Manage Outbound Deliveries, List of Outbound Deliveries, Creation on, UI date, UI time, UTC, time zone. , KBA , LE-SHP-DL-2CL , Delivery Processing (Public Cloud) , Problem