SAP Function Modules

ISU_HIERARCHY_TRANSFER_GRID SAP Function module







ISU_HIERARCHY_TRANSFER_GRID is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ISU_HIERARCHY_TRANSFER_GRID into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: E71GRID
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISU_HIERARCHY_TRANSFER_GRID - ISU HIERARCHY TRANSFER GRID





CALL FUNCTION 'ISU_HIERARCHY_TRANSFER_GRID' "
  EXPORTING
    i_s_hiebas =                " rsap_s_hiebas
    i_s_hieflag =               " rsap_s_hieflag
    i_s_hiersel =               " rsap_s_hier_list
  IMPORTING
    e_packages =                " sbiwa_s_interface-initflag
    e_s_header =                " roshiersel
  TABLES
    i_t_langu =                 " sbiwa_t_langu
    e_t_hietext =               " rsap_t_hietext
    e_t_hienode =               " biw_isu_grid_hiernode
*   e_t_foldert =               " rsap_t_foldert
  EXCEPTIONS
    INVALID_CHABASNM_HCLASS = 1  "
    INVALID_HIERARCHY_FLAG = 2  "
    INVALID_HIERARCHY_SELECT = 3  "
    LANGU_NOT_SUPPORTED = 4     "
    HIERARCHY_TAB_NOT_FOUND = 5  "
    APPLICATION_ERROR = 6       "
    .  "  ISU_HIERARCHY_TRANSFER_GRID

ABAP code example for Function Module ISU_HIERARCHY_TRANSFER_GRID





The ABAP code below is a full code listing to execute function module ISU_HIERARCHY_TRANSFER_GRID including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_packages  TYPE SBIWA_S_INTERFACE-INITFLAG ,
ld_e_s_header  TYPE ROSHIERSEL ,
it_i_t_langu  TYPE STANDARD TABLE OF SBIWA_T_LANGU,"TABLES PARAM
wa_i_t_langu  LIKE LINE OF it_i_t_langu ,
it_e_t_hietext  TYPE STANDARD TABLE OF RSAP_T_HIETEXT,"TABLES PARAM
wa_e_t_hietext  LIKE LINE OF it_e_t_hietext ,
it_e_t_hienode  TYPE STANDARD TABLE OF BIW_ISU_GRID_HIERNODE,"TABLES PARAM
wa_e_t_hienode  LIKE LINE OF it_e_t_hienode ,
it_e_t_foldert  TYPE STANDARD TABLE OF RSAP_T_FOLDERT,"TABLES PARAM
wa_e_t_foldert  LIKE LINE OF it_e_t_foldert .

DATA(ld_i_s_hiebas) = 'Check type of data required'.
DATA(ld_i_s_hieflag) = 'Check type of data required'.
DATA(ld_i_s_hiersel) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_langu to it_i_t_langu.

"populate fields of struture and append to itab
append wa_e_t_hietext to it_e_t_hietext.

"populate fields of struture and append to itab
append wa_e_t_hienode to it_e_t_hienode.

"populate fields of struture and append to itab
append wa_e_t_foldert to it_e_t_foldert. . CALL FUNCTION 'ISU_HIERARCHY_TRANSFER_GRID' EXPORTING i_s_hiebas = ld_i_s_hiebas i_s_hieflag = ld_i_s_hieflag i_s_hiersel = ld_i_s_hiersel IMPORTING e_packages = ld_e_packages e_s_header = ld_e_s_header TABLES i_t_langu = it_i_t_langu e_t_hietext = it_e_t_hietext e_t_hienode = it_e_t_hienode * e_t_foldert = it_e_t_foldert EXCEPTIONS INVALID_CHABASNM_HCLASS = 1 INVALID_HIERARCHY_FLAG = 2 INVALID_HIERARCHY_SELECT = 3 LANGU_NOT_SUPPORTED = 4 HIERARCHY_TAB_NOT_FOUND = 5 APPLICATION_ERROR = 6 . " ISU_HIERARCHY_TRANSFER_GRID
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_packages  TYPE SBIWA_S_INTERFACE-INITFLAG ,
ld_i_s_hiebas  TYPE RSAP_S_HIEBAS ,
it_i_t_langu  TYPE STANDARD TABLE OF SBIWA_T_LANGU ,
wa_i_t_langu  LIKE LINE OF it_i_t_langu,
ld_e_s_header  TYPE ROSHIERSEL ,
ld_i_s_hieflag  TYPE RSAP_S_HIEFLAG ,
it_e_t_hietext  TYPE STANDARD TABLE OF RSAP_T_HIETEXT ,
wa_e_t_hietext  LIKE LINE OF it_e_t_hietext,
ld_i_s_hiersel  TYPE RSAP_S_HIER_LIST ,
it_e_t_hienode  TYPE STANDARD TABLE OF BIW_ISU_GRID_HIERNODE ,
wa_e_t_hienode  LIKE LINE OF it_e_t_hienode,
it_e_t_foldert  TYPE STANDARD TABLE OF RSAP_T_FOLDERT ,
wa_e_t_foldert  LIKE LINE OF it_e_t_foldert.

ld_i_s_hiebas = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_langu to it_i_t_langu.
ld_i_s_hieflag = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_hietext to it_e_t_hietext.
ld_i_s_hiersel = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_hienode to it_e_t_hienode.

"populate fields of struture and append to itab
append wa_e_t_foldert to it_e_t_foldert.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISU_HIERARCHY_TRANSFER_GRID or its description.