SAP HRDPBS_SHIFTPLANNING_WORKTIME Function Module for
HRDPBS_SHIFTPLANNING_WORKTIME is a standard hrdpbs shiftplanning worktime SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 hrdpbs shiftplanning worktime FM, simply by entering the name HRDPBS_SHIFTPLANNING_WORKTIME into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRDPBS_SHIFTPLANNING_ADHOC
Program Name: SAPLHRDPBS_SHIFTPLANNING_ADHOC
Main Program: SAPLHRDPBS_SHIFTPLANNING_ADHOC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRDPBS_SHIFTPLANNING_WORKTIME 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 'HRDPBS_SHIFTPLANNING_WORKTIME'".
EXPORTING
PERNR = "
DIENSTGR = "
MOVER = "
* EINGABE = "
ACTUAL_DATE = "
* HOLIDAY_CLASS = "
TABLES
SHIFTPLAN_TAB = "
* P0000 = "
* P0001 = "
* P0007 = "
EXCEPTIONS
OVERLAP_SHIFT = 1 OVERLAP_STANDBY = 2 OVERLAP_SUPPLEMENT = 3 TIME_OF_REST = 4 WORK_TIME = 5 MATERNITY = 6 YOUNG_PEOPLE = 7 INTERNAL_ERROR = 8
IMPORTING Parameters details for HRDPBS_SHIFTPLANNING_WORKTIME
PERNR -
Data type: PERNR-PERNROptional: No
Call by Reference: Yes
DIENSTGR -
Data type: DIENSTGROptional: No
Call by Reference: Yes
MOVER -
Data type: MOVEROptional: No
Call by Reference: Yes
EINGABE -
Data type: HRDPBS_SHIFT_SOURCEOptional: Yes
Call by Reference: Yes
ACTUAL_DATE -
Data type: DATUMOptional: No
Call by Reference: Yes
HOLIDAY_CLASS -
Data type: KKLASSOptional: Yes
Call by Reference: Yes
TABLES Parameters details for HRDPBS_SHIFTPLANNING_WORKTIME
SHIFTPLAN_TAB -
Data type: HRDPBS_SHIFTPLAN_ADHOCOptional: No
Call by Reference: Yes
P0000 -
Data type: P0000_TABOptional: Yes
Call by Reference: Yes
P0001 -
Data type: P0001_TABOptional: Yes
Call by Reference: Yes
P0007 -
Data type: P0007_TABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
OVERLAP_SHIFT -
Data type:Optional: No
Call by Reference: Yes
OVERLAP_STANDBY -
Data type:Optional: No
Call by Reference: Yes
OVERLAP_SUPPLEMENT -
Data type:Optional: No
Call by Reference: Yes
TIME_OF_REST -
Data type:Optional: No
Call by Reference: Yes
WORK_TIME -
Data type:Optional: No
Call by Reference: Yes
MATERNITY -
Data type:Optional: No
Call by Reference: Yes
YOUNG_PEOPLE -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRDPBS_SHIFTPLANNING_WORKTIME 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_pernr | TYPE PERNR-PERNR, " | |||
| lv_overlap_shift | TYPE PERNR, " | |||
| lt_shiftplan_tab | TYPE STANDARD TABLE OF HRDPBS_SHIFTPLAN_ADHOC, " | |||
| lt_p0000 | TYPE STANDARD TABLE OF P0000_TAB, " | |||
| lv_dienstgr | TYPE DIENSTGR, " | |||
| lv_overlap_standby | TYPE DIENSTGR, " | |||
| lv_mover | TYPE MOVER, " | |||
| lt_p0001 | TYPE STANDARD TABLE OF P0001_TAB, " | |||
| lv_overlap_supplement | TYPE P0001_TAB, " | |||
| lt_p0007 | TYPE STANDARD TABLE OF P0007_TAB, " | |||
| lv_eingabe | TYPE HRDPBS_SHIFT_SOURCE, " | |||
| lv_time_of_rest | TYPE HRDPBS_SHIFT_SOURCE, " | |||
| lv_work_time | TYPE HRDPBS_SHIFT_SOURCE, " | |||
| lv_actual_date | TYPE DATUM, " | |||
| lv_maternity | TYPE DATUM, " | |||
| lv_holiday_class | TYPE KKLASS, " | |||
| lv_young_people | TYPE KKLASS, " | |||
| lv_internal_error | TYPE KKLASS. " |
|   CALL FUNCTION 'HRDPBS_SHIFTPLANNING_WORKTIME' " |
| EXPORTING | ||
| PERNR | = lv_pernr | |
| DIENSTGR | = lv_dienstgr | |
| MOVER | = lv_mover | |
| EINGABE | = lv_eingabe | |
| ACTUAL_DATE | = lv_actual_date | |
| HOLIDAY_CLASS | = lv_holiday_class | |
| TABLES | ||
| SHIFTPLAN_TAB | = lt_shiftplan_tab | |
| P0000 | = lt_p0000 | |
| P0001 | = lt_p0001 | |
| P0007 | = lt_p0007 | |
| EXCEPTIONS | ||
| OVERLAP_SHIFT = 1 | ||
| OVERLAP_STANDBY = 2 | ||
| OVERLAP_SUPPLEMENT = 3 | ||
| TIME_OF_REST = 4 | ||
| WORK_TIME = 5 | ||
| MATERNITY = 6 | ||
| YOUNG_PEOPLE = 7 | ||
| INTERNAL_ERROR = 8 | ||
| . " HRDPBS_SHIFTPLANNING_WORKTIME | ||
ABAP code using 7.40 inline data declarations to call FM HRDPBS_SHIFTPLANNING_WORKTIME
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 PERNR FROM PERNR INTO @DATA(ld_pernr). | ||||
Search for further information about these or an SAP related objects