SAP Reports / Programs | Sales and Distribution (SD) enhancements | Mill Products Industry Solution | Sales and Distribution (SD) enhancements(IS-MP-SD) SAP IS

MV45AVER2 SAP ABAP INCLUDE - documentation and ABAP source code







MV45AVER2 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). It is used for 1...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 MV45AVER2 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 MV45AVER2. "Basic submit
SUBMIT MV45AVER2 AND RETURN. "Return to original report after report execution complete
SUBMIT MV45AVER2 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 MV45AVER2

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:

MILL_SD_VERSION_READ CALL FUNCTION 'MILL_SD_VERSION_READ' EXPORTING N_VSNMR = VSVBAK_CN-VSNMR N_VBELN = VSVBAK_CN-VBELN IMPORTING XVSVBAK_CN = XVSVBAK_CN XVSVBKD_CN = XVSVBKD_CN TABLES XVSVBAP_CN = XVSVBAP_CN XVSVBEP_CN = XVSVBEP_CN EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

SD_PARTNER_READ CALL FUNCTION 'SD_PARTNER_READ' EXPORTING F_VBELN = VBAK-VBELN TABLES I_XVBADR = XVBADR I_XVBPA = XVBPA I_YVBADR = YVBADR I_YVBPA = YVBPA I_XVBPA2 = XVBPA2 I_YVBPA2 = YVBPA2.

SD_OBJECT_TYPE_DETERMINE * CALL FUNCTION 'SD_OBJECT_TYPE_DETERMINE' * EXPORTING * i_document_type = vbak-vbtyp * i_tvak = tvak * importing * e_business_object = businessobjekt * e_business_object_item = businessobjekt_pos * exceptions * others = 0.

SWU_OBJECT_PUBLISH * CALL FUNCTION 'SWU_OBJECT_PUBLISH' * EXPORTING * objtype = businessobjekt * objkey = vbak-vbeln * EXCEPTIONS * objtype_not_found = 1 * OTHERS = 2.

SD_VBLB_SELECT * CALL FUNCTION 'SD_VBLB_SELECT' * EXPORTING * I_DOCUMENT_NUMBER = VBAK-VBELN * I_ITEM_NUMBER = POSNR_LOW * I_TYPE = CHAR1.

SD_VEDA_SET_DATA * CALL FUNCTION 'SD_VEDA_SET_DATA' * EXPORTING * I_TVAK = TVAK.

SD_VEDA_SELECT * CALL FUNCTION 'SD_VEDA_SELECT' * EXPORTING * I_DOCUMENT_NUMBER = VEDAVB-VBELN * I_ITEM_NUMBER = VEDAVB-VPOSN * I_TRTYP = T180-TRTYP.

RV_XVBAPF_CREATE * CALL FUNCTION 'RV_XVBAPF_CREATE' * EXPORTING * VBELN = VBAK-VBELN * TABLES * FXVBFA = XVBFA * FXVBAPF = XVBAPF.

RV_MESSAGES_READ * CALL FUNCTION 'RV_MESSAGES_READ' * EXPORTING * MSG_KAPPL = TVAK-KAPPL * MSG_OBJKY = XOBJKY * MSG_OBJKY_TO = XOBJKY_TO.

COMMUNICATION_AREA_KOMKBV1 * CALL FUNCTION 'COMMUNICATION_AREA_KOMKBV1' * EXPORTING * MSG_VBAK = VBAK * MSG_VBKD = NA_VBKD * MSG_VBUK = VBUK * MSG_OLD = CHARX * MSG_TRTYP = T180-TRTYP * TABLES * TAB_PART = PART * TAB_VBPA = XVBPA * TAB_VBAP = XVBAP.

RV_XVBAPF_CREATE * CALL FUNCTION 'RV_XVBAPF_CREATE' * EXPORTING * VBELN = VBAK-VGBEL * TABLES * FXVBFA = XVBFA * FXVBAPF = XVBAPF.

ENQUEUE_EMEBANE CALL FUNCTION 'ENQUEUE_EMEBANE' EXPORTING BANFN = RV45A-BANFN EXCEPTIONS FOREIGN_LOCK = 01 SYSTEM_FAILURE = 02.

MILL_SD_VERSION_UPDATE CALL FUNCTION 'MILL_SD_VERSION_UPDATE' IN UPDATE TASK EXPORTING FVSNMR = VSVBAK_CN-VSNMR FVBELN = VBAK-VBELN FVBAK = VBAK TABLES FXVBEP = XVBEP FXVBAP = XVBAP FXVBKD = XVBKD.

RV_FIELD_READ * CALL FUNCTION 'RV_FIELD_READ' * EXPORTING * FDR_FIELD = DA_FDNAM * FDR_LANGU = SY-LANGU * FDR_TABLE = DA_TBNAM * IMPORTING * FDR_DFIES = DA_DFIES_TAB * EXCEPTIONS * FIELD_NOT_FOUND = 1 * OTHERS = 2.

LOCATION_EXTRACT CALL FUNCTION 'LOCATION_EXTRACT' IMPORTING BILD = T185V-PANEL * GUI-Redesign 4.0: aktuelle Bildgruppe und Funktionscode



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