cancel
Showing results for 
Search instead for 
Did you mean: 

Help Needed: Converting String to Date in SAP Datasphere

Priyanka_27
Explorer
0 Kudos
548

I am currently working on loading data from a CDS view in SAP S/4HANA to SAP Datasphere. CDS view includes a field RequestedDeliveryDate which is causing a data type mismatch error because it is being interpreted as a string instead of a date.

Priyanka_27_0-1721351667964.jpeg

Thank you for your assistance

Best regards,

Priyanka

ravikiran_sap
Explorer
0 Kudos
HI Priyanka are you loading this CDS to a local table in DSP ?

Accepted Solutions (1)

Accepted Solutions (1)

Mandar_Damle
Participant

Hello Priyanka,

As per SAP, this behavior is correct. We did the below workaround on the CDS side.

Use function DATS_TO_DATN for Date and TIMS_TO_TIMN for Time.

Mandar_Damle_0-1721361015353.png

FYI -

3278347 - SAP Datasphere - ABAP Integration - Sending DATS and TIMS in native format - SAP for Me

3412699 - SAP Datasphere - ABAP Integration - Data Type missmatch when deploying a Replication Flow ...

Thanks!

Regards,

Mandar

Priyanka_27
Explorer
Thank you sir
pk88
Newcomer
0 Kudos
After adding DATS_TO_DATN we are facing issue from DataSphere. errorgetCSNDefinition: invalid remote object name: No enum constant com.sap.hana.dp.abapadapter.ABAPAdapter.ABAPDATATYPES.DATN: line 0 col 0 (at pos 0), Code: 476, SQL State: HY000 What will be the reason

Answers (0)