SAP RH_SHIFTPLAN_ASSIGN_VIEW Function Module for









RH_SHIFTPLAN_ASSIGN_VIEW is a standard rh shiftplan assign view 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 shiftplan assign view FM, simply by entering the name RH_SHIFTPLAN_ASSIGN_VIEW 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_SHIFTPLAN_ASSIGN_VIEW 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_SHIFTPLAN_ASSIGN_VIEW'"
EXPORTING
PLANVERSION = "
PROFILE_ID = "
STATUS = "
* IM_RULE_ASSIGNMENT = "
SHIFTGROUP = "
FACTORY_CALENDAR_ID = "
PLAN_BEGIN = "
PLAN_END = "
* START_DATE = "
* GROUPING_DWS = "
* GROUPING_ATTENDENCE = "
* GROUPING_SUBSTITUTE = "

IMPORTING
RETURN_CODE = "
ASSIGNMENTS_CHANGED = "

TABLES
PERSONS = "
USER_CUST_TAB = "
* COMPLETED_PLAN = "
* INFO_COLUMNS = "
INT_T77ED = "
TIMEINFO = "
ORG_OBJECTS = "
ARBPL_OBJECTS = "
JOB_OBJECTS = "
ASSIGNMENTS = "
ORG_ASSIGNMENT = "
CALENDAR_TAB = "
.



IMPORTING Parameters details for RH_SHIFTPLAN_ASSIGN_VIEW

PLANVERSION -

Data type: OBJEC-PLVAR
Optional: No
Call by Reference: No ( called with pass by value option)

PROFILE_ID -

Data type: T77EP-PROFILE_ID
Optional: No
Call by Reference: No ( called with pass by value option)

STATUS -

Data type: PDPLA-STATUS
Optional: No
Call by Reference: No ( called with pass by value option)

IM_RULE_ASSIGNMENT -

Data type: HRSP_RULE_ASSIGNMENT
Optional: Yes
Call by Reference: Yes

SHIFTGROUP -

Data type: T77ED-DIENSTGR
Optional: No
Call by Reference: No ( called with pass by value option)

FACTORY_CALENDAR_ID -

Data type: SCAL-FCALID
Optional: No
Call by Reference: No ( called with pass by value option)

PLAN_BEGIN -

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

PLAN_END -

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

START_DATE -

Data type: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

GROUPING_DWS -

Data type: T77ED-MOTPR
Optional: Yes
Call by Reference: No ( called with pass by value option)

GROUPING_ATTENDENCE -

Data type: T77ED-MOABW
Optional: Yes
Call by Reference: No ( called with pass by value option)

GROUPING_SUBSTITUTE -

Data type: T77ED-MOVER
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RH_SHIFTPLAN_ASSIGN_VIEW

RETURN_CODE -

Data type: SY-UCOMM
Optional: No
Call by Reference: No ( called with pass by value option)

ASSIGNMENTS_CHANGED -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RH_SHIFTPLAN_ASSIGN_VIEW

PERSONS -

Data type: PDPERS
Optional: No
Call by Reference: No ( called with pass by value option)

USER_CUST_TAB -

Data type: HRSP_USER_CUST
Optional: No
Call by Reference: No ( called with pass by value option)

COMPLETED_PLAN -

Data type: PSOLL
Optional: Yes
Call by Reference: Yes

INFO_COLUMNS -

Data type:
Optional: Yes
Call by Reference: Yes

INT_T77ED -

Data type: T77ED_MORE
Optional: No
Call by Reference: No ( called with pass by value option)

TIMEINFO -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ORG_OBJECTS -

Data type: OBJECT_DATA
Optional: No
Call by Reference: No ( called with pass by value option)

ARBPL_OBJECTS -

Data type: OBJECT_DATA
Optional: No
Call by Reference: No ( called with pass by value option)

JOB_OBJECTS -

Data type: OBJECT_DATA
Optional: No
Call by Reference: No ( called with pass by value option)

