SAP Reports / Programs

MGIR_SSTN_REPORT SAP ABAP Report - Sustainability Info Records







MGIR_SSTN_REPORT 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 report to display 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_REPORT into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MES11 - Sustainability Info Records


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_REPORT. "Basic submit
SUBMIT MGIR_SSTN_REPORT AND RETURN. "Return to original report after report execution complete
SUBMIT MGIR_SSTN_REPORT 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: I_EKORG = Purchasing Organization
Selection Text: I_ENRATE = Overall Environment Rating
Selection Text: I_E_UNIT = Unit of Energy
Selection Text: I_LIFNR = Vendor
Selection Text: I_MAT = Material
Selection Text: I_M_UNIT = Unit of Mass
Selection Text: I_PLANT = Plant
Selection Text: I_PR_ID = Certificate
Selection Text: I_PR_RAT = Certificate Rating
Selection Text: I_V_UNIT = Unit of Volume
Selection Text: MAX_HIT = Maximum No. of Hits
Selection Text: P_E_DATE = Validity End Date
Selection Text: P_S_DATE = Validity Start Date
Title: Sustainability Info Records
Text Symbol: 010 = Deletion Flag
Text Symbol: CER = Certificates


INCLUDES used within this REPORT MGIR_SSTN_REPORT

INCLUDE MGIR_SSTN_REPORTTOP . " 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:

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = sy-repid i_callback_pf_status_set = 'SET_STATUS' i_callback_user_command = g_callback_user_command i_grid_title = lt_title it_fieldcat = lt_fieldcat[] it_sort = lt_sort[] i_save = 'A' TABLES t_outtab = et_sstn_mgir_alv EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = sy-repid i_structure_name = g_struc_name CHANGING ct_fieldcat = cht_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

MM_SET_COMPANY_CODE CALL FUNCTION 'MM_SET_COMPANY_CODE' EXPORTING i_ekorg = wa_mgir_sstn-ekorg i_werks = wa_mgir_sstn-werks IMPORTING e_bukrs = t001-bukrs EXCEPTIONS OTHERS = 1.

WDY_EXECUTE_IN_BROWSER CALL FUNCTION 'WDY_EXECUTE_IN_BROWSER' EXPORTING application = 'MGIR_SSTN_APPL' parameters = lt_tihttpnvp EXCEPTIONS invalid_application = 1 browser_not_started = 2 action_cancelled = 3 OTHERS = 4.

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = value unit_in = input_unit unit_out = output_unit IMPORTING output = value EXCEPTIONS conversion_not_found = 1 division_by_zero = 2 input_invalid = 3 output_invalid = 4 overflow = 5 type_invalid = 6 units_missing = 7 unit_in_not_found = 8 unit_out_not_found = 9 OTHERS = 10.

UNITS_GET_FOR_DIMENSION CALL FUNCTION 'UNITS_GET_FOR_DIMENSION' EXPORTING dimension = p_dimid language = sy-langu TABLES units_of_measurement = lt_meins EXCEPTIONS dimension_not_found = 1 OTHERS = 2.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'MSEH3' pvalkey = 'MM_MEINS' value_org = 'S' display = ' ' TABLES value_tab = lt_meins_visible "lt_meins return_tab = lt_sel1 EXCEPTIONS OTHERS = 1.

DIMENSIONCHECK_MASS CALL FUNCTION 'DIMENSIONCHECK_MASS' EXPORTING gewei = p_m_unit EXCEPTIONS dimension_not_mass = 1 t006d_entry_missing = 2 t006_entry_missing = 3 OTHERS = 4.

DIMENSIONCHECK_VOLUME CALL FUNCTION 'DIMENSIONCHECK_VOLUME' EXPORTING voleh = p_v_unit EXCEPTIONS dimension_not_volume = 1 t006d_entry_missing = 2 t006_entry_missing = 3 OTHERS = 4.

DIMENSION_GET_FOR_UNIT CALL FUNCTION 'DIMENSION_GET_FOR_UNIT' EXPORTING language = sy-langu unit = p_e_unit IMPORTING dimension = lv_energy_unit EXCEPTIONS unit_not_found = 1 OTHERS = 2.



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