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

MWOG1SAM SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

W_FRM_GET_PO_CO call function 'W_FRM_GET_PO_CO' EXPORTING selectoption = wf10_selectoption i_show_progress_indicator = xflag i_create_selection_protocol = support_mode TABLES t_werks = werksrange t_abnnr = abnnrrange t_matnr = matnrrange t_matkl = matklrange t_vbak = xvbak t_vbuk = xvbuk t_vbfa = xvbfa t_vbup = xvbup t_vbap = xvbap t_vbep = xvbep t_ekko = xekko t_ekpo = xekpo t_eket = xeket t_ekpv = xekpv CHANGING t_marc_key = marc_key EXCEPTIONS no_orders = 1 selection_failure = 2 availability_check_failure = 3 scheduling_error = 4 others = 5.

W_FRM_PREPARE_CO_PO call function 'W_FRM_PREPARE_CO_PO' EXPORTING selection = wf10_selectoption i_show_progress_indicator = xflag t_marc_key = marc_key i_create_selection_protocol = support_mode TABLES t_werks = werksrange t_material = matnrrange t_matwerk = xmatwerk t_vbak = xvbak t_vbuk = xvbuk t_vbup = xvbup t_vbfa = xvbfa t_vbap = xvbap t_vbep = xvbep t_ekko = xekko t_ekpo = xekpo t_eket = xeket t_ekpv = xekpv t_gen_del = xportab_selection t_orders = xsumtab t_messagelog = messages_during_selection EXCEPTIONS nothing_to_do = 1 availability_check_failure = 2 no_quantities = 3 scheduling_error = 4 message_according_logs = 5 interface_error = 6 others = 7.

FLUSH_ENQUEUE call function 'FLUSH_ENQUEUE' EXCEPTIONS foreign_lock = 1 system_failure = 2 others = 3.

FLUSH_ENQUEUE call function 'FLUSH_ENQUEUE' EXCEPTIONS foreign_lock = 1 system_failure = 2 others = 3.

W_FRM_GET_PO_CO call function 'W_FRM_GET_PO_CO' EXPORTING selectoption = wf10_selectoption i_show_progress_indicator = xflag i_create_selection_protocol = support_mode TABLES t_werks = werksrange t_abnnr = abnnrrange t_matnr = matnrrange t_matkl = matklrange t_vbak = xvbak t_vbuk = xvbuk t_vbfa = xvbfa t_vbup = xvbup t_vbap = xvbap t_vbep = xvbep t_ekko = xekko t_ekpo = xekpo t_eket = xeket t_ekpv = xekpv CHANGING t_marc_key = marc_key EXCEPTIONS no_orders = 1 selection_failure = 2 availability_check_failure = 3 scheduling_error = 4 others = 5.

W_FRM_PREPARE_CO_PO call function 'W_FRM_PREPARE_CO_PO' EXPORTING selection = wf10_selectoption i_show_progress_indicator = xflag t_marc_key = marc_key i_create_selection_protocol = support_mode TABLES t_werks = werksrange t_material = matnrrange t_matwerk = xmatwerk t_vbak = xvbak t_vbuk = xvbuk t_vbup = xvbup t_vbfa = xvbfa t_vbap = xvbap t_vbep = xvbep t_ekko = xekko t_ekpo = xekpo t_eket = xeket t_ekpv = xekpv t_gen_del = xportab_selection t_orders = xsumtab t_messagelog = messages_during_selection EXCEPTIONS nothing_to_do = 1 availability_check_failure = 2 no_quantities = 3 scheduling_error = 4 message_according_logs = 5 interface_error = 6 others = 7.

ENQUEUE_EMEKKOE CALL FUNCTION 'ENQUEUE_EMEKKOE' EXPORTING MODE_EKKO = chare " E or S MODE_EKPO = chare MANDT = SY-MANDT EBELN = P_EBELN EBELP = P_EBELP * X_EBELN = ' ' * X_EBELP = ' ' _SCOPE = '2' _WAIT = ' ' _COLLECT = 'X' EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

FLUSH_ENQUEUE call function 'FLUSH_ENQUEUE' EXCEPTIONS foreign_lock = 1 system_failure = 2 others = 3.

ENQUEUE_EVVBAKE CALL FUNCTION 'ENQUEUE_EVVBAKE' EXPORTING MODE_VBAK = chare MANDT = SY-MANDT VBELN = xsumtab-blnra * X_VBELN = ' ' _SCOPE = '2' _WAIT = ' ' _COLLECT = 'X' EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

FLUSH_ENQUEUE call function 'FLUSH_ENQUEUE' EXCEPTIONS foreign_lock = 1 system_failure = 2 others = 3.



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