SAP RH_GET_TASK_CONTAINER Function Module for









RH_GET_TASK_CONTAINER is a standard rh get task container 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 get task container FM, simply by entering the name RH_GET_TASK_CONTAINER 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_TASK_CONTAINER 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_TASK_CONTAINER'"
EXPORTING
* ACT_BEGDA = SY-DATUM "
* ACT_ENDDA = SY-DATUM "
* ACT_ISTAT = '1' "
* ACT_LANGU = SY-LANGU "
ACT_OBJECT_EXT = "
* ACT_PLVAR = "
* READ_ONLY_METHOD = "
* BUFFERED_ACCESS = 'X' "

IMPORTING
USED_OBJECT_METHOD = "
HRS_OTYPE_FLAG = "
USED_OBJECT_TYPE = "
USED_METHTYPE = "Object Category (for Events)
USED_CLSNAM = "Workflow: Type of Objects in Persistent Object References
USED_CLSMET = "Workflow: Method Name
USED_METHOD_SYNCHRON = "
USED_TYPE_BACKGROUND_TASK = "
USED_TYPE_CONFIRM_TASK_END = "
USED_TASK_ATTR = "

TABLES
ACT_CONT_DEF = "

EXCEPTIONS
CONTAINER_NOT_FOUND = 1 NO_ACTIVE_PLVAR = 2 TASK_GROUP = 3
.



IMPORTING Parameters details for RH_GET_TASK_CONTAINER

ACT_BEGDA -

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

ACT_ENDDA -

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

ACT_ISTAT -

Data type: PLOG-ISTAT
Default: '1'
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)

ACT_OBJECT_EXT -

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

ACT_PLVAR -

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

READ_ONLY_METHOD -

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

BUFFERED_ACCESS -

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

EXPORTING Parameters details for RH_GET_TASK_CONTAINER

USED_OBJECT_METHOD -

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

HRS_OTYPE_FLAG -

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

USED_OBJECT_TYPE -

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

USED_METHTYPE - Object Category (for Events)

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

USED_CLSNAM - Workflow: Type of Objects in Persistent Object References

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

USED_CLSMET - Workflow: Method Name

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

USED_METHOD_SYNCHRON -

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

USED_TYPE_BACKGROUND_TASK -

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

USED_TYPE_CONFIRM_TASK_END -

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

USED_TASK_ATTR -

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

TABLES Parameters details for RH_GET_TASK_CONTAINER

ACT_CONT_DEF -

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

EXCEPTIONS details

CONTAINER_NOT_FOUND -

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

NO_ACTIVE_PLVAR -

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

TASK_GROUP -

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

