ATPGACAL is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter ATPGACAL into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING DATE = GKDAY FACTORY_CALENDAR_ID = FABKL CORRECT_OPTION = '+' IMPORTING FACTORYDATE = FKDAY EXCEPTIONS DATE_INVALID = 01 DATE_AFTER_RANGE = 02 DATE_BEFORE_RANGE = 03 FACTORY_CALENDAR_NOT_FOUND = 04 OTHERS = 05.
DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING DATE = GKDAY FACTORY_CALENDAR_ID = FABKL CORRECT_OPTION = '-' IMPORTING FACTORYDATE = FKDAY EXCEPTIONS DATE_INVALID = 01 DATE_AFTER_RANGE = 02 DATE_BEFORE_RANGE = 03 FACTORY_CALENDAR_NOT_FOUND = 04 OTHERS = 05.
FACTORYDATE_CONVERT_TO_DATE CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE' EXPORTING FACTORYDATE = FKDAY FACTORY_CALENDAR_ID = FABKL IMPORTING DATE = GKDAY EXCEPTIONS FACTORYDATE_INVALID = 01 FACTORYDATE_AFTER_RANGE = 02 FACTORYDATE_BEFORE_RANGE = 03 FACTORY_CALENDAR_ID_MISSING = 04 FACTORY_CALENDAR_NOT_FOUND = 05 OTHERS = 06.
DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING DATE = P_DATE FACTORY_CALENDAR_ID = P_FACAL CORRECT_OPTION = '-' IMPORTING DATE = P_NDATE EXCEPTIONS DATE_INVALID = 01 DATE_AFTER_RANGE = 02 DATE_BEFORE_RANGE = 03 FACTORY_CALENDAR_NOT_FOUND = 04 OTHERS = 05.
DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING DATE = P_DATE FACTORY_CALENDAR_ID = P_FACAL CORRECT_OPTION = '-' IMPORTING DATE = P_NDATE EXCEPTIONS DATE_INVALID = 01 DATE_AFTER_RANGE = 02 DATE_BEFORE_RANGE = 03 FACTORY_CALENDAR_NOT_FOUND = 04 OTHERS = 05.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.