SAP Reports / Programs | Materials Management | Purchasing | Basic Functions(MM-PUR-GF) SAP MM

MMEWPF01 SAP ABAP INCLUDE - Include MMPOSF01







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


Text pool values


Title: Include MMPOSF01


INCLUDES used within this REPORT MMEWPF01

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:

BAPI_PO_CREATE CALL FUNCTION 'BAPI_PO_CREATE' EXPORTING PO_HEADER = I_BAPIEKKOC PO_HEADER_ADD_DATA = I_BAPIEKKOA * HEADER_ADD_DATA_RELEVANT = PO_ADDRESS = I_BAPIADDRESS SKIP_ITEMS_WITH_ERROR = 'X' * ITEM_ADD_DATA_RELEVANT = IMPORTING PURCHASEORDER = I_BAPIEKKOC-PO_NUMBER TABLES PO_ITEMS = I_BAPIEKPOC PO_ITEM_ADD_DATA = I_BAPIEKPOA PO_ITEM_SCHEDULES = I_BAPIEKET PO_ITEM_ACCOUNT_ASSIGNMENT = I_BAPIEKKN PO_ITEM_TEXT = TAB_BAPIEKPOTX RETURN = I_BAPIRETURN PO_LIMITS = I_BAPIESUHC PO_CONTRACT_LIMITS = I_BAPIESUCC PO_SERVICES = I_BAPIESLLC PO_SRV_ACCASS_VALUES = I_BAPIESKLC PO_SERVICES_TEXT = I_BAPIESLLTX EXCEPTIONS OTHERS = 1.

ME_ITEM_CATEGORY_INPUT CALL FUNCTION 'ME_ITEM_CATEGORY_INPUT' EXPORTING EPSTP = I_1500-ITEM_CAT IMPORTING PSTYP = I_1500-ITEM_CAT * PTEXT = EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

ME_ITEM_CATEGORY_OUTPUT CALL FUNCTION 'ME_ITEM_CATEGORY_OUTPUT' EXPORTING PSTYP = I_1500-ITEM_CAT IMPORTING EPSTP = I_1500-ITEM_CAT"shows up as 'D' on screen PTEXT = I_1500-ITEMCAT_DESC EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

BAPI_MATERIAL_GET_DETAIL CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL' EXPORTING MATERIAL = I_2000-MATERIAL IMPORTING MATERIAL_GENERAL_DATA = MATERIAL.

MS_FILL_TABS_FROM_EXT_DATA * call function 'MS_FILL_TABS_FROM_EXT_DATA' * exporting * i_esuh = i_esuh * tables * ext_esll = xesll * ext_esuc = xesuc * ext_eskl = xeskl * ext_srv_text = xsrv_text * exceptions * ext_data_not_valid = 1 * fatal_error = 2 * others = 3.

RK_KOSTL_CHECK CALL FUNCTION 'RK_KOSTL_CHECK' EXPORTING DATUM = SY-DATUM KOKRS = TKA02-KOKRS KOSTL = COST_CTR V_BUKRS = T001K-BUKRS EXCEPTIONS KOSTL_NOT_COMPLETE = 1 KOSTL_NOT_FOUND = 2 NO_GSBER = 3 NO_PRIMARY_POSTING = 4 NO_REVENUES_POSTING = 5 NO_SECUNDARY_POSTING = 6 TEXT_NOT_FOUND = 7 WRONG_BUKRS = 8 WRONG_GSBER = 9 WRONG_KATYP = 10 OTHERS = 11.

BAPI_INFORECORD_GETLIST CALL FUNCTION 'BAPI_INFORECORD_GETLIST' EXPORTING VENDOR = I_2000-VENDOR MATERIAL = I_2000-MATERIAL MAT_GRP = I_2000-MAT_GRP * VEND_MAT = * VEND_PART = * VEND_MATG = PURCH_ORG = I_2000-PURCH_ORG * INFO_TYPE = PLANT = I_2000-PLANT PUR_GROUP = I_2000-PUR_GROUP * PURCHASINGINFOREC = * DELETED_INFORECORDS = ' ' PURCHORG_DATA = 'X' GENERAL_DATA = 'X' TABLES INFORECORD_GENERAL = I_BAPIEINA INFORECORD_PURCHORG = I_BAPIEINE RETURN = I_BAPIRETURN.

VENDOR_MASTER_DATA_SELECT_00 CALL FUNCTION 'VENDOR_MASTER_DATA_SELECT_00' EXPORTING I_LFA1_LIFNR = I_1500-VENDOR * I_LFM1_EKORG = ' ' * I_LFM2_LTSNR = ' ' * I_LFM2_WERKS = ' ' * I_LFB1_BUKRS = ' ' * I_DATA = 'X' * I_PARTNER = ' ' IMPORTING A_LFA1 = LFA1 A_LFM1 = LFM1 A_LFM2 = LFM2 TABLES T_WYT3 = TWYT3 EXCEPTIONS VENDOR_NOT_FOUND = 1 OTHERS = 2.

MEX_CHECK_LFDAT CALL FUNCTION 'MEX_CHECK_LFDAT' EXPORTING IM_LFDAT = VEKET-EINDT IM_LPEIN = VEKET-LPEIN IM_KALEN = SPACE IM_FABKL = T001W-FABKL IM_PSTYP = EKPO-PSTYP.



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