SAP Reports / Programs | Logistics - General | Logistics Basic Data | Material Master(LO-MD-MM) SAP LO

MGIR_SSTN_MASS_UPLOAD SAP ABAP Report - Mass Upload of Material Info Record Sustainability Parameters







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


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 MGIR_SSTN_MASS_UPLOAD. "Basic submit
SUBMIT MGIR_SSTN_MASS_UPLOAD AND RETURN. "Return to original report after report execution complete
SUBMIT MGIR_SSTN_MASS_UPLOAD 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: P_FILE = File Name
Selection Text: TEST_RUN = Test Run
Title: Mass Upload of Material Info Record Sustainability Parameters


INCLUDES used within this REPORT MGIR_SSTN_MASS_UPLOAD

INCLUDE MGIR_SSTN_MASS_UPLOADTOP . " GLOBAL DATA


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:

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.



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