SAP Knowledge Base Article - Public

2693388 - Maintain Customer Contracts Item Start and End Date are showing wrong value

Symptom

When creating contracts via the web service ManageCustomerContractIn the item start date and end date are showing incorrect values.

Environment

SAP Business ByDesign

Cause

The tag <TypeCode>To</TypeCode> used in the XML is not valid.

eg: <ContractStartDateTime>
<TypeCode>To</TypeCode>
<Date>2018-08-22</Date>
<Time>00:00:00</Time>
</ContractStartDateTime>

<ContractEndDateTime>
<TypeCode>To</TypeCode>
<Date>2021-08-31</Date>
<Time>23:59:59</Time>
</ContractEndDateTime>

Please note that currently it is not possible to change the Time Zone of the Contract Start and End Dates.

Whenever you are creating a contract via the web service, the Time Zone is automatically determined from the system time zone. In our example the system time zone is GMTUK.
This is the time zone that was selected in the Business Configuration, when the system(tenant) was initially setup.  

This field is currently not exposed in the web service and therefore a modification of the time Zone for the Contract Start Date and Contract End Date is not allowed. This is also not possible via the UI.

Resolution

The standard type codes currently supported is 5 (Local Normalised DateTime). Please note that if you use any of the below TimePointTypeCode the Time Zone will not be correctly maintained or a system error will occur. 

1 Date
2 Time
3 Time Zone Independent DateTime
4 Global DateTime
6 Local DateTime
7 Local Offset DateTime

Kindly use the TimePointTypeCode 5:

eg: Contract Start and End Date :
<ContractStartDateTime>
<TimePointTypeCode>5</TimePointTypeCode>
<DateTime timeZoneCode="GMTUK" daylightSavingTimeIndicator="false">2018-08-28T12:00:00Z </DateTime>
</ContractStartDateTime>
<ContractEndDateTime>
<TimePointTypeCode>5</TimePointTypeCode>
<DateTime timeZoneCode="GMTUK" daylightSavingTimeIndicator="false">2018-12-31T12:00:00Z </DateTime>
</ContractEndDateTime>


Item Start and End Date :
<Item>
<StartDateTime>
<TimePointTypeCode>5</TimePointTypeCode>
<DateTime timeZoneCode="GMTUK" daylightSavingTimeIndicator="false">2018-08-28T12:00:00Z </DateTime>
</StartDateTime>

<EndDateTime>
<TimePointTypeCode>5</TimePointTypeCode>
<DateTime timeZoneCode="GMTUK" daylightSavingTimeIndicator="false">2018-12-31T12:00:00Z </DateTime>
</EndDateTime>
</Item>

Keywords

Standard Type Code; Type code in Documentation wrong; Date changed; , KBA , AP-CCP , Customer Contract Processing , Problem

Product

SAP Business ByDesign all versions