SAP Function Modules

BUPA_HIERARCHY_SAVE_TABS SAP Function module







BUPA_HIERARCHY_SAVE_TABS 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 BUPA_HIERARCHY_SAVE_TABS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BUPA_HIERARCHY_SAVE
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM BUPA_HIERARCHY_SAVE_TABS - BUPA HIERARCHY SAVE TABS





CALL FUNCTION 'BUPA_HIERARCHY_SAVE_TABS' "
  TABLES
    it_hier_type_insert =       " but_hier_type
    it_hier_type_delete =       " but_hier_type
    it_hier_tree_insert =       " but_hier_tree
    it_hier_tree_delete =       " but_hier_tree
    it_hier_tree_update =       " but_hier_tree
    it_hier_tree_d_insert =     " but_hier_tree_d
    it_hier_tree_d_delete =     " but_hier_tree_d
    it_hier_tree_d_update =     " but_hier_tree_d
    it_hier_node_insert =       " but_hier_node
    it_hier_node_delete =       " but_hier_node
    it_hier_node_update =       " but_hier_node
    it_hier_node_d_insert =     " but_hier_node_d
    it_hier_node_d_delete =     " but_hier_node_d
    it_hier_node_d_update =     " but_hier_node_d
    it_hier_struct_insert =     " but_hier_struct
    it_hier_struct_delete =     " but_hier_struct
    it_hier_struct_update =     " but_hier_struct
    it_hier_node_bp_delete =    " but_hier_node_bp
    it_hier_node_bp_insert =    " but_hier_node_bp
    it_hier_node_bp_update =    " but_hier_node_bp
    .  "  BUPA_HIERARCHY_SAVE_TABS

ABAP code example for Function Module BUPA_HIERARCHY_SAVE_TABS





