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

Function RH_TASK_ATTRIBUTES_RUNTIME 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_TASK_ATTRIBUTES_RUNTIME'".
EXPORTING
ACT_OBJECT_EXT = "
* ACT_LANGU = SY-LANGU "
* UPDATE_BUFFER = "
IMPORTING
TASK_ATTRIBUTES = "
TASK_XML_CONTAINER = "
CONTAINER = "Container - Implementation of a 'Collection'
TASK_INIT_BIND = "Table with Binding Definitions, Persistent Form
TASK_OM_BIND = "Table with Binding Definitions, Persistent Form
TASK_DEF_ROLE_BIND = "Table with Binding Definitions, Persistent Form
TASK_NOT_ROLE_BIND = "Table with Binding Definitions, Persistent Form
TASK_DEA_ROLE_BIND = "Table with Binding Definitions, Persistent Form
TASK_END_ROLE_BIND = "Table with Binding Definitions, Persistent Form
TASK_LAT_ROLE_BIND = "Table with Binding Definitions, Persistent Form
TABLES
* ACT_CONT_DEF = "
* END_ROLE_BINDING = "
* LAT_ROLE_BINDING = "
* EVENT_BINDING = "Standard Infotype 1212 (SAP) Events with Binding Definition
* ACT_METHODS = "
* START_EVENTS = "
* TERM_EVENTS = "
* TASK_INIT_BINDING = "
* TASK_OM_BINDING = "
* DEF_ROLE_BINDING = "
* NOT_ROLE_BINDING = "
* DEA_ROLE_BINDING = "
EXCEPTIONS
NOTHING_FOUND = 1 ACTIVATION_NOT_POSSIBLE = 2
IMPORTING Parameters details for RH_TASK_ATTRIBUTES_RUNTIME
ACT_OBJECT_EXT -
Data type: RHOBJECTS-OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
ACT_LANGU -
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
UPDATE_BUFFER -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RH_TASK_ATTRIBUTES_RUNTIME
TASK_ATTRIBUTES -
Data type: RHWFTSKATTOptional: No
Call by Reference: No ( called with pass by value option)
TASK_XML_CONTAINER -
Data type: SWH_RAWSTRINGOptional: No
Call by Reference: Yes
CONTAINER - Container - Implementation of a 'Collection'
Data type: IF_SWF_CNT_CONTAINEROptional: No
Call by Reference: Yes
TASK_INIT_BIND - Table with Binding Definitions, Persistent Form
Data type: SWFBNDPTABOptional: No
Call by Reference: Yes
TASK_OM_BIND - Table with Binding Definitions, Persistent Form
Data type: SWFBNDPTABOptional: No
Call by Reference: Yes
TASK_DEF_ROLE_BIND - Table with Binding Definitions, Persistent Form
Data type: SWFBNDPTABOptional: No
Call by Reference: Yes
TASK_NOT_ROLE_BIND - Table with Binding Definitions, Persistent Form
Data type: SWFBNDPTABOptional: No
Call by Reference: Yes
TASK_DEA_ROLE_BIND - Table with Binding Definitions, Persistent Form
Data type: SWFBNDPTABOptional: No
Call by Reference: Yes
TASK_END_ROLE_BIND - Table with Binding Definitions, Persistent Form
Data type: SWFBNDPTABOptional: No
Call by Reference: Yes
TASK_LAT_ROLE_BIND - Table with Binding Definitions, Persistent Form
Data type: SWFBNDPTABOptional: No
Call by Reference: Yes
TABLES Parameters details for RH_TASK_ATTRIBUTES_RUNTIME
ACT_CONT_DEF -
Data type: SWCONTDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
END_ROLE_BINDING -
Data type: SWABINDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
LAT_ROLE_BINDING -
Data type: SWABINDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
EVENT_BINDING - Standard Infotype 1212 (SAP) Events with Binding Definition
Data type: HRS1212Optional: Yes
Call by Reference: Yes
ACT_METHODS -
Data type: RHWF_METHOptional: Yes
Call by Reference: No ( called with pass by value option)
START_EVENTS -
Data type: HRI1212Optional: Yes
Call by Reference: No ( called with pass by value option)
TERM_EVENTS -
Data type: HRI1212Optional: Yes
Call by Reference: No ( called with pass by value option)
TASK_INIT_BINDING -
Data type: SWABINDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
TASK_OM_BINDING -
Data type: SWABINDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
DEF_ROLE_BINDING -
Data type: SWABINDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
NOT_ROLE_BINDING -
Data type: SWABINDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
DEA_ROLE_BINDING -
Data type: SWABINDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOTHING_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ACTIVATION_NOT_POSSIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_TASK_ATTRIBUTES_RUNTIME 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_act_cont_def | TYPE STANDARD TABLE OF SWCONTDEF, " | |||
| lv_nothing_found | TYPE SWCONTDEF, " | |||
| lv_act_object_ext | TYPE RHOBJECTS-OBJECT, " | |||
| lv_task_attributes | TYPE RHWFTSKATT, " | |||
| lt_end_role_binding | TYPE STANDARD TABLE OF SWABINDEF, " | |||
| lv_task_xml_container | TYPE SWH_RAWSTRING, " | |||
| lt_lat_role_binding | TYPE STANDARD TABLE OF SWABINDEF, " | |||
| lt_event_binding | TYPE STANDARD TABLE OF HRS1212, " | |||
| lv_act_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_container | TYPE IF_SWF_CNT_CONTAINER, " | |||
| lt_act_methods | TYPE STANDARD TABLE OF RHWF_METH, " | |||
| lv_activation_not_possible | TYPE RHWF_METH, " | |||
| lt_start_events | TYPE STANDARD TABLE OF HRI1212, " | |||
| lv_update_buffer | TYPE FLAG, " | |||
| lv_task_init_bind | TYPE SWFBNDPTAB, " | |||
| lt_term_events | TYPE STANDARD TABLE OF HRI1212, " | |||
| lv_task_om_bind | TYPE SWFBNDPTAB, " | |||
| lt_task_init_binding | TYPE STANDARD TABLE OF SWABINDEF, " | |||
| lv_task_def_role_bind | TYPE SWFBNDPTAB, " | |||
| lt_task_om_binding | TYPE STANDARD TABLE OF SWABINDEF, " | |||
| lv_task_not_role_bind | TYPE SWFBNDPTAB, " | |||
| lt_def_role_binding | TYPE STANDARD TABLE OF SWABINDEF, " | |||
| lv_task_dea_role_bind | TYPE SWFBNDPTAB, " | |||
| lt_not_role_binding | TYPE STANDARD TABLE OF SWABINDEF, " | |||
| lv_task_end_role_bind | TYPE SWFBNDPTAB, " | |||
| lt_dea_role_binding | TYPE STANDARD TABLE OF SWABINDEF, " | |||
| lv_task_lat_role_bind | TYPE SWFBNDPTAB. " |
|   CALL FUNCTION 'RH_TASK_ATTRIBUTES_RUNTIME' " |
| EXPORTING | ||
| ACT_OBJECT_EXT | = lv_act_object_ext | |
| ACT_LANGU | = lv_act_langu | |
| UPDATE_BUFFER | = lv_update_buffer | |
| IMPORTING | ||
| TASK_ATTRIBUTES | = lv_task_attributes | |
| TASK_XML_CONTAINER | = lv_task_xml_container | |
| CONTAINER | = lv_container | |
| TASK_INIT_BIND | = lv_task_init_bind | |
| TASK_OM_BIND | = lv_task_om_bind | |
| TASK_DEF_ROLE_BIND | = lv_task_def_role_bind | |
| TASK_NOT_ROLE_BIND | = lv_task_not_role_bind | |
| TASK_DEA_ROLE_BIND | = lv_task_dea_role_bind | |
| TASK_END_ROLE_BIND | = lv_task_end_role_bind | |
| TASK_LAT_ROLE_BIND | = lv_task_lat_role_bind | |
| TABLES | ||
| ACT_CONT_DEF | = lt_act_cont_def | |
| END_ROLE_BINDING | = lt_end_role_binding | |
| LAT_ROLE_BINDING | = lt_lat_role_binding | |
| EVENT_BINDING | = lt_event_binding | |
| ACT_METHODS | = lt_act_methods | |
| START_EVENTS | = lt_start_events | |
| TERM_EVENTS | = lt_term_events | |
| TASK_INIT_BINDING | = lt_task_init_binding | |
| TASK_OM_BINDING | = lt_task_om_binding | |
| DEF_ROLE_BINDING | = lt_def_role_binding | |
| NOT_ROLE_BINDING | = lt_not_role_binding | |
| DEA_ROLE_BINDING | = lt_dea_role_binding | |
| EXCEPTIONS | ||
| NOTHING_FOUND = 1 | ||
| ACTIVATION_NOT_POSSIBLE = 2 | ||
| . " RH_TASK_ATTRIBUTES_RUNTIME | ||
ABAP code using 7.40 inline data declarations to call FM RH_TASK_ATTRIBUTES_RUNTIME
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 OBJECT FROM RHOBJECTS INTO @DATA(ld_act_object_ext). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_act_langu). | ||||
| DATA(ld_act_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects