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

MMWE2F01 SAP ABAP INCLUDE - FORM Routines for SAPMMWE1







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


Text pool values


Title: FORM Routines for SAPMMWE1


INCLUDES used within this REPORT MMWE2F01

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_COMPANYCODE_GETDETAIL CALL FUNCTION 'BAPI_COMPANYCODE_GETDETAIL' EXPORTING COMPANYCODEID = GCU_BUKRS IMPORTING COMPANYCODE_DETAIL = COMPDETA.

BAPI_CURRENCY_CONV_TO_INTERNAL CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL' EXPORTING CURRENCY = XEBAN-CURRENCY AMOUNT_EXTERNAL = XEBAN-C_AMT_BAPI MAX_NUMBER_OF_DIGITS = DIGITS IMPORTING AMOUNT_INTERNAL = H_PREIS EXCEPTIONS OTHERS = 1.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = SY-DATUM FOREIGN_AMOUNT = F_AMOUNT FOREIGN_CURRENCY = TEBAN-WAERS LOCAL_CURRENCY = FIT_WAERS IMPORTING LOCAL_AMOUNT = H_AMOUNT EXCEPTIONS OTHERS = 01.

BAPI_REQUISITION_RELEASE CALL FUNCTION 'BAPI_REQUISITION_RELEASE' EXPORTING NUMBER = BAPI2009OB-PREQ_NO ITEM = BAPI2009OB-PREQ_ITEM REL_CODE = RM06B-FRGAB IMPORTING REL_STATUS_NEW = EBAN-FRGZU REL_INDICATOR_NEW = EBAN-FRGKZ EXCEPTIONS AUTHORITY_CHECK_FAIL = 1 REQUISITION_NOT_FOUND = 2 ENQUEUE_FAIL = 3 PREREQUISITE_FAIL = 4 RELEASE_ALREADY_POSTED = 5 RESPONSIBILITY_FAIL = 6 OTHERS = 7.

BAPI_REQUISITION_RELEASE_GEN CALL FUNCTION 'BAPI_REQUISITION_RELEASE_GEN' EXPORTING NUMBER = BAPI2009OB-PREQ_NO REL_CODE = RM06B-FRGAB IMPORTING REL_STATUS_NEW = EBAN-FRGZU REL_INDICATOR_NEW = EBAN-FRGKZ TABLES RETURN = RETURN.

BAPI_REQUISITION_RESET_RELEASE CALL FUNCTION 'BAPI_REQUISITION_RESET_RELEASE' EXPORTING NUMBER = BAPI2009OB-PREQ_NO ITEM = BAPI2009OB-PREQ_ITEM REL_CODE = RM06B-FRGAB IMPORTING REL_STATUS_NEW = EBAN-FRGZU REL_INDICATOR_NEW = EBAN-FRGKZ EXCEPTIONS AUTHORITY_CHECK_FAIL = 1 REQUISITION_NOT_FOUND = 2 ENQUEUE_FAIL = 3 PREREQUISITE_FAIL = 4 RELEASE_ALREADY_POSTED = 5 RESPONSIBILITY_FAIL = 6 OTHERS = 7.

BAPI_REQUISITION_RESET_REL_GEN CALL FUNCTION 'BAPI_REQUISITION_RESET_REL_GEN' EXPORTING NUMBER = BAPI2009OB-PREQ_NO REL_CODE = RM06B-FRGAB IMPORTING REL_STATUS_NEW = EBAN-FRGZU REL_INDICATOR_NEW = EBAN-FRGKZ TABLES RETURN = RETURN.

BAPI_CURRENCY_CONV_TO_INTERNAL CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL' EXPORTING CURRENCY = XEBAN-CURRENCY AMOUNT_EXTERNAL = XEBAN-C_AMT_BAPI MAX_NUMBER_OF_DIGITS = DIGITS IMPORTING AMOUNT_INTERNAL = H_PREIS EXCEPTIONS OTHERS = 1.

BAPI_CURRENCY_CONV_TO_INTERNAL CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL' EXPORTING CURRENCY = XEBAN-CURRENCY AMOUNT_EXTERNAL = XEBAN-C_AMT_BAPI MAX_NUMBER_OF_DIGITS = DIGITS IMPORTING AMOUNT_INTERNAL = H_PREIS EXCEPTIONS OTHERS = 1.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = SY-DATUM FOREIGN_AMOUNT = F_AMOUNT FOREIGN_CURRENCY = XEBAN-CURRENCY LOCAL_CURRENCY = H_WAERS IMPORTING LOCAL_AMOUNT = H_AMOUNT EXCEPTIONS OTHERS = 01.



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