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

MM03AI00 SAP ABAP INCLUDE - PAI Modules: Change Document







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


Text pool values


Title: PAI Modules: Change Document


INCLUDES used within this REPORT MM03AI00

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:

MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING matnr = rm3ab-matnr IMPORTING wmara = mara EXCEPTIONS lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

CHANGEDOCUMENT_READ_HEADERS CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS' EXPORTING objectclass = objekt objectid = objektid username = rm3ab-aenam time_of_change = zeit date_of_change = rm3ab-datum noplus_aswildcard_inobjid = 'X' "note 1240392 TABLES i_cdhdr = icdhdr EXCEPTIONS no_position_found = 1 OTHERS = 2.

CHANGEDOCUMENT_READ_HEADERS CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS' EXPORTING objectclass = objekt objectid = objektid username = rm3ab-aenam time_of_change = zeit date_of_change = rm3ab-datum noplus_aswildcard_inobjid = 'X' "note 1240392 * read_changedocu = 'X' "note 1169386 read_changedocu = gv_read_changedocu "note 1428911 * planned_change_number_from = aennr_low * planned_change_number_to = aennr_high TABLES i_cdhdr = icdhdr EXCEPTIONS no_position_found = 1 OTHERS = 2.

PLANNED_CHANGES_READ_HEADERS CALL FUNCTION 'PLANNED_CHANGES_READ_HEADERS' "#EC ENHOK EXPORTING objectclass = objekt objectid = objektid username = rm3ab-aenam time_of_change = zeit date_of_change = rm3ab-datum planned_change_number_from = aennr_low planned_change_number_to = aennr_high noplus_aswildcard_inobjid = 'X' "note 1240392 TABLES i_cdhdr = icdhdr EXCEPTIONS no_position_found = 1 OTHERS = 2.

CHANGEDOCUMENT_READ_POSITIONS CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS' EXPORTING changenumber = nummer tablename = tabname tablekey = tabkey IMPORTING header = cdhdr TABLES editpos = ausg EXCEPTIONS no_position_found = 1 OTHERS = 2.

PLANNED_CHANGES_READ_POSITIONS CALL FUNCTION 'PLANNED_CHANGES_READ_POSITIONS' "#EC ENHOK EXPORTING changenumber = nummer tablename = tabname tablekey = tabkey IMPORTING header = cdhdr TABLES editpos = ausg EXCEPTIONS no_position_found = 1 OTHERS = 2.

LANGUAGE_CODE_SAP_TO_ISO CALL FUNCTION 'LANGUAGE_CODE_SAP_TO_ISO' EXPORTING sap_code = h_spras IMPORTING iso_code = h_spras_iso EXCEPTIONS not_found = 1 OTHERS = 2.

GET_DTED_FOR_VERSIONS * CALL FUNCTION 'GET_DTED_FOR_VERSIONS' "Ausgabe: * EXPORTING "LVORM zu Werk * DATELEMNAME = LVOWK "wurde geƤndert * TABLES " * VD04V = IDD04V " * EXCEPTIONS " * OTHERS = 4. "

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = lvowk langu = sy-langu IMPORTING dd04v_wa = idd04v EXCEPTIONS OTHERS = 4.

CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = h_unit language = sy-langu IMPORTING output = h_unit EXCEPTIONS unit_not_found = 1 OTHERS = 2.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = 'SA_PLAN1' state = 'A' langu = sy-langu IMPORTING * GOTSTATE = dd04v_wa = idd04v * TPARA_WA = EXCEPTIONS * ILLEGAL_INPUT = 1 OTHERS = 2.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = 'SA_PLAN2' state = 'A' langu = sy-langu IMPORTING * GOTSTATE = dd04v_wa = idd04v * TPARA_WA = EXCEPTIONS * ILLEGAL_INPUT = 1 OTHERS = 2.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = 'SA_PLAN3' state = 'A' langu = sy-langu IMPORTING * GOTSTATE = dd04v_wa = idd04v * TPARA_WA = EXCEPTIONS * ILLEGAL_INPUT = 1 OTHERS = 2.

CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = h_unit language = sy-langu IMPORTING output = h_unit EXCEPTIONS unit_not_found = 1 OTHERS = 2.

CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = h_unit language = sy-langu IMPORTING output = h_unit EXCEPTIONS unit_not_found = 1 OTHERS = 2.

MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING matnr = wmatnr werks = wwerks IMPORTING wmarc = wmarc EXCEPTIONS lock_on_marc = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = lv_repid i_callback_pf_status_set = 'SET_PF_STATUS' is_layout = ls_layout it_fieldcat = lt_fieldcat it_events = lt_events TABLES t_outtab = gt_alv_display_header EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 4 IMPORTING et_events = ct_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

CHANGEDOCUMENT_READ_POSITIONS





CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS' EXPORTING changenumber = nummer tablename = tabname tablekey = tabkey IMPORTING header = cdhdr TABLES editpos = ausg EXCEPTIONS no_position_found = 1 OTHERS = 2.

PLANNED_CHANGES_READ_POSITIONS CALL FUNCTION 'PLANNED_CHANGES_READ_POSITIONS' "#EC ENHOK EXPORTING changenumber = nummer tablename = tabname tablekey = tabkey IMPORTING header = cdhdr TABLES editpos = ausg EXCEPTIONS no_position_found = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = lv_repid i_callback_pf_status_set = 'SET_PF_STATUS' is_layout = ls_layout it_fieldcat = lt_fieldcat it_events = lt_events TABLES t_outtab = it_alv_display_position EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 4 IMPORTING et_events = ct_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

CHANGEDOCU_CDPOS_READ CALL FUNCTION 'CHANGEDOCU_CDPOS_READ' EXPORTING iv_objectclas = -objectclas iv_objectid = -objectid iv_changenr = -changenr iv_pcdpos_flag = ' ' IMPORTING et_cdpos = lt_cdpos * ET_PCDPOS = EXCEPTIONS no_importparameter = 1 OTHERS = 2.

CHANGEDOCU_CDPOS_READ CALL FUNCTION 'CHANGEDOCU_CDPOS_READ' EXPORTING iv_objectclas = -objectclas iv_objectid = -objectid iv_changenr = -changenr iv_pcdpos_flag = 'X' IMPORTING et_pcdpos = lt_pcdpos EXCEPTIONS no_importparameter = 1 OTHERS = 2.

CHANGEDOCUMENT_PREPARE_DISPLAY CALL FUNCTION 'CHANGEDOCUMENT_PREPARE_DISPLAY' TABLES i_cdhdr = lt_cdhdr i_cdpos = lt_cdpos_disp i_cdred = lt_cdred.

CHANGEDOCUMENT_DISPLAY CALL FUNCTION 'CHANGEDOCUMENT_DISPLAY' EXPORTING i_applicationid = l_applicationid * IS_LAYOUT = * IS_VARIANT = * FLG_AUTOCONDENSE = ' ' * I_CB_PROGRAM = i_objectclas = objekt * IS_SEL_HIDE = * I_SCREEN_START_LINE = 0 * I_SCREEN_START_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_CALLBACK_PF_STATUS_SET = ' ' * IT_EVENTS = * IT_CDRED_STR = TABLES i_cdred = lt_cdred.



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