SAP Reports / Programs | Logistics - General | Batches(LO-BM) SAP LO

MM07MMHD SAP ABAP INCLUDE - documentation and ABAP source code







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


INCLUDES used within this REPORT MM07MMHD

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:

VBMD_CHECK_CALCULATION_POSS CALL FUNCTION 'VBMD_CHECK_CALCULATION_POSS' EXCEPTIONS calculate = 0 dont_calculate = 2 undetermined = 0 OTHERS = 0.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '017' i_nolog = 'X' IMPORTING rc = rc.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '016' i_nolog = 'X' IMPORTING rc = rc.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '015' i_nolog = 'X' IMPORTING rc = rc.

VB_MAINTAIN_MHD CALL FUNCTION 'VB_MAINTAIN_MHD' EXPORTING i_bezdt = mkpf-budat i_iprkz_hbd = frs_iprkz_hbd i_iprkz_rlz = frs_iprkz_rlz i_rdmhd = dm07m-rdmhd i_geshb = frs_geshb i_rstlz = frs_rstlz i_mhdat = dm07m-vfdat_input i_hsdat = dm07m-hsdat_input i_bncom = xbncom check = lv_check calc = lv_calc IMPORTING o_mhdat = new_mhdat o_hsdat = dm07m-hsdat_input o_days_in_rem_sl = days_in_rem_sl o_days_after_sled = days_after_sled o_calc = lv_calc o_check = lv_check EXCEPTIONS sled_le_production_date = 1 ref_date_lower_prod_date = 2 OTHERS = 99.

VB_CHRG_BATCH_DIST_STATUS_GET CALL FUNCTION 'VB_CHRG_BATCH_DIST_STATUS_GET' EXPORTING i_matnr = frs_matnr i_charg = frs_charg i_werks = frs_werks IMPORTING e_change_local_fields_only = lv_change_local_fields_only EXCEPTIONS no_material = 1 no_batch = 2 no_plant = 3 inconsistency = 4 OTHERS = 99.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '004' i_msgv1 = xmchx-charg i_msgv2 = omchx-hsdat i_msgv3 = dm07m-hsdat_input i_output = 'X'.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '005' i_msgv1 = xmchx-charg i_msgv2 = omchx-vfdat i_msgv3 = dm07m-vfdat_input i_nolog = 'X' IMPORTING rc = rc.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '005' i_msgv1 = xmchx-charg i_msgv2 = omchx-vfdat i_msgv3 = dm07m-vfdat_input i_output = 'X'.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '006' i_nolog = x IMPORTING rc = rc.

POPUP_TO_DECIDE_COMPL_QUEST CALL FUNCTION 'POPUP_TO_DECIDE_COMPL_QUEST' EXPORTING txt01 = text-001 qtext = text-002 par01 = char_date01 par02 = char_date02 title = text-003 answer03 = '*' default_answer = 'Y' length = 40 IMPORTING answer = exit_answer.

VB_MAINTAIN_MHD CALL FUNCTION 'VB_MAINTAIN_MHD' EXPORTING i_bezdt = mkpf-budat i_iprkz_hbd = frs_iprkz_hbd i_iprkz_rlz = frs_iprkz_rlz i_rdmhd = dm07m-rdmhd i_geshb = frs_geshb i_rstlz = frs_rstlz i_mhdat = dm07m-vfdat_input i_hsdat = dm07m-hsdat_input i_bncom = xbncom check = lv_check calc = space no_cfc_calls = x IMPORTING o_days_in_rem_sl = days_in_rem_sl o_days_after_sled = days_after_sled EXCEPTIONS OTHERS = 99.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '008' i_msgv1 = dm07m-vfdat_input i_msgv2 = days_after_sled i_msgv3 = text-007 IMPORTING rc = rc.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '007' i_msgv1 = frs_rstlz i_msgv2 = xprdkzt-prtxt i_msgv3 = days_in_rem_sl IMPORTING rc = rc.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = '12' i_msgnr = '003' i_nolog = 'X' IMPORTING rc = rc.

POPUP_TO_DECIDE_COMPL_QUEST CALL FUNCTION 'POPUP_TO_DECIDE_COMPL_QUEST' EXPORTING txt01 = text-004 txt02 = text-006 qtext = text-005 par01 = xmchx-charg par02 = char_date01 par03 = char_date03 par04 = char_date04 title = text-003 answer03 = '*' default_answer = 'Y' length = 45 IMPORTING answer = exit_answer.

VBMD_NO_FURTHER_CALCULATION CALL FUNCTION 'VBMD_NO_FURTHER_CALCULATION'.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = 'CFB' i_msgnr = '404' i_nolog = 'X' IMPORTING rc = rc.

POPUP_TO_DECIDE_COMPL_QUEST





CALL FUNCTION 'POPUP_TO_DECIDE_COMPL_QUEST' EXPORTING txt01 = text-cf1 qtext = text-cf2 par01 = lv_char_date01 par02 = lv_char_date02 title = text-003 answer03 = '*' default_answer = 'N' length = 40 IMPORTING answer = lv_exit_answer.



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