SAP Reports / Programs

COMPONENT_EXPORT_EX SAP ABAP Report - Exports a component to a file







COMPONENT_EXPORT_EX is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter COMPONENT_EXPORT_EX into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT COMPONENT_EXPORT_EX. "Basic submit
SUBMIT COMPONENT_EXPORT_EX AND RETURN. "Return to original report after report execution complete
SUBMIT COMPONENT_EXPORT_EX VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Exports a component to a file


INCLUDES used within this REPORT COMPONENT_EXPORT_EX

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RSZ_COMPONENT_TREE_GET CALL FUNCTION 'RSZ_COMPONENT_TREE_GET' IMPORTING e_compid = compid.

RSZ_COMPONENT_TREE_GET CALL FUNCTION 'RSZ_COMPONENT_TREE_GET' IMPORTING e_compuid = compuid.

RSZ_0_DB_TREESTRUCTURE CALL FUNCTION 'RSZ_0_DB_TREESTRUCTURE' EXPORTING i_tabname = 'RSZ_X_TREECONTENT' TABLES e_t_treestructure = l_t_treestructure.

RSZ_X_CONTROL_TEXTS_GET CALL FUNCTION 'RSZ_X_CONTROL_TEXTS_GET' IMPORTING E_SUBRC = l_subrc TABLES E_T_CONTROL_TEXT = l_t_control_text E_T_OPERATOR = l_t_operator E_T_TREESTRUCTURE = l_t_Treestructure_operator.

RSZ_X_QUERY_DESIGNER_INIT CALL FUNCTION 'RSZ_X_QUERY_DESIGNER_INIT' IMPORTING E_SUBRC = l_subrc TABLES E_T_OPERATOR = l_t_operator_40.

RSZ_X_INFOCUBES_GET CALL FUNCTION 'RSZ_X_INFOCUBES_GET' TABLES I_T_PARAMS = l_t_i_params_Infocube_f4 E_T_PARAMS = l_t_e_params_infocube_f4 e_t_infocube_f4 = l_t_infocube_f4 E_T_TREESTRUCTURE = l_t_Treestructure_infocube_f4.

RSZ_X_COMPONENT_LIST_GET CALL FUNCTION 'RSZ_X_COMPONENT_LIST_GET' EXPORTING I_LANGU = sy-langu I_DEFTP = 'REP' TABLES I_T_PARAMS = l_t_i_Params_COMP_F4 E_T_PARAMS = l_t_e_params_comp_f4 e_t_comp_f4 = l_t_comp_f4 E_T_TREESTRUCTURE = l_t_Treestructure_comp_f4.

RSZ_X_COMPONENT_GET CALL FUNCTION 'RSZ_X_COMPONENT_GET' EXPORTING i_compuid = compuid IMPORTING e_subrc = l_subrc TABLES c_t_eltdir = l_t_eltdir c_t_eltprop = l_t_eltprop c_t_eltprio = l_t_eltprio c_t_eltattr = l_t_eltattr c_t_eltxref = l_t_eltxref c_t_compdir = l_t_compdir c_t_compic = l_t_compic c_t_select = l_t_select c_t_range = l_t_range c_t_calc = l_t_calc c_t_cell = l_t_cell c_t_var = l_t_var c_t_uid_server = l_t_uid_server.

RSZ_X_INFO_OBJECTS_GET CALL FUNCTION 'RSZ_X_INFO_OBJECTS_GET' EXPORTING i_infocube = l_infocube IMPORTING e_templates_exist = l_templates_exist e_restricted_exist = l_restricted_exist e_calculated_exist = l_calculated_exist e_subrc = l_subrc TABLES e_t_cob_pro = l_t_cob_pro e_t_iobj_cmp = l_t_iobj_cmp e_t_dimet = l_t_dimet e_t_iobj_hie = l_t_iobj_hie.

RSZ_X_MEMBERS_GET * CALL FUNCTION 'RSZ_X_MEMBERS_GET' * EXPORTING * I_IOBJNM = '0COMP_CODE' ** I_OBJVERS = 'A' ** I_MEMBER_EXT = ** I_DATETO = SY-DATUM ** I_LIMIT = 100 ** I_GIVE_ALL = ' ' * IMPORTING * E_SUBRC = L_SUBRC ** E_MORE_MEMBERS_EXIST = * TABLES ** C_T_DEP = * E_T_MEMBER_LIST = L_T_MEMBER_LIST.

RSZ_X_ATTRIBUTES_GET CALL FUNCTION 'RSZ_X_ATTRIBUTES_GET' EXPORTING i_chabasnm = -iobjnm TABLES e_t_attributes = l_t_attributes.

RSZ_X_QUERY_GET CALL FUNCTION 'RSZ_X_QUERY_GET' EXPORTING i_compuid = compuid TABLES e_t_prptys = l_t_prptys e_t_dim = l_t_dim e_t_atr = l_t_atr e_t_mem = l_t_mem e_t_cel = l_t_cel e_t_con = l_t_con e_t_fac = l_t_fac.

RSZ_X_COMPONENT_GET CALL FUNCTION 'RSZ_X_COMPONENT_GET' EXPORTING i_compuid = compuid i_template_type = l_type i_by_infocube = l_infocube i_variable_types = '12345' IMPORTING e_subrc = l_subrc TABLES c_t_eltdir = l_t_eltdir c_t_eltprop = l_t_eltprop c_t_eltprio = l_t_eltprio c_t_eltattr = l_t_eltattr c_t_eltxref = l_t_eltxref c_t_compdir = l_t_compdir c_t_compic = l_t_compic c_t_select = l_t_select c_t_range = l_t_range c_t_calc = l_t_calc c_t_cell = l_t_cell c_t_var = l_t_var c_t_uid_server = l_t_uid_server.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = i_table_name IMPORTING x030l_wa = l_s_header TABLES x031l_tab = l_t_nametab EXCEPTIONS not_found = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = l_message.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = l_filename append = l_mode TABLES data_tab = l_t_line EXCEPTIONS file_write_error = 4.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = l_filename append = 'A' TABLES data_tab = l_t_fieldinfo.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = l_filename append = 'A' WRITE_FIELD_SEPARATOR = 'X' TRUNC_TRAILING_BLANKS = 'X' TABLES data_tab = i_t_container.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name COMPONENT_EXPORT_EX or its description.