The ABAP code below is a full code listing to execute function module BUPA_HIERARCHY_SAVE_TABS 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:
it_it_hier_type_insert  TYPE STANDARD TABLE OF BUT_HIER_TYPE,"TABLES PARAM
wa_it_hier_type_insert  LIKE LINE OF it_it_hier_type_insert ,
it_it_hier_type_delete  TYPE STANDARD TABLE OF BUT_HIER_TYPE,"TABLES PARAM
wa_it_hier_type_delete  LIKE LINE OF it_it_hier_type_delete ,
it_it_hier_tree_insert  TYPE STANDARD TABLE OF BUT_HIER_TREE,"TABLES PARAM
wa_it_hier_tree_insert  LIKE LINE OF it_it_hier_tree_insert ,
it_it_hier_tree_delete  TYPE STANDARD TABLE OF BUT_HIER_TREE,"TABLES PARAM
wa_it_hier_tree_delete  LIKE LINE OF it_it_hier_tree_delete ,
it_it_hier_tree_update  TYPE STANDARD TABLE OF BUT_HIER_TREE,"TABLES PARAM
wa_it_hier_tree_update  LIKE LINE OF it_it_hier_tree_update ,
it_it_hier_tree_d_insert  TYPE STANDARD TABLE OF BUT_HIER_TREE_D,"TABLES PARAM
wa_it_hier_tree_d_insert  LIKE LINE OF it_it_hier_tree_d_insert ,
it_it_hier_tree_d_delete  TYPE STANDARD TABLE OF BUT_HIER_TREE_D,"TABLES PARAM
wa_it_hier_tree_d_delete  LIKE LINE OF it_it_hier_tree_d_delete ,
it_it_hier_tree_d_update  TYPE STANDARD TABLE OF BUT_HIER_TREE_D,"TABLES PARAM
wa_it_hier_tree_d_update  LIKE LINE OF it_it_hier_tree_d_update ,
it_it_hier_node_insert  TYPE STANDARD TABLE OF BUT_HIER_NODE,"TABLES PARAM
wa_it_hier_node_insert  LIKE LINE OF it_it_hier_node_insert ,
it_it_hier_node_delete  TYPE STANDARD TABLE OF BUT_HIER_NODE,"TABLES PARAM
wa_it_hier_node_delete  LIKE LINE OF it_it_hier_node_delete ,
it_it_hier_node_update  TYPE STANDARD TABLE OF BUT_HIER_NODE,"TABLES PARAM
wa_it_hier_node_update  LIKE LINE OF it_it_hier_node_update ,
it_it_hier_node_d_insert  TYPE STANDARD TABLE OF BUT_HIER_NODE_D,"TABLES PARAM
wa_it_hier_node_d_insert  LIKE LINE OF it_it_hier_node_d_insert ,
it_it_hier_node_d_delete  TYPE STANDARD TABLE OF BUT_HIER_NODE_D,"TABLES PARAM
wa_it_hier_node_d_delete  LIKE LINE OF it_it_hier_node_d_delete ,
it_it_hier_node_d_update  TYPE STANDARD TABLE OF BUT_HIER_NODE_D,"TABLES PARAM
wa_it_hier_node_d_update  LIKE LINE OF it_it_hier_node_d_update ,
it_it_hier_struct_insert  TYPE STANDARD TABLE OF BUT_HIER_STRUCT,"TABLES PARAM
wa_it_hier_struct_insert  LIKE LINE OF it_it_hier_struct_insert ,
it_it_hier_struct_delete  TYPE STANDARD TABLE OF BUT_HIER_STRUCT,"TABLES PARAM
wa_it_hier_struct_delete  LIKE LINE OF it_it_hier_struct_delete ,
it_it_hier_struct_update  TYPE STANDARD TABLE OF BUT_HIER_STRUCT,"TABLES PARAM
wa_it_hier_struct_update  LIKE LINE OF it_it_hier_struct_update ,
it_it_hier_node_bp_delete  TYPE STANDARD TABLE OF BUT_HIER_NODE_BP,"TABLES PARAM
wa_it_hier_node_bp_delete  LIKE LINE OF it_it_hier_node_bp_delete ,
it_it_hier_node_bp_insert  TYPE STANDARD TABLE OF BUT_HIER_NODE_BP,"TABLES PARAM
wa_it_hier_node_bp_insert  LIKE LINE OF it_it_hier_node_bp_insert ,
it_it_hier_node_bp_update  TYPE STANDARD TABLE OF BUT_HIER_NODE_BP,"TABLES PARAM
wa_it_hier_node_bp_update  LIKE LINE OF it_it_hier_node_bp_update .


"populate fields of struture and append to itab
append wa_it_hier_type_insert to it_it_hier_type_insert.

"populate fields of struture and append to itab
append wa_it_hier_type_delete to it_it_hier_type_delete.

"populate fields of struture and append to itab
append wa_it_hier_tree_insert to it_it_hier_tree_insert.

"populate fields of struture and append to itab
append wa_it_hier_tree_delete to it_it_hier_tree_delete.

"populate fields of struture and append to itab
append wa_it_hier_tree_update to it_it_hier_tree_update.

"populate fields of struture and append to itab
append wa_it_hier_tree_d_insert to it_it_hier_tree_d_insert.

"populate fields of struture and append to itab
append wa_it_hier_tree_d_delete to it_it_hier_tree_d_delete.

"populate fields of struture and append to itab
append wa_it_hier_tree_d_update to it_it_hier_tree_d_update.

"populate fields of struture and append to itab
append wa_it_hier_node_insert to it_it_hier_node_insert.

"populate fields of struture and append to itab
append wa_it_hier_node_delete to it_it_hier_node_delete.

"populate fields of struture and append to itab
append wa_it_hier_node_update to it_it_hier_node_update.

"populate fields of struture and append to itab
append wa_it_hier_node_d_insert to it_it_hier_node_d_insert.

"populate fields of struture and append to itab
append wa_it_hier_node_d_delete to it_it_hier_node_d_delete.

"populate fields of struture and append to itab
append wa_it_hier_node_d_update to it_it_hier_node_d_update.

"populate fields of struture and append to itab
append wa_it_hier_struct_insert to it_it_hier_struct_insert.

"populate fields of struture and append to itab
append wa_it_hier_struct_delete to it_it_hier_struct_delete.

