Ansicht
Dokumentation
/FRE/DB_TS_CALENDAR_FUNCTIONS - module concerning calendar funtionalities
RFUMSV00 - Advance Return for Tax on Sales/Purchases ABAP Short ReferenceThis documentation is copyright by SAP AG.
Functionality
The following tables give a complete overview of the possible function combinations and show which parameters you have to transfer.
Starting from an imported date (i_date is filled), you can control single functions or combined functions using the following parameters:
1. Function | 2. Function | Imported parameter | |
---|---|---|---|
offset with calendar days | i_target_period = 'D', i_day_type = '1', i_offset_periods | ||
offset with weekdays | i_target_period = 'D', i_day_type = '2', i_offset_periods, i_factory_calendar | ||
offset with working days | i_target_period = 'D', i_day_type = '3', i_offset_periods, i_factory_calendar | ||
i_date no weekday, then search for next weekday | i_target_period = 'D', i_day_type = '2', i_prev_next = '+', i_factory_calendar | ||
i_date no working day, then search for next working day | i_target_period = 'D', i_day_type = '3', i_prev_next = '+', i_factory_calendar | ||
determine the week | i_target_period = 'W' | ||
determine the week | + offset weeks | i_target_period = 'W', i_offset_periods | |
determine the month | i_target_period = 'M' | ||
determine the month | + offset months | i_target_period = 'M', i_offset_periods |
Starting from an imported week (i_week is filled), you can control single functions or combined functions using the following parameters:
1. Function | 2. Function | Imported parameter | |
---|---|---|---|
determine first day (Monday) | i_target_period = 'D', i_day_type = '1' | ||
determine first day (Monday) | + offset calendar days | i_target_period = 'D', i_day_type = '1', i_offset_periods | |
determine first day (Monday) | + offset weekdays | i_target_period = 'D', i_day_type = '2', i_offset_periods, i_factory_calendar | |
determine first day (Monday) | + offset working days | i_target_period = 'D', i_day_type = '3', i_offset_periods, i_factory_calendar | |
determine first day (Monday) | + next weekday | i_target_period = 'D', i_day_type = '2', i_prev_next_day, i_factory_calendar | |
determine first day (Monday) | + next working day | i_target_period = 'D', i_day_type = '3', i_prev_next_day, i_factory_calendar | |
offset with weeks | i_target_period = 'W', i_offset_periods | ||
determine first day (Monday) | i_target_period = 'M' | ||
determine first day (Monday) | + offset month | i_target_period = 'M', i_offset_periods |
Starting from an imported month (i_month is filled), you can control single functions or combined functions using the following parameters:
1. Function | 2. Function | Imported parameter | |
---|---|---|---|
determine first date | i_target_period = 'D', i_day_type = '1' | ||
determine first date | + offset calendar days | i_target_period = 'D', i_day_type = '1', i_offset_periods | |
determine first date | + offset weekdays | i_target_period = 'D', i_day_type = '2', i_offset_periods, i_factory_calendar | |
determine first date | + offset working days | i_target_period = 'D', i_day_type = '3', i_offset_periods, i_factory_calendar | |
determine first date | + next weekday | i_target_period = 'D', i_day_type = '2', i_prev_next_day, i_factory_calendar | |
determine first date | + next working day | i_target_period = 'D', i_day_type = '3', i_prev_next_day, i_factory_calendar | |
determine start week of the month | i_target_period = 'W' | ||
determine start week of the month | + offset weeks | i_target_period = 'W', i_offset_periods | |
offset with months | i_target_period = 'M', i_offset_periods |
Example
Notes
The system does not support parameter combinations that are not listed here.
Further information
Parameters
E_DATEE_MONTH
E_WEEK
I_DATE
I_DAY_TYPE
I_MONTH
I_OFFSET_PERIODS
I_PLANNING_CALENDAR
I_PREV_NEXT_DAY
I_TARGET_PERIODICITY
I_TZONE
I_WEEK
Exceptions
/FRE/CX_DB/FRE/CX_DB_CALENDAR_NOT_FOUND
/FRE/CX_DB_TS_CALL_MODULE
/FRE/CX_DB_TS_WRONG_PARAM
CX_STATIC_CHECK
Function Group
/SAPLDB_TSVendor Master (General Section) CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 8371 Date: 20240426 Time: 085830 sap01-206 ( 61 ms )