ASSIGNMENTS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ORG_ASSIGNMENT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CALENDAR_TAB -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RH_SHIFTPLAN_ASSIGN_VIEW 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_persons  TYPE STANDARD TABLE OF PDPERS, "   
lv_planversion  TYPE OBJEC-PLVAR, "   
lv_return_code  TYPE SY-UCOMM, "   
lv_profile_id  TYPE T77EP-PROFILE_ID, "   
lt_user_cust_tab  TYPE STANDARD TABLE OF HRSP_USER_CUST, "   
lv_status  TYPE PDPLA-STATUS, "   
lt_completed_plan  TYPE STANDARD TABLE OF PSOLL, "   
lt_info_columns  TYPE STANDARD TABLE OF PSOLL, "   
lv_im_rule_assignment  TYPE HRSP_RULE_ASSIGNMENT, "   
lt_int_t77ed  TYPE STANDARD TABLE OF T77ED_MORE, "   
lv_shiftgroup  TYPE T77ED-DIENSTGR, "   
lv_assignments_changed  TYPE C, "   
lt_timeinfo  TYPE STANDARD TABLE OF C, "   
lv_factory_calendar_id  TYPE SCAL-FCALID, "   
lv_plan_begin  TYPE SY-DATUM, "   
lt_org_objects  TYPE STANDARD TABLE OF OBJECT_DATA, "   
lv_plan_end  TYPE SY-DATUM, "   
lt_arbpl_objects  TYPE STANDARD TABLE OF OBJECT_DATA, "   
lv_start_date  TYPE SY-DATUM, "   
lt_job_objects  TYPE STANDARD TABLE OF OBJECT_DATA, "   
lt_assignments  TYPE STANDARD TABLE OF OBJECT_DATA, "   
lv_grouping_dws  TYPE T77ED-MOTPR, "   
lt_org_assignment  TYPE STANDARD TABLE OF T77ED, "   
lv_grouping_attendence  TYPE T77ED-MOABW, "   
lt_calendar_tab  TYPE STANDARD TABLE OF T77ED, "   
lv_grouping_substitute  TYPE T77ED-MOVER. "   

  CALL FUNCTION 'RH_SHIFTPLAN_ASSIGN_VIEW'  "
    EXPORTING
         PLANVERSION = lv_planversion
         PROFILE_ID = lv_profile_id
         STATUS = lv_status
         IM_RULE_ASSIGNMENT = lv_im_rule_assignment
         SHIFTGROUP = lv_shiftgroup
         FACTORY_CALENDAR_ID = lv_factory_calendar_id
         PLAN_BEGIN = lv_plan_begin
         PLAN_END = lv_plan_end
         START_DATE = lv_start_date
         GROUPING_DWS = lv_grouping_dws
         GROUPING_ATTENDENCE = lv_grouping_attendence
         GROUPING_SUBSTITUTE = lv_grouping_substitute
    IMPORTING
         RETURN_CODE = lv_return_code
         ASSIGNMENTS_CHANGED = lv_assignments_changed
    TABLES
         PERSONS = lt_persons
         USER_CUST_TAB = lt_user_cust_tab
         COMPLETED_PLAN = lt_completed_plan
         INFO_COLUMNS = lt_info_columns
         INT_T77ED = lt_int_t77ed
         TIMEINFO = lt_timeinfo
         ORG_OBJECTS = lt_org_objects
         ARBPL_OBJECTS = lt_arbpl_objects
         JOB_OBJECTS = lt_job_objects
         ASSIGNMENTS = lt_assignments
         ORG_ASSIGNMENT = lt_org_assignment
         CALENDAR_TAB = lt_calendar_tab
. " RH_SHIFTPLAN_ASSIGN_VIEW




ABAP code using 7.40 inline data declarations to call FM RH_SHIFTPLAN_ASSIGN_VIEW

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).
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_return_code).
 
"SELECT single PROFILE_ID FROM T77EP INTO @DATA(ld_profile_id).
 
 
"SELECT single STATUS FROM PDPLA INTO @DATA(ld_status).
 
 
 
 
 
"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 DATUM FROM SY INTO @DATA(ld_start_date).
 
 
 
"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).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!