"populate fields of struture and append to itab
append wa_it_hier_struct_update to it_it_hier_struct_update.

"populate fields of struture and append to itab
append wa_it_hier_node_bp_delete to it_it_hier_node_bp_delete.

"populate fields of struture and append to itab
append wa_it_hier_node_bp_insert to it_it_hier_node_bp_insert.

"populate fields of struture and append to itab
append wa_it_hier_node_bp_update to it_it_hier_node_bp_update. . CALL FUNCTION 'BUPA_HIERARCHY_SAVE_TABS' TABLES it_hier_type_insert = it_it_hier_type_insert it_hier_type_delete = it_it_hier_type_delete it_hier_tree_insert = it_it_hier_tree_insert it_hier_tree_delete = it_it_hier_tree_delete it_hier_tree_update = it_it_hier_tree_update it_hier_tree_d_insert = it_it_hier_tree_d_insert it_hier_tree_d_delete = it_it_hier_tree_d_delete it_hier_tree_d_update = it_it_hier_tree_d_update it_hier_node_insert = it_it_hier_node_insert it_hier_node_delete = it_it_hier_node_delete it_hier_node_update = it_it_hier_node_update it_hier_node_d_insert = it_it_hier_node_d_insert it_hier_node_d_delete = it_it_hier_node_d_delete it_hier_node_d_update = it_it_hier_node_d_update it_hier_struct_insert = it_it_hier_struct_insert it_hier_struct_delete = it_it_hier_struct_delete it_hier_struct_update = it_it_hier_struct_update it_hier_node_bp_delete = it_it_hier_node_bp_delete it_hier_node_bp_insert = it_it_hier_node_bp_insert it_hier_node_bp_update = it_it_hier_node_bp_update . " BUPA_HIERARCHY_SAVE_TABS
IF SY-SUBRC EQ 0. "All OK 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:
it_it_hier_type_insert  TYPE STANDARD TABLE OF BUT_HIER_TYPE ,
wa_it_hier_type_insert  LIKE LINE OF it_it_hier_type_insert,
it_it_hier_type_delete  TYPE STANDARD TABLE OF BUT_HIER_TYPE ,
wa_it_hier_type_delete  LIKE LINE OF it_it_hier_type_delete,
it_it_hier_tree_insert  TYPE STANDARD TABLE OF BUT_HIER_TREE ,
wa_it_hier_tree_insert  LIKE LINE OF it_it_hier_tree_insert,
it_it_hier_tree_delete  TYPE STANDARD TABLE OF BUT_HIER_TREE ,
wa_it_hier_tree_delete  LIKE LINE OF it_it_hier_tree_delete,
it_it_hier_tree_update  TYPE STANDARD TABLE OF BUT_HIER_TREE ,
wa_it_hier_tree_update  LIKE LINE OF it_it_hier_tree_update,
it_it_hier_tree_d_insert  TYPE STANDARD TABLE OF BUT_HIER_TREE_D ,
wa_it_hier_tree_d_insert  LIKE LINE OF it_it_hier_tree_d_insert,
it_it_hier_tree_d_delete  TYPE STANDARD TABLE OF BUT_HIER_TREE_D ,
wa_it_hier_tree_d_delete  LIKE LINE OF it_it_hier_tree_d_delete,
it_it_hier_tree_d_update  TYPE STANDARD TABLE OF BUT_HIER_TREE_D ,
wa_it_hier_tree_d_update  LIKE LINE OF it_it_hier_tree_d_update,
it_it_hier_node_insert  TYPE STANDARD TABLE OF BUT_HIER_NODE ,
wa_it_hier_node_insert  LIKE LINE OF it_it_hier_node_insert,
it_it_hier_node_delete  TYPE STANDARD TABLE OF BUT_HIER_NODE ,
wa_it_hier_node_delete  LIKE LINE OF it_it_hier_node_delete,
it_it_hier_node_update  TYPE STANDARD TABLE OF BUT_HIER_NODE ,
wa_it_hier_node_update  LIKE LINE OF it_it_hier_node_update,
it_it_hier_node_d_insert  TYPE STANDARD TABLE OF BUT_HIER_NODE_D ,
wa_it_hier_node_d_insert  LIKE LINE OF it_it_hier_node_d_insert,
it_it_hier_node_d_delete  TYPE STANDARD TABLE OF BUT_HIER_NODE_D ,
wa_it_hier_node_d_delete  LIKE LINE OF it_it_hier_node_d_delete,
it_it_hier_node_d_update  TYPE STANDARD TABLE OF BUT_HIER_NODE_D ,
wa_it_hier_node_d_update  LIKE LINE OF it_it_hier_node_d_update,
it_it_hier_struct_insert  TYPE STANDARD TABLE OF BUT_HIER_STRUCT ,
wa_it_hier_struct_insert  LIKE LINE OF it_it_hier_struct_insert,
it_it_hier_struct_delete  TYPE STANDARD TABLE OF BUT_HIER_STRUCT ,
wa_it_hier_struct_delete  LIKE LINE OF it_it_hier_struct_delete,
it_it_hier_struct_update  TYPE STANDARD TABLE OF BUT_HIER_STRUCT ,
wa_it_hier_struct_update  LIKE LINE OF it_it_hier_struct_update,
it_it_hier_node_bp_delete  TYPE STANDARD TABLE OF BUT_HIER_NODE_BP ,
wa_it_hier_node_bp_delete  LIKE LINE OF it_it_hier_node_bp_delete,
it_it_hier_node_bp_insert  TYPE STANDARD TABLE OF BUT_HIER_NODE_BP ,
wa_it_hier_node_bp_insert  LIKE LINE OF it_it_hier_node_bp_insert,
it_it_hier_node_bp_update  TYPE STANDARD TABLE OF BUT_HIER_NODE_BP ,
wa_it_hier_node_bp_update  LIKE LINE OF it_it_hier_node_bp_update.


