SAP RH_IMPORT_SHIFTPLAN_DATA Function Module for
RH_IMPORT_SHIFTPLAN_DATA is a standard rh import shiftplan data 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 rh import shiftplan data FM, simply by entering the name RH_IMPORT_SHIFTPLAN_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHEI
Program Name: SAPLRHEI
Main Program: SAPLRHEI
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_IMPORT_SHIFTPLAN_DATA 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 'RH_IMPORT_SHIFTPLAN_DATA'".
EXPORTING
* PLANVERSION = "
* ACTION = ' ' "
* REFRESH_DYNPRO = ' ' "
* ALV_GRID = "
* SHIFTGROUP = "
* FACTORY_CALENDAR_ID = "
* PLAN_BEGIN = "
* PLAN_END = "
* GROUPING_DWS = "
* GROUPING_ATTENDENCE = "
* GROUPING_SUBSTITUTE = "
* PROFILE_ID = "
TABLES
* ORG_OBJECTS = "
* GROUPINGS = "
* ARBPL_OBJECTS = "
* JOB_OBJECTS = "
* PERSONS = "
* INT_T77ED = "
* TIMEINFO = "
* ASSIGNMENTS = "
* ORG_ASSIGNMENT = "
* USER_CUST_TAB = "
IMPORTING Parameters details for RH_IMPORT_SHIFTPLAN_DATA
PLANVERSION -
Data type: OBJEC-PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
ACTION -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
REFRESH_DYNPRO -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ALV_GRID -
Data type: PDSP_ENTRY-GRID_ACTIVEOptional: Yes
Call by Reference: No ( called with pass by value option)
SHIFTGROUP -
Data type: T77ED-DIENSTGROptional: Yes
Call by Reference: No ( called with pass by value option)
FACTORY_CALENDAR_ID -
Data type: SCAL-FCALIDOptional: Yes
Call by Reference: No ( called with pass by value option)
PLAN_BEGIN -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
PLAN_END -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
GROUPING_DWS -
Data type: T77ED-MOTPROptional: Yes
Call by Reference: No ( called with pass by value option)
GROUPING_ATTENDENCE -
Data type: T77ED-MOABWOptional: Yes
Call by Reference: No ( called with pass by value option)
GROUPING_SUBSTITUTE -
Data type: T77ED-MOVEROptional: Yes
Call by Reference: No ( called with pass by value option)
PROFILE_ID -
Data type: T77EP-PROFILE_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_IMPORT_SHIFTPLAN_DATA
ORG_OBJECTS -
Data type: OBJECT_DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
GROUPINGS -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
ARBPL_OBJECTS -
Data type: OBJECT_DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
JOB_OBJECTS -
Data type: OBJECT_DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
PERSONS -
Data type: PDPERSOptional: Yes
Call by Reference: No ( called with pass by value option)
INT_T77ED -
Data type: T77EDOptional: Yes
Call by Reference: No ( called with pass by value option)
TIMEINFO -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
ASSIGNMENTS -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
ORG_ASSIGNMENT -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
USER_CUST_TAB -
Data type: HRSP_USER_CUSTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_IMPORT_SHIFTPLAN_DATA 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: | ||||
| lt_org_objects | TYPE STANDARD TABLE OF OBJECT_DATA, " | |||
| lv_planversion | TYPE OBJEC-PLVAR, " | |||
| lv_action | TYPE OBJEC, " SPACE | |||
| lt_groupings | TYPE STANDARD TABLE OF OBJEC, " | |||
| lv_refresh_dynpro | TYPE OBJEC, " SPACE | |||
| lv_alv_grid | TYPE PDSP_ENTRY-GRID_ACTIVE, " | |||
| lv_shiftgroup | TYPE T77ED-DIENSTGR, " | |||
| lt_arbpl_objects | TYPE STANDARD TABLE OF OBJECT_DATA, " | |||
| lt_job_objects | TYPE STANDARD TABLE OF OBJECT_DATA, " | |||
| lv_factory_calendar_id | TYPE SCAL-FCALID, " | |||
| lt_persons | TYPE STANDARD TABLE OF PDPERS, " | |||
| lv_plan_begin | TYPE SY-DATUM, " | |||
| lv_plan_end | TYPE SY-DATUM, " | |||
| lt_int_t77ed | TYPE STANDARD TABLE OF T77ED, " | |||
| lt_timeinfo | TYPE STANDARD TABLE OF T77ED, " | |||
| lv_grouping_dws | TYPE T77ED-MOTPR, " | |||
| lt_assignments | TYPE STANDARD TABLE OF T77ED, " | |||
| lv_grouping_attendence | TYPE T77ED-MOABW, " | |||
| lt_org_assignment | TYPE STANDARD TABLE OF T77ED, " | |||
| lv_grouping_substitute | TYPE T77ED-MOVER, " | |||
| lv_profile_id | TYPE T77EP-PROFILE_ID, " | |||
| lt_user_cust_tab | TYPE STANDARD TABLE OF HRSP_USER_CUST. " |
|   CALL FUNCTION 'RH_IMPORT_SHIFTPLAN_DATA' " |
| EXPORTING | ||
| PLANVERSION | = lv_planversion | |
| ACTION | = lv_action | |
| REFRESH_DYNPRO | = lv_refresh_dynpro | |
| ALV_GRID | = lv_alv_grid | |
| SHIFTGROUP | = lv_shiftgroup | |
| FACTORY_CALENDAR_ID | = lv_factory_calendar_id | |
| PLAN_BEGIN | = lv_plan_begin | |
| PLAN_END | = lv_plan_end | |
| GROUPING_DWS | = lv_grouping_dws | |
| GROUPING_ATTENDENCE | = lv_grouping_attendence | |
| GROUPING_SUBSTITUTE | = lv_grouping_substitute | |
| PROFILE_ID | = lv_profile_id | |
| TABLES | ||
| ORG_OBJECTS | = lt_org_objects | |
| GROUPINGS | = lt_groupings | |
| ARBPL_OBJECTS | = lt_arbpl_objects | |
| JOB_OBJECTS | = lt_job_objects | |
| PERSONS | = lt_persons | |
| INT_T77ED | = lt_int_t77ed | |
| TIMEINFO | = lt_timeinfo | |
| ASSIGNMENTS | = lt_assignments | |
| ORG_ASSIGNMENT | = lt_org_assignment | |
| USER_CUST_TAB | = lt_user_cust_tab | |
| . " RH_IMPORT_SHIFTPLAN_DATA | ||
ABAP code using 7.40 inline data declarations to call FM RH_IMPORT_SHIFTPLAN_DATA
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 PLVAR FROM OBJEC INTO @DATA(ld_planversion). | ||||
| DATA(ld_action) | = ' '. | |||
| DATA(ld_refresh_dynpro) | = ' '. | |||
| "SELECT single GRID_ACTIVE FROM PDSP_ENTRY INTO @DATA(ld_alv_grid). | ||||
| "SELECT single DIENSTGR FROM T77ED INTO @DATA(ld_shiftgroup). | ||||
| "SELECT single FCALID FROM SCAL INTO @DATA(ld_factory_calendar_id). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_plan_begin). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_plan_end). | ||||
| "SELECT single MOTPR FROM T77ED INTO @DATA(ld_grouping_dws). | ||||
| "SELECT single MOABW FROM T77ED INTO @DATA(ld_grouping_attendence). | ||||
| "SELECT single MOVER FROM T77ED INTO @DATA(ld_grouping_substitute). | ||||
| "SELECT single PROFILE_ID FROM T77EP INTO @DATA(ld_profile_id). | ||||
Search for further information about these or an SAP related objects