SAP Reports / Programs | Tariffs, Duties and Permits | Industry Solution Oil | Tariffs, Duties and Permits(IS-OIL-DS-TDP) SAP IS

ROIHEW22 SAP ABAP Report - Excise Duty Inventory update report (Euro Postprocessing)







ROIHEW22 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report reconciles the converted excise duty value for the excise duty-paid materials with the calculated excise duty value...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 ROIHEW22 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

O4KI - Excise Duty Valuation record 3/3


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


Text pool values


Title: Excise Duty Inventory update report (Euro Postprocessing)
Text Symbol: 001 = Some materials are blocked.


INCLUDES used within this REPORT ROIHEW22

INCLUDE ROIH1L04_TOP.


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_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.

ENQUEUE_EMMBEWE CALL FUNCTION 'ENQUEUE_EMMBEWE' "MBEW exclusiv for all Materials EXCEPTIONS FOREIGN_LOCK = 2 SYSTEM_FAILURE = 3.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING LEVEL = '1' MSGTY = SY-MSGTY LANGU = SY-LANGU MSGID = SY-MSGID MSGNO = SY-MSGNO MSGV1 = SY-MSGV1 MSGV2 = SY-MSGV2 MSGV3 = SY-MSGV3 MSGV4 = SY-MSGV4 EXCEPTIONS OTHERS = 1.

MARA_SINGLE_READ *KH CALL FUNCTION 'MARA_SINGLE_READ' *KH EXPORTING *KH MATNR = OIH_MBEW-MATNR *KH IMPORTING *KH WMARA = MARA *KH EXCEPTIONS *KH LOCK_ON_MATERIAL = 1 *KH LOCK_SYSTEM_ERROR = 2 *KH WRONG_CALL = 3 *KH NOT_FOUND = 4 *KH OTHERS = 5.

MB_UNIT_CONVERSION CALL FUNCTION 'MB_UNIT_CONVERSION' EXPORTING MEINS = MARA-MEINS ERFME = OIH_EDVAL-QTYUT MATNR = MARA-MATNR MENGE = OIH_MBEW-LBKUM ERFMG = *MBEW-LBKUM UMREZ = DM07M-BPUMZ UMREN = DM07M-BPUMN IMPORTING O_MENGE = OIH_MBEW-LBKUM O_ERFMG = *MBEW-LBKUM O_UMREZ = DM07M-BPUMZ O_UMREN = DM07M-BPUMN EXCEPTIONS CONVERSION_NOT_FOUND = 4.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING LEVEL = '1' MSGTY = SY-MSGTY LANGU = SY-LANGU MSGID = SY-MSGID MSGNO = SY-MSGNO MSGV1 = SY-MSGV1 MSGV2 = SY-MSGV2 MSGV3 = SY-MSGV3 MSGV4 = SY-MSGV4 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 MSGV1 = SY-MSGV1 MSGV2 = SY-MSGV2 MSGV3 = SY-MSGV3 MSGV4 = SY-MSGV4 EXCEPTIONS OTHERS = 1.

IS_OIH01_SINGLE_READ CALL FUNCTION 'IS_OIH01_SINGLE_READ' EXPORTING I_BUKRS = XBUKRS-BUKRS I_WERKS = *OIH01-WERKS I_TAXGRP = *OIH01-TAXGRP I_HANTYP = *OIH01-HANTYP I_DATUV = *OIH01-DATUV I_BYPASSING_BUFFER = 'B' "B=only fr. buffer (prefetch once)

IS_OIH01_SINGLE_READ CALL FUNCTION 'IS_OIH01_SINGLE_READ' EXPORTING I_BUKRS = XBUKRS-BUKRS I_WERKS = '****' I_TAXGRP = *OIH01-TAXGRP I_HANTYP = *OIH01-HANTYP I_DATUV = *OIH01-DATUV I_BYPASSING_BUFFER = 'B' "B=only fr.buffer(prefetch above)

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 = XBUKRS 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_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.



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