SAP Reports / Programs | Production Planning and Control | Production Planning for Process Industries | Browser-Based PI Sheet / Cockpit(PP-PI-PMA-PMC) SAP PP

RCOPOC_TEST_XML_GENERATOR SAP ABAP Report - Test: Generate and Download XML File for Control Recipe







RCOPOC_TEST_XML_GENERATOR 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 RCOPOC_TEST_XML_GENERATOR 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 RCOPOC_TEST_XML_GENERATOR. "Basic submit
SUBMIT RCOPOC_TEST_XML_GENERATOR AND RETURN. "Return to original report after report execution complete
SUBMIT RCOPOC_TEST_XML_GENERATOR VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: CRID = Control Recipe
Selection Text: FILE = File Name
Title: Test: Generate and Download XML File for Control Recipe
Text Symbol: 001 = XML Generator Test


INCLUDES used within this REPORT RCOPOC_TEST_XML_GENERATOR

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:

COC1_FEATURE_CHECK CALL FUNCTION 'COC1_FEATURE_CHECK' EXPORTING feature_id = l_cofv_wa-atinn message_type_inp = 'S' IMPORTING value_assignment_with_longtext = l_ltxt_flag EXCEPTIONS invalid_class_type = 1 missing_feature_information = 2 no_feature_found = 3 no_feature_valid = 4 no_language = 5 OTHERS = 6.

CO_ZK_TEXTKEY_AFFV CALL FUNCTION 'CO_ZK_TEXTKEY_AFFV' EXPORTING afvzl = l_cofv_wa-mkmzl aufnr = l_coch_wa-bid "#EC DOM_EQUAL language_req = 'X' IMPORTING id = l_ltexts_wa-tdid name = l_ltexts_wa-tdname object = l_ltexts_wa-tdobject language = l_ltexts_wa-tdspras.

CONTROL_RECIPE_TEXTKEY_COFV CALL FUNCTION 'CONTROL_RECIPE_TEXTKEY_COFV' EXPORTING e_crid = l_cofv_wa-crid e_ftno = l_cofv_wa-ftno e_fvno = l_cofv_wa-fvno IMPORTING id = l_ltexts_wa-tdid name = l_ltexts_wa-tdname object = l_ltexts_wa-tdobject language = l_ltexts_wa-tdspras.

TC52_READ CALL FUNCTION 'TC52_READ' EXPORTING plant = l_coch_wa-werk phase_sequence = l_coch_wa-phseq IMPORTING phase_sequence_data = l_tc52 EXCEPTIONS not_found = 1 OTHERS = 2.

PI_SHEET2_GENERATE_FROM_TABLE CALL FUNCTION 'PI_SHEET2_GENERATE_FROM_TABLE' EXPORTING cr_header = l_coch_wa syntax_check_only = '' settings = l_settings IMPORTING o_pi_document = o_pi_doc TABLES cr_procinstr_tab = l_coft_tab cr_characs_tab = l_cofv_tab cr_charac_ltexts_tab = l_ltexts_tab EXCEPTIONS failed_temporary = 1 failed = 2 OTHERS = 3.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING bin_filesize = l_size filename = l_filename filetype = 'BIN' TABLES data_tab = l_data EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22.



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