cancel
Showing results for 
Search instead for 
Did you mean: 

Contract End Date (Datetime) different in UI from DB

VVancalbergh
Contributor
0 Kudos

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)

Accepted Solutions (1)

Accepted Solutions (1)

VVancalbergh
Contributor
0 Kudos

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

Answers (0)