SAP Reports / Programs | Materials Management(MM) SAP MM

MMWCHF01 SAP ABAP INCLUDE - Include MMWCHF01







MMWCHF01 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 MMWCHF01 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 MMWCHF01. "Basic submit
SUBMIT MMWCHF01 AND RETURN. "Return to original report after report execution complete
SUBMIT MMWCHF01 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 MMWCHF01

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_REQUISITION_GETITEMS CALL FUNCTION 'BAPI_REQUISITION_GETITEMS' EXPORTING PREQ_NAME = SY-UNAME PREQ_DATE = SEL_DATE OPEN_ITEMS = 'X' TABLES REQUISITION_ITEMS = REQ_ITEM RETURN = RETURN_OLD.

BAPI_REQUISITION_GETDETAIL CALL FUNCTION 'BAPI_REQUISITION_GETDETAIL' EXPORTING NUMBER = H_BANFN ACCOUNT_ASSIGNMENT = 'X' TABLES REQUISITION_ITEMS = REQ_ITEMDET REQUISITION_ACCOUNT_ASSIGNMENT = REQ_ACCT RETURN = RETURN_OLD.

BAPI_REQUISITION_GETDETAIL CALL FUNCTION 'BAPI_REQUISITION_GETDETAIL' EXPORTING NUMBER = H_BANFN ACCOUNT_ASSIGNMENT = 'X' TABLES REQUISITION_ITEMS = REQ_ITEMDET REQUISITION_ACCOUNT_ASSIGNMENT = REQ_ACCT RETURN = RETURN_OLD.

TRANSACTION_BEGIN CALL FUNCTION 'TRANSACTION_BEGIN' IMPORTING TRANSACTION_ID = OWNER_OF_TRANSACTION EXCEPTIONS OTHERS = 1.

BAPI_REQUISITION_DELETE CALL FUNCTION 'BAPI_REQUISITION_DELETE' EXPORTING NUMBER = REQ_OLD TABLES REQUISITION_ITEMS_TO_DELETE = I_BAPIEBAND RETURN = RETURN_OLD.

TRANSACTION_STATUS CALL FUNCTION 'TRANSACTION_STATUS' IMPORTING STATUS = STATUS_OF_TRANSACTION EXCEPTIONS OTHERS = 1.

TRANSACTION_END CALL FUNCTION 'TRANSACTION_END' EXPORTING TRANSACTION_ID = OWNER_OF_TRANSACTION EXCEPTIONS OTHERS = 1.

BAPI_REQUISITION_CHANGE CALL FUNCTION 'BAPI_REQUISITION_CHANGE' EXPORTING NUMBER = REQ_OLD TABLES REQUISITION_ITEMS_OLD = I_BAPIEBANV_OLD REQUISITION_ITEMS_NEW = I_BAPIEBANV_NEW REQUISITION_ACCOUNT_OLD = I_BAPIEBKNV_OLD REQUISITION_ACCOUNT_NEW = I_BAPIEBKNV_NEW RETURN = RETURN_OLD.

TRANSACTION_BEGIN CALL FUNCTION 'TRANSACTION_BEGIN' IMPORTING TRANSACTION_ID = OWNER_OF_TRANSACTION EXCEPTIONS OTHERS = 1.

BAPI_REQUISITION_DELETE CALL FUNCTION 'BAPI_REQUISITION_DELETE' EXPORTING NUMBER = REQ_OLD TABLES REQUISITION_ITEMS_TO_DELETE = I_BAPIEBAND RETURN = RETURN_OLD.

TRANSACTION_STATUS CALL FUNCTION 'TRANSACTION_STATUS' IMPORTING STATUS = STATUS_OF_TRANSACTION EXCEPTIONS OTHERS = 1.

TRANSACTION_END CALL FUNCTION 'TRANSACTION_END' EXPORTING TRANSACTION_ID = OWNER_OF_TRANSACTION EXCEPTIONS OTHERS = 1.

BAPI_REQUISITION_CHANGE CALL FUNCTION 'BAPI_REQUISITION_CHANGE' EXPORTING NUMBER = REQ_OLD TABLES REQUISITION_ITEMS_OLD = I_BAPIEBANV_OLD REQUISITION_ITEMS_NEW = I_BAPIEBANV_NEW REQUISITION_ACCOUNT_OLD = I_BAPIEBKNV_OLD REQUISITION_ACCOUNT_NEW = I_BAPIEBKNV_NEW RETURN = RETURN_OLD.

BAPI_PO_GETITEMS CALL FUNCTION 'BAPI_PO_GETITEMS' EXPORTING DOC_DATE = SEL_DATE PREQ_NAME = SY-UNAME ITEMS_OPEN_FOR_RECEIPT = 'X' TABLES PO_ITEMS = PO_ITEM RETURN = I_BAPIRETURN.

BAPI_PO_GETDETAIL CALL FUNCTION 'BAPI_PO_GETDETAIL' EXPORTING PURCHASEORDER = H_EBELN ITEMS = 'X' SCHEDULES = 'X' IMPORTING PO_HEADER = PO_HEADER TABLES PO_ITEMS = PO_ITEMDET PO_ITEM_SCHEDULES = PO_SCHED RETURN = I_BAPIRETURN EXCEPTIONS OTHERS = 0.

BAPI_PO_GETDETAIL CALL FUNCTION 'BAPI_PO_GETDETAIL' EXPORTING PURCHASEORDER = H_EBELN ITEMS = 'X' SCHEDULES = 'X' IMPORTING PO_HEADER = PO_HEADER TABLES PO_ITEMS = PO_ITEMDET PO_ITEM_SCHEDULES = PO_SCHED RETURN = I_BAPIRETURN EXCEPTIONS OTHERS = 0.

ME_PUR_DOCU_CHANGE CALL FUNCTION 'ME_PUR_DOCU_CHANGE' EXPORTING NUMBER = PO_OLD TABLES PO_ITEMS_OLD = I_BAPIEKPOV_OLD PO_ITEMS_NEW = I_BAPIEKPOV_NEW RETURN = I_BAPIRETURN EXCEPTIONS INVALID_CALL_OF_FB = 1 OTHERS = 2.

ME_PUR_DOCU_CHANGE CALL FUNCTION 'ME_PUR_DOCU_CHANGE' EXPORTING NUMBER = PO_OLD TABLES PO_ITEMS_OLD = I_BAPIEKPOV_OLD PO_ITEMS_NEW = I_BAPIEKPOV_NEW RETURN = I_BAPIRETURN EXCEPTIONS INVALID_CALL_OF_FB = 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 MMWCHF01 or its description.