SAP Reports / Programs

EWUMPOHD SAP ABAP Report - Fill purchase order history







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


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


Text pool values


Title: Fill purchase order history


INCLUDES used within this REPORT EWUMPOHD

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:

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.



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