SAP HRCM_BT_SUB_PROCESS_TREE Function Module for









HRCM_BT_SUB_PROCESS_TREE is a standard hrcm bt sub process tree 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 hrcm bt sub process tree FM, simply by entering the name HRCM_BT_SUB_PROCESS_TREE into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHBS
Program Name: SAPLRHBS
Main Program:
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HRCM_BT_SUB_PROCESS_TREE 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 'HRCM_BT_SUB_PROCESS_TREE'"
EXPORTING
OBJECT = "
* PATH_DEPTH = 0 "
* SHOW_FINREL = ' ' "
* PROC_MODE = ' ' "
* MODE = 'DISP' "
BUTGR = "
BUTYP = "
* CURCY = ' ' "
* KCURR = ' ' "
* BUGRU = ' ' "
* KACTIV = 'X' "
FINYR = "
* PATH_ID = ' ' "

TABLES
* ET_BUDGET_INFO = "

EXCEPTIONS
NO_T7PM2_ENTRY = 1 TREE_CONSTRUCT_ERROR = 10 TREE_DISPLAY_ERROR = 11 UNDEFINED = 12 NO_T7PM3_ENTRY = 2 NO_T7PM4_ENTRY = 3 NO_T7PM9_ENTRY = 4 BUDGET_STRUC_ERROR = 5 PATH_ERROR = 6 NO_DATA_FOUND = 7 DATA_DELETED = 8 CHANGED_CUST = 9
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLRHBS_001 Compensation Budget: User Exit for Budget Initialization

IMPORTING Parameters details for HRCM_BT_SUB_PROCESS_TREE

OBJECT -

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

PATH_DEPTH -

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

SHOW_FINREL -

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

PROC_MODE -

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

MODE -

Data type: T77FC-FCODE
Default: 'DISP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUTGR -

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

BUTYP -

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

CURCY -

Data type: T7PM2-WAERS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

KCURR -

Data type: T7PM3-KCURR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUGRU -

Data type: T7PM3-BUGRU
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

KACTIV -

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

FINYR -

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

PATH_ID -

Data type: T778A-WEGID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HRCM_BT_SUB_PROCESS_TREE

ET_BUDGET_INFO -

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

EXCEPTIONS details

NO_T7PM2_ENTRY -

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

TREE_CONSTRUCT_ERROR -

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

TREE_DISPLAY_ERROR -

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

UNDEFINED -

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

NO_T7PM3_ENTRY -

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

NO_T7PM4_ENTRY -

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

NO_T7PM9_ENTRY -

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

BUDGET_STRUC_ERROR -

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

PATH_ERROR -

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

NO_DATA_FOUND -

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

DATA_DELETED -

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

CHANGED_CUST -

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

Copy and paste ABAP code example for HRCM_BT_SUB_PROCESS_TREE 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_object  TYPE HROBJECT, "   
lt_et_budget_info  TYPE STANDARD TABLE OF PPBT1, "   
lv_no_t7pm2_entry  TYPE PPBT1, "   
lv_path_depth  TYPE HRRHAS-TDEPTH, "   0
lv_tree_construct_error  TYPE HRRHAS, "   
lv_show_finrel  TYPE PLOG-HISTO, "   SPACE
lv_tree_display_error  TYPE PLOG, "   
lv_proc_mode  TYPE PLOG-HISTO, "   SPACE
lv_undefined  TYPE PLOG, "   
lv_mode  TYPE T77FC-FCODE, "   'DISP'
lv_butgr  TYPE T7PM0-BUTGR, "   
lv_no_t7pm3_entry  TYPE T7PM0, "   
lv_butyp  TYPE T7PM3-BUTYP, "   
lv_no_t7pm4_entry  TYPE T7PM3, "   
lv_curcy  TYPE T7PM2-WAERS, "   SPACE
lv_no_t7pm9_entry  TYPE T7PM2, "   
lv_kcurr  TYPE T7PM3-KCURR, "   SPACE
lv_budget_struc_error  TYPE T7PM3, "   
lv_bugru  TYPE T7PM3-BUGRU, "   SPACE
lv_path_error  TYPE T7PM3, "   
lv_kactiv  TYPE T7PM3-KACTIV, "   'X'
lv_no_data_found  TYPE T7PM3, "   
lv_finyr  TYPE P1500-FINYR, "   
lv_data_deleted  TYPE P1500, "   
lv_path_id  TYPE T778A-WEGID, "   SPACE
lv_changed_cust  TYPE T778A. "   

  CALL FUNCTION 'HRCM_BT_SUB_PROCESS_TREE'  "
    EXPORTING
         OBJECT = lv_object
         PATH_DEPTH = lv_path_depth
         SHOW_FINREL = lv_show_finrel
         PROC_MODE = lv_proc_mode
         MODE = lv_mode
         BUTGR = lv_butgr
         BUTYP = lv_butyp
         CURCY = lv_curcy
         KCURR = lv_kcurr
         BUGRU = lv_bugru
         KACTIV = lv_kactiv
         FINYR = lv_finyr
         PATH_ID = lv_path_id
    TABLES
         ET_BUDGET_INFO = lt_et_budget_info
    EXCEPTIONS
        NO_T7PM2_ENTRY = 1
        TREE_CONSTRUCT_ERROR = 10
        TREE_DISPLAY_ERROR = 11
        UNDEFINED = 12
        NO_T7PM3_ENTRY = 2
        NO_T7PM4_ENTRY = 3
        NO_T7PM9_ENTRY = 4
        BUDGET_STRUC_ERROR = 5
        PATH_ERROR = 6
        NO_DATA_FOUND = 7
        DATA_DELETED = 8
        CHANGED_CUST = 9
. " HRCM_BT_SUB_PROCESS_TREE




ABAP code using 7.40 inline data declarations to call FM HRCM_BT_SUB_PROCESS_TREE

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 TDEPTH FROM HRRHAS INTO @DATA(ld_path_depth).
 
 
"SELECT single HISTO FROM PLOG INTO @DATA(ld_show_finrel).
DATA(ld_show_finrel) = ' '.
 
 
"SELECT single HISTO FROM PLOG INTO @DATA(ld_proc_mode).
DATA(ld_proc_mode) = ' '.
 
 
"SELECT single FCODE FROM T77FC INTO @DATA(ld_mode).
DATA(ld_mode) = 'DISP'.
 
"SELECT single BUTGR FROM T7PM0 INTO @DATA(ld_butgr).
 
 
"SELECT single BUTYP FROM T7PM3 INTO @DATA(ld_butyp).
 
 
"SELECT single WAERS FROM T7PM2 INTO @DATA(ld_curcy).
DATA(ld_curcy) = ' '.
 
 
"SELECT single KCURR FROM T7PM3 INTO @DATA(ld_kcurr).
DATA(ld_kcurr) = ' '.
 
 
"SELECT single BUGRU FROM T7PM3 INTO @DATA(ld_bugru).
DATA(ld_bugru) = ' '.
 
 
"SELECT single KACTIV FROM T7PM3 INTO @DATA(ld_kactiv).
DATA(ld_kactiv) = 'X'.
 
 
"SELECT single FINYR FROM P1500 INTO @DATA(ld_finyr).
 
 
"SELECT single WEGID FROM T778A INTO @DATA(ld_path_id).
DATA(ld_path_id) = ' '.
 
 


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!