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 will be taken from the technical user. 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 are below.
1 Date
2 Time
3 Time Zone Independent DateTime
4 Global DateTime
5 Local Normalised DateTime
6 Local DateTime
7 Local Offset DateTime
Kindly use any of the above type codes as per your business requirement.
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