Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CDS View Date Function

prabukannans
Participant
964

Hai,

In CDS Views there is a Date function called DATS_ADD_DAYS and DATS_ADD_MONTHS, this function having an argument like 'no_error'. How can we use the no_error argument which contains a restricted String like,

1.'NULL'

2.'FAIL'

3.'UNCHANGED'

4.'INIITIAL'.

1 REPLY 1
Read only

maheshpalavalli
Active Contributor
0 Likes
754

Just like the documentation says, you will get an exception if the pass 'FAIL' to no_error parameter(3rd param) or it will become initial or null or the values remain unchanged if you pass respective values.

https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abencds_f1_date_functions.htm

Regards,

Mahesh