SAP FC_HANDLE_TF189 Function Module for









FC_HANDLE_TF189 is a standard fc handle tf189 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 fc handle tf189 FM, simply by entering the name FC_HANDLE_TF189 into the relevant SAP transaction such as SE37 or SE38.

Function Group: FC81
Program Name: SAPLFC81
Main Program: SAPLFC81
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FC_HANDLE_TF189 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 'FC_HANDLE_TF189'"
EXPORTING
* E_MODE = 'A' "A,R=Read, U=Update, I=Insert, D=Delete
* E_CUIND = ' ' "CU indicator
* E_DISM_FLAG = 'X' "
* E_HLMAX = 99999 "Max. number of successor levels to be read
* E_CUSTOMIZING_OBJECT = "
* E_DIMEN = "Dimension
* E_STRVS = "Structure version
* E_CONGR = "Consolidation group
* E_BUNIT = "Allocated object (CG or CU)
* E_RYEAR_INV = "Fiscal year (inverted)
* E_PERID_INV = "Period (inverted)
* E_RVERS = "Consolidation version
* E_TLEVEL = "Hierarchy level for constructing node table

IMPORTING
I_SUBRC = "Return code

TABLES
T_TF189 = "Table TF189 including all entries
* T_TF189_DEL = "Deletion table TF189
* T_TF189_WT = "Work table with allocated CG's/CU's during read
* T_NODES = "Node table (for hierarchy construct)
.



IMPORTING Parameters details for FC_HANDLE_TF189

E_MODE - A,R=Read, U=Update, I=Insert, D=Delete

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

E_CUIND - CU indicator

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

E_DISM_FLAG -

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

E_HLMAX - Max. number of successor levels to be read

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

E_CUSTOMIZING_OBJECT -

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

E_DIMEN - Dimension

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

E_STRVS - Structure version

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

E_CONGR - Consolidation group

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

E_BUNIT - Allocated object (CG or CU)

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

E_RYEAR_INV - Fiscal year (inverted)

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

E_PERID_INV - Period (inverted)

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

E_RVERS - Consolidation version

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

E_TLEVEL - Hierarchy level for constructing node table

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

EXPORTING Parameters details for FC_HANDLE_TF189

I_SUBRC - Return code

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

TABLES Parameters details for FC_HANDLE_TF189

T_TF189 - Table TF189 including all entries

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

T_TF189_DEL - Deletion table TF189

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

T_TF189_WT - Work table with allocated CG's/CU's during read

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

T_NODES - Node table (for hierarchy construct)

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

Copy and paste ABAP code example for FC_HANDLE_TF189 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_e_mode  TYPE STRING, "   'A'
lv_i_subrc  TYPE SY-SUBRC, "   
lt_t_tf189  TYPE STANDARD TABLE OF FC01_T_TF189, "   
lv_e_cuind  TYPE FC01_T_TF189, "   SPACE
lv_e_dism_flag  TYPE FC01_T_TF189, "   'X'
lv_e_hlmax  TYPE SY-INDEX, "   99999
lv_e_customizing_object  TYPE OBJH-OBJECTNAME, "   
lv_e_dimen  TYPE FC_DIMEN, "   
lt_t_tf189_del  TYPE STANDARD TABLE OF TF189, "   
lv_e_strvs  TYPE FC_STRVS, "   
lt_t_tf189_wt  TYPE STANDARD TABLE OF FC01_T_TF189, "   
lv_e_congr  TYPE FC_CONGR, "   
lt_t_nodes  TYPE STANDARD TABLE OF STREENODE, "   
lv_e_bunit  TYPE FC_BUNIT, "   
lv_e_ryear_inv  TYPE FC_RYEAR, "   
lv_e_perid_inv  TYPE FC_PERID, "   
lv_e_rvers  TYPE FC_RVERS, "   
lv_e_tlevel  TYPE SEUCOMM-TLEVEL. "   

  CALL FUNCTION 'FC_HANDLE_TF189'  "
    EXPORTING
         E_MODE = lv_e_mode
         E_CUIND = lv_e_cuind
         E_DISM_FLAG = lv_e_dism_flag
         E_HLMAX = lv_e_hlmax
         E_CUSTOMIZING_OBJECT = lv_e_customizing_object
         E_DIMEN = lv_e_dimen
         E_STRVS = lv_e_strvs
         E_CONGR = lv_e_congr
         E_BUNIT = lv_e_bunit
         E_RYEAR_INV = lv_e_ryear_inv
         E_PERID_INV = lv_e_perid_inv
         E_RVERS = lv_e_rvers
         E_TLEVEL = lv_e_tlevel
    IMPORTING
         I_SUBRC = lv_i_subrc
    TABLES
         T_TF189 = lt_t_tf189
         T_TF189_DEL = lt_t_tf189_del
         T_TF189_WT = lt_t_tf189_wt
         T_NODES = lt_t_nodes
. " FC_HANDLE_TF189




ABAP code using 7.40 inline data declarations to call FM FC_HANDLE_TF189

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.

DATA(ld_e_mode) = 'A'.
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_i_subrc).
 
 
DATA(ld_e_cuind) = ' '.
 
DATA(ld_e_dism_flag) = 'X'.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_e_hlmax).
DATA(ld_e_hlmax) = 99999.
 
"SELECT single OBJECTNAME FROM OBJH INTO @DATA(ld_e_customizing_object).
 
 
 
 
 
 
 
 
 
 
 
"SELECT single TLEVEL FROM SEUCOMM INTO @DATA(ld_e_tlevel).
 


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!