SAP Function Modules

C13B_PROPERTIES_TREE_EXPORT SAP Function module







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

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


Pattern for FM C13B_PROPERTIES_TREE_EXPORT - C13B PROPERTIES TREE EXPORT





CALL FUNCTION 'C13B_PROPERTIES_TREE_EXPORT' "
  EXPORTING
    i_tree_id =                 " tcg51-menid
* TABLES
*   e_tcg51_tab =               " tcg51
*   e_tcg52_tab =               " tcg52
*   e_tcg53_tab =               " tcg53
*   e_tcg11_tab =               " tcg11         Value Assignment Types
*   e_tcg12_tab =               " tcg12
*   e_clclasses_tab =           " clclasses     Classes
*   e_cla_descr_tab =           " cla_descr     Desc. for classes
*   e_cla_ch_atr_tab =          " cla_ch_atr
*   e_cla_lngtxt_tab =          " cla_lngtxt
*   e_characts_tab =            " characts      Characteristic header data
*   e_char_descr_tab =          " char_descr
*   e_char_vals_tab =           " char_vals     Values of Characteristics
*   e_char_vals_descr_tab =     " chv_descr
*   e_tcg66_tab =               " tcg66
*   e_estps_tab =               " estps
*   e_estpt_tab =               " estpt         Phrase set names
  EXCEPTIONS
    PROPERTEIS_TREE_NOT_FOUND = 1  "
    .  "  C13B_PROPERTIES_TREE_EXPORT

ABAP code example for Function Module C13B_PROPERTIES_TREE_EXPORT





The ABAP code below is a full code listing to execute function module C13B_PROPERTIES_TREE_EXPORT 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_e_tcg51_tab  TYPE STANDARD TABLE OF TCG51,"TABLES PARAM
wa_e_tcg51_tab  LIKE LINE OF it_e_tcg51_tab ,
it_e_tcg52_tab  TYPE STANDARD TABLE OF TCG52,"TABLES PARAM
wa_e_tcg52_tab  LIKE LINE OF it_e_tcg52_tab ,
it_e_tcg53_tab  TYPE STANDARD TABLE OF TCG53,"TABLES PARAM
wa_e_tcg53_tab  LIKE LINE OF it_e_tcg53_tab ,
it_e_tcg11_tab  TYPE STANDARD TABLE OF TCG11,"TABLES PARAM
wa_e_tcg11_tab  LIKE LINE OF it_e_tcg11_tab ,
it_e_tcg12_tab  TYPE STANDARD TABLE OF TCG12,"TABLES PARAM
wa_e_tcg12_tab  LIKE LINE OF it_e_tcg12_tab ,
it_e_clclasses_tab  TYPE STANDARD TABLE OF CLCLASSES,"TABLES PARAM
wa_e_clclasses_tab  LIKE LINE OF it_e_clclasses_tab ,
it_e_cla_descr_tab  TYPE STANDARD TABLE OF CLA_DESCR,"TABLES PARAM
wa_e_cla_descr_tab  LIKE LINE OF it_e_cla_descr_tab ,
it_e_cla_ch_atr_tab  TYPE STANDARD TABLE OF CLA_CH_ATR,"TABLES PARAM
wa_e_cla_ch_atr_tab  LIKE LINE OF it_e_cla_ch_atr_tab ,
it_e_cla_lngtxt_tab  TYPE STANDARD TABLE OF CLA_LNGTXT,"TABLES PARAM
wa_e_cla_lngtxt_tab  LIKE LINE OF it_e_cla_lngtxt_tab ,
it_e_characts_tab  TYPE STANDARD TABLE OF CHARACTS,"TABLES PARAM
wa_e_characts_tab  LIKE LINE OF it_e_characts_tab ,
it_e_char_descr_tab  TYPE STANDARD TABLE OF CHAR_DESCR,"TABLES PARAM
wa_e_char_descr_tab  LIKE LINE OF it_e_char_descr_tab ,
it_e_char_vals_tab  TYPE STANDARD TABLE OF CHAR_VALS,"TABLES PARAM
wa_e_char_vals_tab  LIKE LINE OF it_e_char_vals_tab ,
it_e_char_vals_descr_tab  TYPE STANDARD TABLE OF CHV_DESCR,"TABLES PARAM
wa_e_char_vals_descr_tab  LIKE LINE OF it_e_char_vals_descr_tab ,
it_e_tcg66_tab  TYPE STANDARD TABLE OF TCG66,"TABLES PARAM
wa_e_tcg66_tab  LIKE LINE OF it_e_tcg66_tab ,
it_e_estps_tab  TYPE STANDARD TABLE OF ESTPS,"TABLES PARAM
wa_e_estps_tab  LIKE LINE OF it_e_estps_tab ,
it_e_estpt_tab  TYPE STANDARD TABLE OF ESTPT,"TABLES PARAM
wa_e_estpt_tab  LIKE LINE OF it_e_estpt_tab .


