The requirement is to fetch all the material master data based on the date and the date must be beginning of the year i.e., 01.01.2024. We have declared $session.system_date as a current date input but the new requirement is to change from the beginning.
The below one can be used for yesterday? but need help to derive the beginning or first date of the year and first month of the year.
p_startdate : abap.dats
$session.system_date as today,
DATS_ADD_DAYS( :p_startdate,-1,’NULL’) as yesterday
Is there a way to pick the year from $session.systemdate and concatenate to 01.01. in CDS? or please share if there is any other way to meet this requirement.
Our version is
SAP_BASIS 756 0001
SAP_ABA 75G 0001
Thanks in advance.
No other input then a $session.system_date as today. So I don’t know how to write to get the first day and first month from the $session.system_date.
sankar babu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.