SAP BAPI_PTIMEOVERVIEW_GET Function Module for BAPI 7013
BAPI_PTIMEOVERVIEW_GET is a standard bapi ptimeoverview get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI 7013 processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bapi ptimeoverview get FM, simply by entering the name BAPI_PTIMEOVERVIEW_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRTIM00BUS7013
Program Name: SAPLHRTIM00BUS7013
Main Program: SAPLHRTIM00BUS7013
Appliation area: P
Release date: 03-Jul-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_PTIMEOVERVIEW_GET pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BAPI_PTIMEOVERVIEW_GET'"BAPI 7013.
EXPORTING
FROMDATE = "
TODATE = "
EXTAPPLICATION = "
* REFRESH_INFOTYPE_BUFFER = 'X' "Buffer Refresh at Change in PERNR
TABLES
EMPLOYEES = "Import: List of personnel numbers
* TIMETYPES = "Import: List of requested time types
TIMEOVERVIEW = "Export: Overview of time data
* TIMETYPEVALUES = "Export: Number per time type
* RETURN = "
IMPORTING Parameters details for BAPI_PTIMEOVERVIEW_GET
FROMDATE -
Data type: BAPI7013_3-FROM_DATEOptional: No
Call by Reference: No ( called with pass by value option)
TODATE -
Data type: BAPI7013_3-TO_DATEOptional: No
Call by Reference: No ( called with pass by value option)
EXTAPPLICATION -
Data type: BAPI7013_3-EXTAPPLICATIONOptional: No
Call by Reference: No ( called with pass by value option)
REFRESH_INFOTYPE_BUFFER - Buffer Refresh at Change in PERNR
Data type: BAPIFLAGXDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_PTIMEOVERVIEW_GET
EMPLOYEES - Import: List of personnel numbers
Data type: BAPI7013_4Optional: No
Call by Reference: No ( called with pass by value option)
TIMETYPES - Import: List of requested time types
Data type: BAPI7013_5Optional: Yes
Call by Reference: No ( called with pass by value option)
TIMEOVERVIEW - Export: Overview of time data
Data type: BAPI7013_1Optional: No
Call by Reference: No ( called with pass by value option)
TIMETYPEVALUES - Export: Number per time type
Data type: BAPI7013_2Optional: Yes
Call by Reference: No ( called with pass by value option)
RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_PTIMEOVERVIEW_GET Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_fromdate | TYPE BAPI7013_3-FROM_DATE, " | |||
| lt_employees | TYPE STANDARD TABLE OF BAPI7013_4, " | |||
| lv_todate | TYPE BAPI7013_3-TO_DATE, " | |||
| lt_timetypes | TYPE STANDARD TABLE OF BAPI7013_5, " | |||
| lt_timeoverview | TYPE STANDARD TABLE OF BAPI7013_1, " | |||
| lv_extapplication | TYPE BAPI7013_3-EXTAPPLICATION, " | |||
| lt_timetypevalues | TYPE STANDARD TABLE OF BAPI7013_2, " | |||
| lv_refresh_infotype_buffer | TYPE BAPIFLAGX, " 'X' | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'BAPI_PTIMEOVERVIEW_GET' "BAPI 7013 |
| EXPORTING | ||
| FROMDATE | = lv_fromdate | |
| TODATE | = lv_todate | |
| EXTAPPLICATION | = lv_extapplication | |
| REFRESH_INFOTYPE_BUFFER | = lv_refresh_infotype_buffer | |
| TABLES | ||
| EMPLOYEES | = lt_employees | |
| TIMETYPES | = lt_timetypes | |
| TIMEOVERVIEW | = lt_timeoverview | |
| TIMETYPEVALUES | = lt_timetypevalues | |
| RETURN | = lt_return | |
| . " BAPI_PTIMEOVERVIEW_GET | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PTIMEOVERVIEW_GET
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single FROM_DATE FROM BAPI7013_3 INTO @DATA(ld_fromdate). | ||||
| "SELECT single TO_DATE FROM BAPI7013_3 INTO @DATA(ld_todate). | ||||
| "SELECT single EXTAPPLICATION FROM BAPI7013_3 INTO @DATA(ld_extapplication). | ||||
| DATA(ld_refresh_infotype_buffer) | = 'X'. | |||
Search for further information about these or an SAP related objects