"populate fields of struture and append to itab
append wa_it_hier_type_insert to it_it_hier_type_insert.

"populate fields of struture and append to itab
append wa_it_hier_type_delete to it_it_hier_type_delete.

"populate fields of struture and append to itab
append wa_it_hier_tree_insert to it_it_hier_tree_insert.

"populate fields of struture and append to itab
append wa_it_hier_tree_delete to it_it_hier_tree_delete.

"populate fields of struture and append to itab
append wa_it_hier_tree_update to it_it_hier_tree_update.

"populate fields of struture and append to itab
append wa_it_hier_tree_d_insert to it_it_hier_tree_d_insert.

"populate fields of struture and append to itab
append wa_it_hier_tree_d_delete to it_it_hier_tree_d_delete.

"populate fields of struture and append to itab
append wa_it_hier_tree_d_update to it_it_hier_tree_d_update.

"populate fields of struture and append to itab
append wa_it_hier_node_insert to it_it_hier_node_insert.

"populate fields of struture and append to itab
append wa_it_hier_node_delete to it_it_hier_node_delete.

"populate fields of struture and append to itab
append wa_it_hier_node_update to it_it_hier_node_update.

"populate fields of struture and append to itab
append wa_it_hier_node_d_insert to it_it_hier_node_d_insert.

"populate fields of struture and append to itab
append wa_it_hier_node_d_delete to it_it_hier_node_d_delete.

"populate fields of struture and append to itab
append wa_it_hier_node_d_update to it_it_hier_node_d_update.

"populate fields of struture and append to itab
append wa_it_hier_struct_insert to it_it_hier_struct_insert.

"populate fields of struture and append to itab
append wa_it_hier_struct_delete to it_it_hier_struct_delete.

"populate fields of struture and append to itab
append wa_it_hier_struct_update to it_it_hier_struct_update.

"populate fields of struture and append to itab
append wa_it_hier_node_bp_delete to it_it_hier_node_bp_delete.

"populate fields of struture and append to itab
append wa_it_hier_node_bp_insert to it_it_hier_node_bp_insert.

"populate fields of struture and append to itab
append wa_it_hier_node_bp_update to it_it_hier_node_bp_update.

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 BUPA_HIERARCHY_SAVE_TABS or its description.