SAP RH_GET_ACTOR_ATTRIBUTES Function Module for Read all Attributes of a Role









RH_GET_ACTOR_ATTRIBUTES is a standard rh get actor attributes SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read all Attributes of a Role 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 rh get actor attributes FM, simply by entering the name RH_GET_ACTOR_ATTRIBUTES into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHWF
Program Name: SAPLRHWF
Main Program: SAPLRHWF
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RH_GET_ACTOR_ATTRIBUTES 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_GET_ACTOR_ATTRIBUTES'"Read all Attributes of a Role
EXPORTING
* ACT_OBJECT_EXT = "
* ACT_OTYPE = "
* ACT_OBJID = "
* READ_CONTAINER = 'X' "
* AUTHORITY_CHECK = 'X' "
* BYPASSING_BUFFER = "
* ACT_LANGU = SY-LANGU "

IMPORTING
ACT_SHORT = "
PERSONAL_FLAG = "
PRIOSEQ_FLAG = "
ROLETYPE = "
ACT_STEXT = "
EXECUTE_FUNCTION = "
EXECUTE_WEGID = "
EXECUTE_SCENARIO = "
EXECUTE_ENFORCE = "
SAP_ORG_OBJ_BASED = "
SAP_ORG_OBJTYPE = "
RESPONSIBLE_FLAG = "

TABLES
* ACT_CONT_DEF = "

EXCEPTIONS
OBJECT_NOT_FOUND = 1
.



IMPORTING Parameters details for RH_GET_ACTOR_ATTRIBUTES

ACT_OBJECT_EXT -

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

ACT_OTYPE -

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

ACT_OBJID -

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

READ_CONTAINER -

Data type: OBJEC-HISTO
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUTHORITY_CHECK -

Data type: HRRHAS-AUTHY
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

BYPASSING_BUFFER -

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

ACT_LANGU -

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

EXPORTING Parameters details for RH_GET_ACTOR_ATTRIBUTES

ACT_SHORT -

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

PERSONAL_FLAG -

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

PRIOSEQ_FLAG -

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

ROLETYPE -

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

ACT_STEXT -

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

EXECUTE_FUNCTION -

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

EXECUTE_WEGID -

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

EXECUTE_SCENARIO -

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

EXECUTE_ENFORCE -

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

SAP_ORG_OBJ_BASED -

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

SAP_ORG_OBJTYPE -

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

RESPONSIBLE_FLAG -

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

TABLES Parameters details for RH_GET_ACTOR_ATTRIBUTES

ACT_CONT_DEF -

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

EXCEPTIONS details

OBJECT_NOT_FOUND -

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

Copy and paste ABAP code example for RH_GET_ACTOR_ATTRIBUTES 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_act_short  TYPE HRS1000-SHORT, "   
lt_act_cont_def  TYPE STANDARD TABLE OF SWCONTDEF, "   
lv_act_object_ext  TYPE RHOBJECTS-OBJECT, "   
lv_object_not_found  TYPE RHOBJECTS, "   
lv_personal_flag  TYPE HRS1203-PERSONAL, "   
lv_prioseq_flag  TYPE HRS1203-PRIOSEQN, "   
lv_roletype  TYPE HRROLETYPE, "   
lv_act_otype  TYPE HRSOBJECT-OTYPE, "   
lv_act_stext  TYPE HRS1000-STEXT, "   
lv_act_objid  TYPE HRSOBJECT-OBJID, "   
lv_execute_function  TYPE HRS1203-FNAME, "   
lv_execute_wegid  TYPE HRS1203-WEGID, "   
lv_read_container  TYPE OBJEC-HISTO, "   'X'
lv_authority_check  TYPE HRRHAS-AUTHY, "   'X'
lv_execute_scenario  TYPE HRS1203-ATTRSCN, "   
lv_execute_enforce  TYPE HRS1203-ENFORCE, "   
lv_bypassing_buffer  TYPE HRPP0C-TEST, "   
lv_act_langu  TYPE SY-LANGU, "   SY-LANGU
lv_sap_org_obj_based  TYPE HRS1203-ORG_FLAG, "   
lv_sap_org_objtype  TYPE HRS1203-OBJTYPE, "   
lv_responsible_flag  TYPE FLAG. "   

  CALL FUNCTION 'RH_GET_ACTOR_ATTRIBUTES'  "Read all Attributes of a Role
    EXPORTING
         ACT_OBJECT_EXT = lv_act_object_ext
         ACT_OTYPE = lv_act_otype
         ACT_OBJID = lv_act_objid
         READ_CONTAINER = lv_read_container
         AUTHORITY_CHECK = lv_authority_check
         BYPASSING_BUFFER = lv_bypassing_buffer
         ACT_LANGU = lv_act_langu
    IMPORTING
         ACT_SHORT = lv_act_short
         PERSONAL_FLAG = lv_personal_flag
         PRIOSEQ_FLAG = lv_prioseq_flag
         ROLETYPE = lv_roletype
         ACT_STEXT = lv_act_stext
         EXECUTE_FUNCTION = lv_execute_function
         EXECUTE_WEGID = lv_execute_wegid
         EXECUTE_SCENARIO = lv_execute_scenario
         EXECUTE_ENFORCE = lv_execute_enforce
         SAP_ORG_OBJ_BASED = lv_sap_org_obj_based
         SAP_ORG_OBJTYPE = lv_sap_org_objtype
         RESPONSIBLE_FLAG = lv_responsible_flag
    TABLES
         ACT_CONT_DEF = lt_act_cont_def
    EXCEPTIONS
        OBJECT_NOT_FOUND = 1
. " RH_GET_ACTOR_ATTRIBUTES




ABAP code using 7.40 inline data declarations to call FM RH_GET_ACTOR_ATTRIBUTES

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 SHORT FROM HRS1000 INTO @DATA(ld_act_short).
 
 
"SELECT single OBJECT FROM RHOBJECTS INTO @DATA(ld_act_object_ext).
 
 
"SELECT single PERSONAL FROM HRS1203 INTO @DATA(ld_personal_flag).
 
"SELECT single PRIOSEQN FROM HRS1203 INTO @DATA(ld_prioseq_flag).
 
 
"SELECT single OTYPE FROM HRSOBJECT INTO @DATA(ld_act_otype).
 
"SELECT single STEXT FROM HRS1000 INTO @DATA(ld_act_stext).
 
"SELECT single OBJID FROM HRSOBJECT INTO @DATA(ld_act_objid).
 
"SELECT single FNAME FROM HRS1203 INTO @DATA(ld_execute_function).
 
"SELECT single WEGID FROM HRS1203 INTO @DATA(ld_execute_wegid).
 
"SELECT single HISTO FROM OBJEC INTO @DATA(ld_read_container).
DATA(ld_read_container) = 'X'.
 
"SELECT single AUTHY FROM HRRHAS INTO @DATA(ld_authority_check).
DATA(ld_authority_check) = 'X'.
 
"SELECT single ATTRSCN FROM HRS1203 INTO @DATA(ld_execute_scenario).
 
"SELECT single ENFORCE FROM HRS1203 INTO @DATA(ld_execute_enforce).
 
"SELECT single TEST FROM HRPP0C INTO @DATA(ld_bypassing_buffer).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_act_langu).
DATA(ld_act_langu) = SY-LANGU.
 
"SELECT single ORG_FLAG FROM HRS1203 INTO @DATA(ld_sap_org_obj_based).
 
"SELECT single OBJTYPE FROM HRS1203 INTO @DATA(ld_sap_org_objtype).
 
 


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!