Sap Function Add Calendar Days
Lc time zone type timezone value utc.
Sap function add calendar days. Gives the day number in the week ex 1 mon 2 tue etc date convert to workingday. Gives the day of the date ex monday tuesday etc date. Add given number of days ignoring the non working days convert new factory date to normal date.
In sap bw sap crm and sap erp systems running on an sap hana database the table tfacs is located in the abap schema sap sid. Below is a sample code of how to use the function module bkk add workingday. Data lv date like sy datum.
Check the day is working day or not for given date calendar id. Data lv timestamp after type timestamp. Now we have the factory calendar id which we use to.
Check the day is working day or not for given date in muliple calendar id. Fiappl add days to date is a standard sap function module available within r 3 sap systems depending on your version and release level. After looking at jagger s answer i looked under the hood of the timestamp duration add function and discovered some abap syntax that does the job without needing a function call at all.
This tutorial explains the various data and time function in sap abap such as date get week which returns week for a date date in future calculate a date n days in the future holiday get provides a table of all the holidays based upon a factory calendar holiday calendar. Select single fabkl into cv calendar id from t001w where werks iv werks. If no calendar is maintained then the requested delivery date can lie on non working days due to your calendar assigned to the shipping point.
Data lv timestamp before type timestamp value 20180228001234. In order to use the add workdays function a factory calendar table tfacs must be available in the sap hana database. Below is the pattern details for this fm showing its interface including any import and export parameters exceptions etc as well as any documentation contributions specific to the object see here to view full function module documentation and code listing.