SAP Function Modules

UA_RFC_PDCE_TREE_COPY_NODE SAP Function module







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

Associated Function Group: UA_RFC_PDCE
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM UA_RFC_PDCE_TREE_COPY_NODE - UA RFC PDCE TREE COPY NODE





CALL FUNCTION 'UA_RFC_PDCE_TREE_COPY_NODE' "
  EXPORTING
    id_databasis =              " acc_databasis  Data Basis
*   id_edge_id =                " acc_edge_id   Extraction Itemization Breakdown Data Basis 1PDCE
    is_object =                 " uab_s_rfc_object_pdce
    is_parent_target_object =   " uab_s_rfc_object_pdce
  IMPORTING
    ed_code =                   " sysubrc
  TABLES
    et_object =                 " uab_t_rfc_object_pdce
    et_node =                   " uab_t_rfc_node_pdce
    et_edge =                   " uab_t_rfc_edge_pdce
    et_tnode =                  " uab_t_rfc_tnode_pdce
    et_hier =                   " uab_t_rfc_tree_pdce
    bapiret2 =                  " bapiret2      Return Parameters
    .  "  UA_RFC_PDCE_TREE_COPY_NODE

ABAP code example for Function Module UA_RFC_PDCE_TREE_COPY_NODE





The ABAP code below is a full code listing to execute function module UA_RFC_PDCE_TREE_COPY_NODE 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_ed_code  TYPE SYSUBRC ,
it_et_object  TYPE STANDARD TABLE OF UAB_T_RFC_OBJECT_PDCE,"TABLES PARAM
wa_et_object  LIKE LINE OF it_et_object ,
it_et_node  TYPE STANDARD TABLE OF UAB_T_RFC_NODE_PDCE,"TABLES PARAM
wa_et_node  LIKE LINE OF it_et_node ,
it_et_edge  TYPE STANDARD TABLE OF UAB_T_RFC_EDGE_PDCE,"TABLES PARAM
wa_et_edge  LIKE LINE OF it_et_edge ,
it_et_tnode  TYPE STANDARD TABLE OF UAB_T_RFC_TNODE_PDCE,"TABLES PARAM
wa_et_tnode  LIKE LINE OF it_et_tnode ,
it_et_hier  TYPE STANDARD TABLE OF UAB_T_RFC_TREE_PDCE,"TABLES PARAM
wa_et_hier  LIKE LINE OF it_et_hier ,
it_bapiret2  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_bapiret2  LIKE LINE OF it_bapiret2 .

DATA(ld_id_databasis) = 'Check type of data required'.
DATA(ld_id_edge_id) = 'Check type of data required'.
DATA(ld_is_object) = 'Check type of data required'.
DATA(ld_is_parent_target_object) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_object to it_et_object.

"populate fields of struture and append to itab
append wa_et_node to it_et_node.

"populate fields of struture and append to itab
append wa_et_edge to it_et_edge.

"populate fields of struture and append to itab
append wa_et_tnode to it_et_tnode.

"populate fields of struture and append to itab
append wa_et_hier to it_et_hier.

"populate fields of struture and append to itab
append wa_bapiret2 to it_bapiret2. . CALL FUNCTION 'UA_RFC_PDCE_TREE_COPY_NODE' EXPORTING id_databasis = ld_id_databasis * id_edge_id = ld_id_edge_id is_object = ld_is_object is_parent_target_object = ld_is_parent_target_object IMPORTING ed_code = ld_ed_code TABLES et_object = it_et_object et_node = it_et_node et_edge = it_et_edge et_tnode = it_et_tnode et_hier = it_et_hier bapiret2 = it_bapiret2 . " UA_RFC_PDCE_TREE_COPY_NODE
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:
ld_ed_code  TYPE SYSUBRC ,
ld_id_databasis  TYPE ACC_DATABASIS ,
it_et_object  TYPE STANDARD TABLE OF UAB_T_RFC_OBJECT_PDCE ,
wa_et_object  LIKE LINE OF it_et_object,
ld_id_edge_id  TYPE ACC_EDGE_ID ,
it_et_node  TYPE STANDARD TABLE OF UAB_T_RFC_NODE_PDCE ,
wa_et_node  LIKE LINE OF it_et_node,
ld_is_object  TYPE UAB_S_RFC_OBJECT_PDCE ,
it_et_edge  TYPE STANDARD TABLE OF UAB_T_RFC_EDGE_PDCE ,
wa_et_edge  LIKE LINE OF it_et_edge,
ld_is_parent_target_object  TYPE UAB_S_RFC_OBJECT_PDCE ,
it_et_tnode  TYPE STANDARD TABLE OF UAB_T_RFC_TNODE_PDCE ,
wa_et_tnode  LIKE LINE OF it_et_tnode,
it_et_hier  TYPE STANDARD TABLE OF UAB_T_RFC_TREE_PDCE ,
wa_et_hier  LIKE LINE OF it_et_hier,
it_bapiret2  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_bapiret2  LIKE LINE OF it_bapiret2.

ld_id_databasis = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_object to it_et_object.
ld_id_edge_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_node to it_et_node.
ld_is_object = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_edge to it_et_edge.
ld_is_parent_target_object = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_tnode to it_et_tnode.

"populate fields of struture and append to itab
append wa_et_hier to it_et_hier.

"populate fields of struture and append to itab
append wa_bapiret2 to it_bapiret2.

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