SAP Knowledge Base Article - Public

3527075 - Need to reflect Local Time in Service Entry Sheet and Material Document for Peru

Symptom

  • In the Purchase Order History tab at the item level of the “Create Purchase Order – Advanced” (GUI), the Material document (WE), Invoice document (RE-L) and Service Entry Sheet (SES) do not reflect the posting date in local date and time.
  • It is necessary that the local time and date are shown in the posting date field of both “Manage Service Entry Sheets – Lean Services” app and the “Material Documents Overview” app.

*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

  1. Create Purchase order for Limit Item (Service item).
  2. Access Manage Service Entry Sheets – Lean Services app.
  3. Create a new Service Entry Sheet.
  4. Provide only the Name of Service Entry Sheet and Reference Purchase Order in the Basic Data.
  5. After the new Service Entry Sheet is approved, and the Material Document is posted, the posting date could reflect a different date depending on the user local time.
  6. Create Supplier Invoice using the “Create Supplier Invoice” app.
  7. Check the PO history tab for posting date of Material document, Invoice document and SES.

Cause

The current apps show the time in UTC time zone.

Resolution

  • *Use in-app extensibility to apply a workaround that will allow to apply a BAdl that will require to  enter the posting date manually (mandatory) while creating the Service Entry Sheet.
  • *The Content provided below is just a proof of concept and you are entitled to use this proof of concept as example. The Content is provided “AS IS” with no warranties or indemnities of any kind. No maintenance or support is provided for this Content. Please make sure to test this workaround in your development and test system before deciding to move to production system. The workaround uses approved cloud extensibility techniques and is content lifecycle compliant.

Provide the posting date while creating the new service entry sheet.

Use in-app extensibility to make mandatory the “Posting Date for Goods Receipt” field with the Custom Logic app. Create a new implementation with the business context Procurement: Service Entry Sheet Head, and the extension point Change of Service Entry Sheet Header (MM_PUR_S4_SES_CHECK_HEADER).

Open code editor and write logic to make mandatory the posting date field.

 

DATA : ls_message LIKE LINE OF  messages.
    IF serviceentrysheet-postingdate is initial.
      ls_message-messageid = 'MM_PUR_SES'.
      ls_message-messagetype = 'E'.
      ls_message-messagenumber = '053'.
      ls_message-messagevariable1 = 'Enter the posting date'.
      APPEND ls_message TO messages.
    ENDIF.

Save and Publish.

Open Manage Service Entry Sheets – Lean Services app, and create a new Service Entry Sheet without the posting date:

We can see that the custom logic validates that the posting date field is included. Otherwise, the system triggers an error message.

Once the user creates the Service Entry Sheet with the corresponding date, the follow-up documents will reflect the expected date.

Manage Service Entry Sheets – Lean Services app:

 

Material Documents Overview app:

 

Supplier Invoices List app:

 

Display Document Flow Fiori app:

 

Please note that the Purchase Order History tab at the item level of the Display Purchase Order – Advanced (GUI) app shows the Service Entry Sheet in UTC time zone as designed, while the Material Document and the Invoice Document shows the posting date in user time zone.

 

*This workaround was implemented to a customer only doing business in and out of Peru without any other country that requires Service Entry Sheets in the landscape.

See Also

Keywords

Purchase Order History, Service Entry Sheet, Posting Date, UI date, UI time, UTC, time zone. , KBA , MM-PUR-SVC-SES-2CL , Service Entry Sheet for Service Procurement (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition 2408

Attachments

Pasted image.png
Pasted image.png
Pasted image.png
Pasted image.png