SAP Reports / Programs | Product Lifecycle Management | Recipe Management(PLM-RM) SAP PLM

RM_INITIAL_DATA_LOAD SAP ABAP Report - Initial Data Load for Recipes







RM_INITIAL_DATA_LOAD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use the Initial Data Load RM_INITIAL_DATA_LOAD report to transfer recipe data from non-SAP systems or recipes from the Production Planning for Process Industries (PP-PI) component to Recipe Management...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RM_INITIAL_DATA_LOAD 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 RM_INITIAL_DATA_LOAD. "Basic submit
SUBMIT RM_INITIAL_DATA_LOAD AND RETURN. "Return to original report after report execution complete
SUBMIT RM_INITIAL_DATA_LOAD 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: PHY_FILE = D .
Title: Initial Data Load for Recipes
Text Symbol: 001 = File Selection
Text Symbol: 002 = Control
Text Symbol: 003 = Test Run Without Saving Data
Text Symbol: 004 = Name of XML File
Text Symbol: 005 = Exit Editing of Recipe After First Error
Text Symbol: 006 = Save Recipes with Errors
Text Symbol: 007 = Initial Data Load for Recipes


INCLUDES used within this REPORT RM_INITIAL_DATA_LOAD

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:

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = gc_logfile INCLUDING_DIR = 'X' IMPORTING FILE_NAME = phy_file EXCEPTIONS FILE_NOT_FOUND = 1 OTHERS = 2.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_logfile changing physical_filename = phy_file EXCEPTIONS OTHERS = 1.

BAL_CNTL_FREE CALL FUNCTION 'BAL_CNTL_FREE' CHANGING c_control_handle = g_control_handle EXCEPTIONS OTHERS = 1.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log_header IMPORTING e_log_handle = l_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_LOG_DELETE CALL FUNCTION 'BAL_LOG_DELETE' EXPORTING i_log_handle = EXCEPTIONS log_not_found = 1 OTHERS = 2.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = l_frml_item_struct_name TABLES x031l_tab = lt_ddic_nametab EXCEPTIONS not_found = 1 OTHERS = 2.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' "1487019 EXPORTING logical_filename = gc_logfile changing physical_filename = lv_physical_file EXCEPTIONS OTHERS = 1.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = ls_appl_log_msg EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_DSP_PROFILE_STANDARD_GET CALL FUNCTION 'BAL_DSP_PROFILE_STANDARD_GET' IMPORTING e_s_display_profile = g_s_display_profile.

BAL_GLB_SEARCH_MSG CALL FUNCTION 'BAL_GLB_SEARCH_MSG' EXPORTING i_t_log_handle = lt_log_handles IMPORTING e_t_log_handle = lt_log_handle EXCEPTIONS msg_not_found = 1 OTHERS = 2.

BAL_CNTL_CREATE CALL FUNCTION 'BAL_CNTL_CREATE' EXPORTING i_container = g_gui_container i_s_display_profile = g_s_display_profile i_t_log_handle = lt_log_handle i_srt_by_timstmp = const_true IMPORTING e_control_handle = g_control_handle EXCEPTIONS OTHERS = 1.

BAL_CNTL_FREE CALL FUNCTION 'BAL_CNTL_FREE' CHANGING c_control_handle = g_control_handle EXCEPTIONS OTHERS = 1.

BAL_GLB_SEARCH_MSG CALL FUNCTION 'BAL_GLB_SEARCH_MSG' EXPORTING i_t_log_handle = lt_log_handles IMPORTING e_t_log_handle = lt_log_handle EXCEPTIONS msg_not_found = 1 OTHERS = 2.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_t_log_handle = lt_log_handle * IMPORTING * E_NEW_LOGNUMBERS = EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4.



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