Skip to Content

Contract End Date (Datetime) different in UI from DB

When I open a Contract I see Contract End Date 09.10.2020 UTC (/SAP_BYD_APPLICATION_UI/crm/sre/contractoif.OIF.uicomponent, /Root/General/GeneralInformation/ContractEndDateTime/@). When I look this data up in Repository Explorer (ValidityPeriod.TimePointPeriod.EndTimePoint.DateTime) I see '2020-10-10T00:00:00Z' and 'UTC'. Same in ABSL when debugging.

When I make a custom BO with the same datetime data type (BASIS.Global.DateTime), I assign this datetime to the BO and then add the element to a screen (I try and mimic the formatting from the Contract OIF) it shows 10.10.2020 UTC.

How do I get the correct Contract End Date to show on my screen? (I don't care at the moment if it's different in debug/Repository Explorer since this is Display Only)

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 21, 2019 at 01:20 PM

    I found it. I had to mark the control as "Is End of Period" = True. Then it suddenly deducts 1 day!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.