SELECT single MENID
FROM TCG51
INTO @DATA(ld_i_tree_id).


"populate fields of struture and append to itab
append wa_e_tcg51_tab to it_e_tcg51_tab.

"populate fields of struture and append to itab
append wa_e_tcg52_tab to it_e_tcg52_tab.

"populate fields of struture and append to itab
append wa_e_tcg53_tab to it_e_tcg53_tab.

"populate fields of struture and append to itab
append wa_e_tcg11_tab to it_e_tcg11_tab.

"populate fields of struture and append to itab
append wa_e_tcg12_tab to it_e_tcg12_tab.

"populate fields of struture and append to itab
append wa_e_clclasses_tab to it_e_clclasses_tab.

"populate fields of struture and append to itab
append wa_e_cla_descr_tab to it_e_cla_descr_tab.

"populate fields of struture and append to itab
append wa_e_cla_ch_atr_tab to it_e_cla_ch_atr_tab.

"populate fields of struture and append to itab
append wa_e_cla_lngtxt_tab to it_e_cla_lngtxt_tab.

"populate fields of struture and append to itab
append wa_e_characts_tab to it_e_characts_tab.

"populate fields of struture and append to itab
append wa_e_char_descr_tab to it_e_char_descr_tab.

"populate fields of struture and append to itab
append wa_e_char_vals_tab to it_e_char_vals_tab.

"populate fields of struture and append to itab
append wa_e_char_vals_descr_tab to it_e_char_vals_descr_tab.

"populate fields of struture and append to itab
append wa_e_tcg66_tab to it_e_tcg66_tab.

"populate fields of struture and append to itab
append wa_e_estps_tab to it_e_estps_tab.

