on 05-11-2023 12:29 PM
Hello community,
I am trying to convert the data type DEC(21,7) from a field "created DateTime" to a date type DATS(8).
I want to do this in the Custom CDS View Fiori-app.
I have already tried several functions in the Calculation-editor (ABAP), but unfortunately I did not get the result I want.
Is there a function that makes the conversion to DATS(8) possible?
thank you!
Greetings,
Lukas
Hi Lukas,
There is no direct function available to convert an element of type DEC(21,7) to DATS(8).
You can but try to use the following combination:
cast( substring( cast( tstmpl_element as abap.char(27) ), 1, 8 ) as abap.dats) as tstmpl_dats
Regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
8 | |
6 | |
5 | |
5 | |
4 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.