EWUMPOHD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for In purchase orders in which the document currency is identical to the local currency, the 'Document currency' and 'Amount' fields are not filled upon goods movements...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter EWUMPOHD into the relevant SAP transactions such as SE38 or SE80
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.
Title: Fill purchase order history
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
EWU_STATUS_INITIALIZE CALL FUNCTION 'EWU_STATUS_INITIALIZE' EXPORTING programm = g_program EXCEPTIONS no_program_entry = 1 wrong_phase = 2 precessor_not_ok = 3 program_already_started = 4 program_already_finished = 5 no_paket_entry = 6 foreign_lock = 7 system_failure = 8 active_paket_not_found = 9 OTHERS = 10.
EWU_PAKET_GET CALL FUNCTION 'EWU_PAKET_GET' CHANGING paket = g_paket EXCEPTIONS OTHERS = 1.
EWU_AUTHORITY_CHECK CALL FUNCTION 'EWU_AUTHORITY_CHECK' EXPORTING " > 31I E_PAKET = G_PAKET " > 31I EXCEPTIONS no_permission = 1 OTHERS = 2.
CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = syst-datum foreign_currency = l_document_currency local_amount = i_dmbtr local_currency = l_local_currency IMPORTING foreign_amount = c_wrbtr EXCEPTIONS no_rate_found = 1 OTHERS = 2.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = ls_messages-level msgty = ls_messages-msgty langu = ls_messages-langu msgid = ls_messages-msgid msgno = ls_messages-msgno msgv1 = ls_messages-msgv1 msgv2 = ls_messages-msgv2 msgv3 = ls_messages-msgv3 msgv4 = ls_messages-msgv4 EXCEPTIONS OTHERS = 1.
EWU_STATUS_UPDATE CALL FUNCTION 'EWU_STATUS_UPDATE' EXPORTING status = g_status EXCEPTIONS no_paket_entry = 1 foreign_lock = 2 system_failure = 3 no_program_entry = 4 wrong_call = 5 active_paket_not_found = 6 update_denied = 7 OTHERS = 8.
EWU_PROTOCOL_WRITE CALL FUNCTION 'EWU_PROTOCOL_WRITE' EXPORTING clear_old_prot = ' ' EXCEPTIONS error_in_function_call = 1 table_empty = 2 sql_error = 3 wrong_call = 4 OTHERS = 5.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
EWUMPOHD - Fill purchase order history EWUMPOHD - Fill purchase order history EWUMMSTI - Standard include EWUMM program EWUMMRTL_40 - EMU Reconciliation Report for Sales Values EWUMMRTL_40 - EMU Reconciliation Report for Sales Values EWUMMPRS_40 - MVAR: re-calculation of prices in accounting segment