"populate fields of struture and append to itab
append wa_e_estpt_tab to it_e_estpt_tab. . CALL FUNCTION 'C13B_PROPERTIES_TREE_EXPORT' EXPORTING i_tree_id = ld_i_tree_id * TABLES * e_tcg51_tab = it_e_tcg51_tab * e_tcg52_tab = it_e_tcg52_tab * e_tcg53_tab = it_e_tcg53_tab * e_tcg11_tab = it_e_tcg11_tab * e_tcg12_tab = it_e_tcg12_tab * e_clclasses_tab = it_e_clclasses_tab * e_cla_descr_tab = it_e_cla_descr_tab * e_cla_ch_atr_tab = it_e_cla_ch_atr_tab * e_cla_lngtxt_tab = it_e_cla_lngtxt_tab * e_characts_tab = it_e_characts_tab * e_char_descr_tab = it_e_char_descr_tab * e_char_vals_tab = it_e_char_vals_tab * e_char_vals_descr_tab = it_e_char_vals_descr_tab * e_tcg66_tab = it_e_tcg66_tab * e_estps_tab = it_e_estps_tab * e_estpt_tab = it_e_estpt_tab EXCEPTIONS PROPERTEIS_TREE_NOT_FOUND = 1 . " C13B_PROPERTIES_TREE_EXPORT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_i_tree_id  TYPE TCG51-MENID ,
it_e_tcg51_tab  TYPE STANDARD TABLE OF TCG51 ,
wa_e_tcg51_tab  LIKE LINE OF it_e_tcg51_tab,
it_e_tcg52_tab  TYPE STANDARD TABLE OF TCG52 ,
wa_e_tcg52_tab  LIKE LINE OF it_e_tcg52_tab,
it_e_tcg53_tab  TYPE STANDARD TABLE OF TCG53 ,
wa_e_tcg53_tab  LIKE LINE OF it_e_tcg53_tab,
it_e_tcg11_tab  TYPE STANDARD TABLE OF TCG11 ,
wa_e_tcg11_tab  LIKE LINE OF it_e_tcg11_tab,
it_e_tcg12_tab  TYPE STANDARD TABLE OF TCG12 ,
wa_e_tcg12_tab  LIKE LINE OF it_e_tcg12_tab,
it_e_clclasses_tab  TYPE STANDARD TABLE OF CLCLASSES ,
wa_e_clclasses_tab  LIKE LINE OF it_e_clclasses_tab,
it_e_cla_descr_tab  TYPE STANDARD TABLE OF CLA_DESCR ,
wa_e_cla_descr_tab  LIKE LINE OF it_e_cla_descr_tab,
it_e_cla_ch_atr_tab  TYPE STANDARD TABLE OF CLA_CH_ATR ,
wa_e_cla_ch_atr_tab  LIKE LINE OF it_e_cla_ch_atr_tab,
it_e_cla_lngtxt_tab  TYPE STANDARD TABLE OF CLA_LNGTXT ,
wa_e_cla_lngtxt_tab  LIKE LINE OF it_e_cla_lngtxt_tab,
it_e_characts_tab  TYPE STANDARD TABLE OF CHARACTS ,
wa_e_characts_tab  LIKE LINE OF it_e_characts_tab,
it_e_char_descr_tab  TYPE STANDARD TABLE OF CHAR_DESCR ,
wa_e_char_descr_tab  LIKE LINE OF it_e_char_descr_tab,
it_e_char_vals_tab  TYPE STANDARD TABLE OF CHAR_VALS ,
wa_e_char_vals_tab  LIKE LINE OF it_e_char_vals_tab,
it_e_char_vals_descr_tab  TYPE STANDARD TABLE OF CHV_DESCR ,
wa_e_char_vals_descr_tab  LIKE LINE OF it_e_char_vals_descr_tab,
it_e_tcg66_tab  TYPE STANDARD TABLE OF TCG66 ,
wa_e_tcg66_tab  LIKE LINE OF it_e_tcg66_tab,
it_e_estps_tab  TYPE STANDARD TABLE OF ESTPS ,
wa_e_estps_tab  LIKE LINE OF it_e_estps_tab,
it_e_estpt_tab  TYPE STANDARD TABLE OF ESTPT ,
wa_e_estpt_tab  LIKE LINE OF it_e_estpt_tab.


SELECT single MENID
FROM TCG51
INTO ld_i_tree_id.


"populate fields of struture and append to itab
append wa_e_tcg51_tab to it_e_tcg51_tab.

"populate fields of struture and append to itab
append wa_e_tcg52_tab to it_e_tcg52_tab.

"populate fields of struture and append to itab
append wa_e_tcg53_tab to it_e_tcg53_tab.

"populate fields of struture and append to itab
append wa_e_tcg11_tab to it_e_tcg11_tab.

"populate fields of struture and append to itab
append wa_e_tcg12_tab to it_e_tcg12_tab.

"populate fields of struture and append to itab
append wa_e_clclasses_tab to it_e_clclasses_tab.

"populate fields of struture and append to itab
append wa_e_cla_descr_tab to it_e_cla_descr_tab.

"populate fields of struture and append to itab
append wa_e_cla_ch_atr_tab to it_e_cla_ch_atr_tab.

"populate fields of struture and append to itab
append wa_e_cla_lngtxt_tab to it_e_cla_lngtxt_tab.

"populate fields of struture and append to itab
append wa_e_characts_tab to it_e_characts_tab.

"populate fields of struture and append to itab
append wa_e_char_descr_tab to it_e_char_descr_tab.

"populate fields of struture and append to itab
append wa_e_char_vals_tab to it_e_char_vals_tab.

"populate fields of struture and append to itab
append wa_e_char_vals_descr_tab to it_e_char_vals_descr_tab.

"populate fields of struture and append to itab
append wa_e_tcg66_tab to it_e_tcg66_tab.

"populate fields of struture and append to itab
append wa_e_estps_tab to it_e_estps_tab.

"populate fields of struture and append to itab
append wa_e_estpt_tab to it_e_estpt_tab.

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