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

SAPMM06W SAP ABAP dialog Program - Program for Object Type EBAN: Purchase Requisition







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


Text pool values


Title: Program for Object Type EBAN: Purchase Requisition
Text Symbol: 001 = Purchase requisition
Text Symbol: 002 = Release code


INCLUDES used within this REPORT SAPMM06W

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:

ME_RELEASE_REQUISITION CALL FUNCTION 'ME_RELEASE_REQUISITION' EXPORTING im_banfn = purchaserequisition im_bnfpo = purchaserequisitionitem im_frgco = releasecode im_wf = 'X' IMPORTING ex_updkz = call_updkz EXCEPTIONS OTHERS = 0.

MMPUR_REQUISITION_DISPLAY CALL FUNCTION 'MMPUR_REQUISITION_DISPLAY' EXPORTING im_banfn = object-key-number im_bnfpo = object-key-item im_change = 'X' EXCEPTIONS OTHERS = 1.

MMPUR_REQUISITION_DISPLAY CALL FUNCTION 'MMPUR_REQUISITION_DISPLAY' EXPORTING im_banfn = object-key-number im_bnfpo = object-key-item im_change = ' ' EXCEPTIONS OTHERS = 1.

BAPI_REQUIREMENT_GET_LIST CALL FUNCTION 'BAPI_REQUIREMENT_GET_LIST' EXPORTING items_for_release = itemsforrelease rel_code = releasecode rel_group = releasegroup closed_items = closeditems open_items = openitems preq_date = date preq_name = requisitioner TABLES requirement_items = itemdata EXCEPTIONS preq_name_missing = 1001 status_missing = 1002 rel_code_missing = 1003 rel_auth_check_failed = 1004 OTHERS = 01.

BAPI_REQUISITION_RELEASE CALL FUNCTION 'BAPI_REQUISITION_RELEASE' EXPORTING item = object-key-item rel_code = releasecode number = object-key-number EXCEPTIONS authority_check_fail = 1001 requisition_not_found = 1002 enqueue_fail = 1003 prerequisite_fail = 1004 release_already_posted = 1005 responsibility_fail = 1006 OTHERS = 01.

BAPI_REQUIREMENT_CREATE CALL FUNCTION 'BAPI_REQUIREMENT_CREATE' IMPORTING number = object-key-number item = object-key-item TABLES return = return requirement_item_text = requirementitemtext requirement_account_assignment = requirementaccountas requirement_items = requirementitems EXCEPTIONS no_object_id = 1001 OTHERS = 01.

BAPI_REQUISITION_RELEASE CALL FUNCTION 'BAPI_REQUISITION_RELEASE' EXPORTING use_exceptions = useexceptions no_commit_work = nocommitwork item = object-key-item rel_code = relcode number = object-key-number IMPORTING rel_indicator_new = relindicatornew rel_status_new = relstatusnew TABLES return = return EXCEPTIONS authority_check_fail = 1001 requisition_not_found = 1002 enqueue_fail = 1003 prerequisite_fail = 1004 release_already_posted = 1005 responsibility_fail = 1006 OTHERS = 01.

BAPI_REQUISITION_RESET_RELEASE CALL FUNCTION 'BAPI_REQUISITION_RESET_RELEASE' EXPORTING use_exceptions = useexceptions rel_code = relcode item = object-key-item number = object-key-number IMPORTING rel_indicator_new = relindicatornew rel_status_new = relstatusnew TABLES return = return EXCEPTIONS authority_check_fail = 1001 requisition_not_found = 1002 enqueue_fail = 1003 prerequisite_fail = 1004 release_already_posted = 1005 responsibility_fail = 1006 no_release_already = 1007 no_new_release_indicator = 1008 OTHERS = 01.

MMPUR_REQUISITION_DISPLAY CALL FUNCTION 'MMPUR_REQUISITION_DISPLAY' EXPORTING im_banfn = object-key-number im_bnfpo = object-key-item im_change = 'X' EXCEPTIONS OTHERS = 1.

MMPUR_REQUISITION_DISPLAY CALL FUNCTION 'MMPUR_REQUISITION_DISPLAY' EXPORTING im_banfn = object-key-number im_bnfpo = object-key-item im_change = 'X' EXCEPTIONS OTHERS = 1.



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