SAP Reports / Programs | Cross-Application Components | European Monetary Union: Euro | Local Currency Changeover(CA-EUR-CNV) SAP CA

EWUMMPRS_40 SAP ABAP Report - MVAR: re-calculation of prices in accounting segment







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


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


Text pool values


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


INCLUDES used within this REPORT EWUMMPRS_40

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 = 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'.



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