MGIR_SSTN_MASS_UPLOAD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this task to upload data for sustainability info...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 MGIR_SSTN_MASS_UPLOAD into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_FILE = File Name
Selection Text: TEST_RUN = Test Run
Title: Mass Upload of Material Info Record Sustainability Parameters
INCLUDE MGIR_SSTN_MASS_UPLOADTOP . " GLOBAL DATA
No SAP DATABASE tables are accessed within this REPORT code!
F4_FILENAME CALL FUNCTION 'F4_FILENAME' EXPORTING field_name = 'P_FILE' IMPORTING file_name = p_file.
TEXT_CONVERT_XLS_TO_SAP CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP' EXPORTING * I_FIELD_SEPERATOR = i_line_header = 'X' i_tab_raw_data = it_raw " WORK TABLE i_filename = p_file TABLES i_tab_converted_data = lt_mgir_sstntab[] "ACTUAL DATA EXCEPTIONS conversion_failed = 1 OTHERS = 2.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = ls_mgir_sstn-lifnr IMPORTING output = ls_mgir_sstn-lifnr.
CONVERSION_EXIT_MATN1_INPUT CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT' EXPORTING input = ls_mgir_sstn-matnr IMPORTING output = ls_mgir_sstn-matnr.
BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = protocol_handler EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.
BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = protocol_handler i_s_msg = ls_msg.
BAL_DSP_OUTPUT_INIT CALL FUNCTION 'BAL_DSP_OUTPUT_INIT'.
BAL_DSP_PROFILE_DETLEVEL_GET CALL FUNCTION 'BAL_DSP_PROFILE_DETLEVEL_GET' IMPORTING e_s_display_profile = tree_profil.
BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = tree_profil i_t_log_handle = lt_handles.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
MGIR_SSTN_MASS_UPLOAD - Mass Upload of Material Info Record Sustainability Parameters MGIR_SSTN_MASS_UPLOAD - Mass Upload of Material Info Record Sustainability Parameters MGIR_SSTN_DETAILS_REPORTTOP - Include MGIR_SSTN_DETAILS_REPORTTOP MGIR_SSTN_DETAILS_REPORT - Material Sustainability Details MGIR_SSTN_DETAILS_REPORT - Material Sustainability Details MGINSIN1 - documentation and ABAP source code