EWUMMPRS_40 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report for calculating the moving average price from stock value and stock quantity in the valuation segment for Materials Management...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 EWUMMPRS_40 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: MVAR: re-calculation of prices in accounting segment
Text Symbol: 010 = Price update current period
Text Symbol: 011 = Price updte prev.period
Text Symbol: 012 = Price update prev.yr
Text Symbol: 020 = Price update
Text Symbol: 021 = Error on price update
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 = PROGNAME 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 = PAKET EXCEPTIONS OTHERS = 1.
FI_EWU_CONVERTED_COMPANYCODES CALL FUNCTION 'FI_EWU_CONVERTED_COMPANYCODES' EXPORTING P_PAKET = PAKET P_10 = 'X' P_W2 = ' ' P_W3 = ' ' P_LW = ' ' P_11 = ' ' TABLES T_BUKRS = BUKRS EXCEPTIONS OTHERS = 1.
EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING LEVEL = '1' MSGTY = SY-MSGTY LANGU = SY-LANGU MSGID = SY-MSGID MSGNO = SY-MSGNO * newobj = MSGV1 = SY-MSGV1 MSGV2 = SY-MSGV2 MSGV3 = SY-MSGV3 MSGV4 = SY-MSGV4 EXCEPTIONS OTHERS = 1.
EWU_STATUS_UPDATE CALL FUNCTION 'EWU_STATUS_UPDATE' EXPORTING STATUS = 'ERR' 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.
EWU_STATUS_UPDATE CALL FUNCTION 'EWU_STATUS_UPDATE' EXPORTING STATUS = 'OK' 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.
EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING LEVEL = '1' MSGTY = SY-MSGTY LANGU = SY-LANGU MSGID = SY-MSGID MSGNO = SY-MSGNO * newobj = MSGV1 = SY-MSGV1 MSGV2 = SY-MSGV2 MSGV3 = SY-MSGV3 MSGV4 = SY-MSGV4 EXCEPTIONS OTHERS = 1.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
EWUMMPRS_40 - MVAR: re-calculation of prices in accounting segment EWUMMPRS_40 - MVAR: re-calculation of prices in accounting segment EWUMMPOH - Adjustment of Purchase Order History EWUMMPOH - Adjustment of Purchase Order History EWUMMPOF - PO History Differences <=> Open Items in FI EWUMMPOF - PO History Differences <=> Open Items in FI