Copy and paste ABAP code example for RH_GET_TASK_CONTAINER 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_begda  TYPE PLOG-BEGDA, "   SY-DATUM
lt_act_cont_def  TYPE STANDARD TABLE OF SWCONTDEF, "   
lv_used_object_method  TYPE P1201-SWMTD, "   
lv_container_not_found  TYPE P1201, "   
lv_hrs_otype_flag  TYPE T77EO-SOTYP, "   
lv_act_endda  TYPE PLOG-ENDDA, "   SY-DATUM
lv_no_active_plvar  TYPE PLOG, "   
lv_used_object_type  TYPE P1201-SWOTP, "   
lv_act_istat  TYPE PLOG-ISTAT, "   '1'
lv_task_group  TYPE PLOG, "   
lv_used_methtype  TYPE P1201-METHTYPE, "   
lv_act_langu  TYPE SY-LANGU, "   SY-LANGU
lv_used_clsnam  TYPE HRS1201-CLSNAM, "   
lv_used_clsmet  TYPE HRS1201-CLSMET, "   
lv_act_object_ext  TYPE RHOBJECTS-OBJECT, "   
lv_act_plvar  TYPE PLOG-PLVAR, "   
lv_used_method_synchron  TYPE P1201-SYNCHRON, "   
lv_read_only_method  TYPE PLOG-HISTO, "   
lv_used_type_background_task  TYPE P1201-BACKGROUND, "   
lv_buffered_access  TYPE OBJEC-HISTO, "   'X'
lv_used_type_confirm_task_end  TYPE P1201-CONFIRMTSK, "   
lv_used_task_attr  TYPE TASK_ATTR. "   

  CALL FUNCTION 'RH_GET_TASK_CONTAINER'  "
    EXPORTING
         ACT_BEGDA = lv_act_begda
         ACT_ENDDA = lv_act_endda
         ACT_ISTAT = lv_act_istat
         ACT_LANGU = lv_act_langu
         ACT_OBJECT_EXT = lv_act_object_ext
         ACT_PLVAR = lv_act_plvar
         READ_ONLY_METHOD = lv_read_only_method
         BUFFERED_ACCESS = lv_buffered_access
    IMPORTING
         USED_OBJECT_METHOD = lv_used_object_method
         HRS_OTYPE_FLAG = lv_hrs_otype_flag
         USED_OBJECT_TYPE = lv_used_object_type
         USED_METHTYPE = lv_used_methtype
         USED_CLSNAM = lv_used_clsnam
         USED_CLSMET = lv_used_clsmet
         USED_METHOD_SYNCHRON = lv_used_method_synchron
         USED_TYPE_BACKGROUND_TASK = lv_used_type_background_task
         USED_TYPE_CONFIRM_TASK_END = lv_used_type_confirm_task_end
         USED_TASK_ATTR = lv_used_task_attr
    TABLES
         ACT_CONT_DEF = lt_act_cont_def
    EXCEPTIONS
        CONTAINER_NOT_FOUND = 1
        NO_ACTIVE_PLVAR = 2
        TASK_GROUP = 3
. " RH_GET_TASK_CONTAINER




ABAP code using 7.40 inline data declarations to call FM RH_GET_TASK_CONTAINER

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 BEGDA FROM PLOG INTO @DATA(ld_act_begda).
DATA(ld_act_begda) = SY-DATUM.
 
 
"SELECT single SWMTD FROM P1201 INTO @DATA(ld_used_object_method).
 
 
"SELECT single SOTYP FROM T77EO INTO @DATA(ld_hrs_otype_flag).
 
"SELECT single ENDDA FROM PLOG INTO @DATA(ld_act_endda).
DATA(ld_act_endda) = SY-DATUM.
 
 
"SELECT single SWOTP FROM P1201 INTO @DATA(ld_used_object_type).
 
"SELECT single ISTAT FROM PLOG INTO @DATA(ld_act_istat).
DATA(ld_act_istat) = '1'.
 
 
"SELECT single METHTYPE FROM P1201 INTO @DATA(ld_used_methtype).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_act_langu).
DATA(ld_act_langu) = SY-LANGU.
 
"SELECT single CLSNAM FROM HRS1201 INTO @DATA(ld_used_clsnam).
 
"SELECT single CLSMET FROM HRS1201 INTO @DATA(ld_used_clsmet).
 
"SELECT single OBJECT FROM RHOBJECTS INTO @DATA(ld_act_object_ext).
 
"SELECT single PLVAR FROM PLOG INTO @DATA(ld_act_plvar).
 
"SELECT single SYNCHRON FROM P1201 INTO @DATA(ld_used_method_synchron).
 
"SELECT single HISTO FROM PLOG INTO @DATA(ld_read_only_method).
 
"SELECT single BACKGROUND FROM P1201 INTO @DATA(ld_used_type_background_task).
 
"SELECT single HISTO FROM OBJEC INTO @DATA(ld_buffered_access).
DATA(ld_buffered_access) = 'X'.
 
"SELECT single CONFIRMTSK FROM P1201 INTO @DATA(ld_used_type_confirm_task_end).
 
 


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!