Ansicht
Dokumentation
/FRE/DB_TS_OFFSET_PERIOD - add or subtract periods to date, week or month
BAL Application Log Documentation Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Functionality
This function module adds or subtracts:
- Weekdays or working days for an imported date
- Weeks for an imported week
- Months for an imported month.
Weekdays are all of the days identified in the factory calendar (Mon, Tue, Wed, Thu, Fri). Working days are all of the weekdays apart from public holidays. Weekdays that are also public holidays are not working days.
You cannot use the function module to add normal calendar days (in other words, including weekend days). However, you can use a simple ABAP statement (date + number of days) for this.
It is not possible to add or subtract different period types either (for example, days for an imported month, or weeks for an imported date, and so on).
You have to import a factory calendar for the offset with weekdays or working days.
No factory calendar is required for the offset with weeks or months.
Example
Notes
Further information
Parameters
E_DATEE_MONTH
E_WEEK
I_DATE
I_MONTH
I_OFFSET_PERIODS
I_ONLY_WORKDAYS
I_PLANNING_CALENDAR
I_TZONE
I_WEEK
Exceptions
/FRE/CX_DB/FRE/CX_DB_CALENDAR_NOT_FOUND
/FRE/CX_DB_TS_CALL_MODULE
/FRE/CX_DB_TS_CAL_TO_SMALL
/FRE/CX_DB_TS_WRONG_PARAM
CX_STATIC_CHECK
Function Group
/SAPLDB_TSFill RESBD Structure from EBP Component Structure RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 1809 Date: 20240419 Time: 064137 sap01-206 ( 31 ms )