SAP FVZU_GET_HIER_FOR_OBJECT Function Module for









FVZU_GET_HIER_FOR_OBJECT is a standard fvzu get hier for object 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 fvzu get hier for object FM, simply by entering the name FVZU_GET_HIER_FOR_OBJECT into the relevant SAP transaction such as SE37 or SE38.

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



Function FVZU_GET_HIER_FOR_OBJECT 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 'FVZU_GET_HIER_FOR_OBJECT'"
EXPORTING
* I_DSTICH = "
* I_INTRENO = ' ' "
* I_IMKEY = ' ' "
* I_OBJNR = ' ' "
* I_FLAG_HIER_DOWN = 'X' "
* I_FLAG_HIER_UP = 'X' "
* I_FLAG_GE_HIER = ' ' "
* I_SEL_OBJECTS = "
* I_FLAG_ONE_LEVEL = ' ' "

TABLES
* T_VIREKEY = "
* T_VIMIMV = "
* T_VICN01 = "
* T_VIVW01 = "
* T_VIOBOV = "
* T_CHILDOBJ = "

EXCEPTIONS
OBJECT_KEY_INCONSISTENT = 1 OBJECT_NOT_FOUND = 2 CONTRACT_NOT_FOUND = 3 WRONG_OBJECT_TYPE = 4
.



IMPORTING Parameters details for FVZU_GET_HIER_FOR_OBJECT

I_DSTICH -

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

I_INTRENO -

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

I_IMKEY -

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

I_OBJNR -

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

I_FLAG_HIER_DOWN -

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

I_FLAG_HIER_UP -

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

I_FLAG_GE_HIER -

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

I_SEL_OBJECTS -

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

I_FLAG_ONE_LEVEL -

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

TABLES Parameters details for FVZU_GET_HIER_FOR_OBJECT

T_VIREKEY -

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

T_VIMIMV -

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

T_VICN01 -

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

T_VIVW01 -

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

T_VIOBOV -

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

T_CHILDOBJ -

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

EXCEPTIONS details

OBJECT_KEY_INCONSISTENT -

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

OBJECT_NOT_FOUND -

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

CONTRACT_NOT_FOUND -

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

WRONG_OBJECT_TYPE -

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

Copy and paste ABAP code example for FVZU_GET_HIER_FOR_OBJECT 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_i_dstich  TYPE SY-DATUM, "   
lt_t_virekey  TYPE STANDARD TABLE OF VIREKEY, "   
lv_object_key_inconsistent  TYPE VIREKEY, "   
lt_t_vimimv  TYPE STANDARD TABLE OF VIMIMV, "   
lv_i_intreno  TYPE VIREKEY-INTRENO, "   SPACE
lv_object_not_found  TYPE VIREKEY, "   
lv_i_imkey  TYPE VIREKEY-IMKEY, "   SPACE
lt_t_vicn01  TYPE STANDARD TABLE OF VICN01, "   
lv_contract_not_found  TYPE VICN01, "   
lv_i_objnr  TYPE VIREKEY-OBJNR, "   SPACE
lt_t_vivw01  TYPE STANDARD TABLE OF VIVW01, "   
lv_wrong_object_type  TYPE VIVW01, "   
lt_t_viobov  TYPE STANDARD TABLE OF VIOBOV, "   
lv_i_flag_hier_down  TYPE VIOBOV, "   'X'
lt_t_childobj  TYPE STANDARD TABLE OF VIOBOV, "   
lv_i_flag_hier_up  TYPE VIOBOV, "   'X'
lv_i_flag_ge_hier  TYPE VIOBOV, "   ' '
lv_i_sel_objects  TYPE FVIOT_MARK_OBJ, "   
lv_i_flag_one_level  TYPE FVIOT_MARK_OBJ. "   SPACE

  CALL FUNCTION 'FVZU_GET_HIER_FOR_OBJECT'  "
    EXPORTING
         I_DSTICH = lv_i_dstich
         I_INTRENO = lv_i_intreno
         I_IMKEY = lv_i_imkey
         I_OBJNR = lv_i_objnr
         I_FLAG_HIER_DOWN = lv_i_flag_hier_down
         I_FLAG_HIER_UP = lv_i_flag_hier_up
         I_FLAG_GE_HIER = lv_i_flag_ge_hier
         I_SEL_OBJECTS = lv_i_sel_objects
         I_FLAG_ONE_LEVEL = lv_i_flag_one_level
    TABLES
         T_VIREKEY = lt_t_virekey
         T_VIMIMV = lt_t_vimimv
         T_VICN01 = lt_t_vicn01
         T_VIVW01 = lt_t_vivw01
         T_VIOBOV = lt_t_viobov
         T_CHILDOBJ = lt_t_childobj
    EXCEPTIONS
        OBJECT_KEY_INCONSISTENT = 1
        OBJECT_NOT_FOUND = 2
        CONTRACT_NOT_FOUND = 3
        WRONG_OBJECT_TYPE = 4
. " FVZU_GET_HIER_FOR_OBJECT




ABAP code using 7.40 inline data declarations to call FM FVZU_GET_HIER_FOR_OBJECT

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 DATUM FROM SY INTO @DATA(ld_i_dstich).
 
 
 
 
"SELECT single INTRENO FROM VIREKEY INTO @DATA(ld_i_intreno).
DATA(ld_i_intreno) = ' '.
 
 
"SELECT single IMKEY FROM VIREKEY INTO @DATA(ld_i_imkey).
DATA(ld_i_imkey) = ' '.
 
 
 
"SELECT single OBJNR FROM VIREKEY INTO @DATA(ld_i_objnr).
DATA(ld_i_objnr) = ' '.
 
 
 
 
DATA(ld_i_flag_hier_down) = 'X'.
 
 
DATA(ld_i_flag_hier_up) = 'X'.
 
DATA(ld_i_flag_ge_hier) = ' '.
 
 
DATA(ld_i_flag_one_level) = ' '.
 


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!