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

MECCP_DOCUMENT_FLOWF02 SAP ABAP INCLUDE - MECCPDOCUMENTFLOWF02







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

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:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = '20' text = text-017.

MMPUR_EKBZ_ARRAY_READ CALL FUNCTION 'MMPUR_EKBZ_ARRAY_READ' TABLES pti_ekbz_key = lt_ekbe_key pto_ekbz = lt_ekbz EXCEPTIONS no_records_requested = 0 OTHERS = 0.

MMPUR_EKBE_ARRAY_READ CALL FUNCTION 'MMPUR_EKBE_ARRAY_READ' EXPORTING pi_refresh_buffer = space TABLES pti_ekbe_key = lt_ekbe_key pto_ekbe = lt_ekbe EXCEPTIONS no_records_requested = 0 OTHERS = 0.

ME_EKES_SINGLE_READ_ITEM CALL FUNCTION 'ME_EKES_SINGLE_READ_ITEM' EXPORTING pi_ebeln = ls_ekbe_key-ebeln pi_ebelp = ls_ekbe_key-ebelp TABLES pto_ekes = lt_ekes EXCEPTIONS err_no_record_found = 0 OTHERS = 0.

MM_PURREQ_HISTORY_GET CALL FUNCTION 'MM_PURREQ_HISTORY_GET' EXPORTING pi_banfn = i_purreq pi_bnfpo = i_pritem TABLES pto_purreq_history = lt_prhistory pto_purreq_fcat = lt_prfcat EXCEPTIONS error_read = 0 error_fieldcat = 0 OTHERS = 0.

MMPUR_EKBZ_ARRAY_READ CALL FUNCTION 'MMPUR_EKBZ_ARRAY_READ' TABLES pti_ekbz_key = lt_ekbe_key pto_ekbz = lt_ekbz EXCEPTIONS no_records_requested = 0 OTHERS = 0.

MMPUR_EKBE_ARRAY_READ CALL FUNCTION 'MMPUR_EKBE_ARRAY_READ' EXPORTING pi_refresh_buffer = space TABLES pti_ekbe_key = lt_ekbe_key pto_ekbe = lt_ekbe EXCEPTIONS no_records_requested = 0 OTHERS = 0.

ME_EKES_SINGLE_READ_ITEM CALL FUNCTION 'ME_EKES_SINGLE_READ_ITEM' EXPORTING pi_ebeln = ls_ekbe_key-ebeln pi_ebelp = ls_ekbe_key-ebelp TABLES pto_ekes = lt_ekes EXCEPTIONS err_no_record_found = 0 OTHERS = 0.

RV_ORDER_FLOW_INFORMATION CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION' EXPORTING comwa = ls_vbco6 vorgaenger = space TABLES vbfa_tab = lt_vbfa EXCEPTIONS no_vbfa = 0 no_vbuk_found = 0 OTHERS = 0.

RV_ORDER_FLOW_INFORMATION CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION' EXPORTING comwa = ls_vbco6 TABLES vbfa_tab = lt_vbfa EXCEPTIONS no_vbfa = 0 no_vbuk_found = 0 OTHERS = 0.

RV_SHIPMENT_VIEW CALL FUNCTION 'RV_SHIPMENT_VIEW' EXPORTING shipment_number = -vbeln "#EC DOM_EQUAL IMPORTING f_vttkvb = l_vttkvb EXCEPTIONS not_found = 1 no_authority = 2 delivery_missing = 3 delivery_lock = 4 OTHERS = 5.

RV_DOCUMENT_STATUS_TEXTS CALL FUNCTION 'RV_DOCUMENT_STATUS_TEXTS' EXPORTING tvbst_wa = ls_tvbst IMPORTING text = l_shiptext.

SD_SCD_HISTORY CALL FUNCTION 'SD_SCD_HISTORY' EXPORTING i_vbeln = -vbeln i_posnr = -posnn i_vbtyp = -vbtyp_n TABLES e_vbfal = lt_vbfal e_status = lt_status.

SD_VBUK_ARRAY_READ CALL FUNCTION 'SD_VBUK_ARRAY_READ' TABLES it_vbuk_key = lt_vbuk_key et_vbuk = lt_vbuk EXCEPTIONS records_not_found = 0 records_not_requested = 0 OTHERS = 0.

MM_PURREQ_HISTORY_GET CALL FUNCTION 'MM_PURREQ_HISTORY_GET' EXPORTING pi_banfn = ls_eban-banfn pi_bnfpo = ls_eban-bnfpo TABLES pto_purreq_history = lt_prhistory pto_purreq_fcat = lt_prfcat EXCEPTIONS error_read = 0 error_fieldcat = 0 OTHERS = 0.

MMPUR_EKBZ_ARRAY_READ CALL FUNCTION 'MMPUR_EKBZ_ARRAY_READ' TABLES pti_ekbz_key = lt_ekbe_key pto_ekbz = lt_ekbz EXCEPTIONS no_records_requested = 0 OTHERS = 0.

MMPUR_EKBE_ARRAY_READ CALL FUNCTION 'MMPUR_EKBE_ARRAY_READ' EXPORTING pi_refresh_buffer = space TABLES pti_ekbe_key = lt_ekbe_key pto_ekbe = lt_ekbe EXCEPTIONS no_records_requested = 0 OTHERS = 0.

ME_EKES_SINGLE_READ_ITEM CALL FUNCTION 'ME_EKES_SINGLE_READ_ITEM' EXPORTING pi_ebeln = ls_ekbe_key-ebeln pi_ebelp = ls_ekbe_key-ebelp TABLES pto_ekes = lt_ekes EXCEPTIONS err_no_record_found = 0 OTHERS = 0.

RV_ORDER_FLOW_INFORMATION





CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION' EXPORTING comwa = ls_vbco6 vorgaenger = space TABLES vbfa_tab = lt_vbfa EXCEPTIONS no_vbfa = 0 no_vbuk_found = 0 OTHERS = 0.

RV_SHIPMENT_VIEW CALL FUNCTION 'RV_SHIPMENT_VIEW' EXPORTING shipment_number = -vbeln "#EC DOM_EQUAL IMPORTING f_vttkvb = l_vttkvb EXCEPTIONS not_found = 1 no_authority = 2 delivery_missing = 3 delivery_lock = 4 OTHERS = 5.

RV_DOCUMENT_STATUS_TEXTS CALL FUNCTION 'RV_DOCUMENT_STATUS_TEXTS' EXPORTING tvbst_wa = ls_tvbst IMPORTING text = l_shiptext.

SD_SCD_HISTORY CALL FUNCTION 'SD_SCD_HISTORY' EXPORTING i_vbeln = -vbeln i_posnr = -posnn i_vbtyp = -vbtyp_n TABLES e_vbfal = lt_vbfal e_status = lt_status.

SD_VBUK_ARRAY_READ CALL FUNCTION 'SD_VBUK_ARRAY_READ' TABLES it_vbuk_key = lt_vbuk_key et_vbuk = lt_vbuk EXCEPTIONS records_not_found = 0 records_not_requested = 0 OTHERS = 0.



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