SAP Reports / Programs

ROIHEW31 SAP ABAP Report - List of Stock Values: Balances of Excise duty







ROIHEW31 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report is linked to the standard Excise Duty Report ROIHEW30 (list of excise duty stock values: balance display)...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 ROIHEW31 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

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


Text pool values


Selection Text: YBWTAR = Valuation type
Selection Text: SKONTO = Stock account
Selection Text: SCHALT2 = Totals lines
Selection Text: SCHALT = Individual lines
Selection Text: SALDO3 = Select balance, previous year
Selection Text: SALDO2 = Select balance, prev. period
Selection Text: SALDO1 = Select balance, current period
Selection Text: NULLB = Materials with zero stock
Selection Text: NEGATIV = Negative stocks
Selection Text: MS_MATNR = Material
Selection Text: BWKEY = Valuation area
Selection Text: BUKRS = Company code
Selection Text: BERMON = Posting period
Title: List of Stock Values: Balances of Excise duty
Text Symbol: T03 = Select balance, previous year
Text Symbol: T02 = Select balance, previous period
Text Symbol: T01 = Select balance, current period
Text Symbol: 051 = Scope of list
Text Symbol: 049 = G/L account or company code
Text Symbol: 048 = No valuation types available
Text Symbol: 047 = Total value
Text Symbol: 046 = Total stock
Text Symbol: 045 = Stock account/accounts
Text Symbol: 044 = CoCode or G/L acct. no.
Text Symbol: 043 = valid material
Text Symbol: 042 = valid company code
Text Symbol: 041 = valid G/L account
Text Symbol: 040 = Please specify lower limit
Text Symbol: 039 = Not in table T001W
Text Symbol: 001 =
Text Symbol: 002 = Del.
Text Symbol: 003 = ValA
Text Symbol: 004 = Material
Text Symbol: 005 = Materials
Text Symbol: 006 = Stock account
Text Symbol: 007 = Variance
Text Symbol: 008 = Account in previous year not yet opened
Text Symbol: 009 = Bal. per





Text Symbol: 010 = +
Text Symbol: 011 = -
Text Symbol: 012 = CoCde Stock account ......................... Balance
Text Symbol: 013 = Selection of posting period not allowed
Text Symbol: 014 = Valuation types Total stock Un Total val. Curr.
Text Symbol: 015 = Total: company code
Text Symbol: 016 = For company code
Text Symbol: 017 = Description
Text Symbol: 018 = Only one criterion
Text Symbol: 019 = G/L account or company code
Text Symbol: 024 = Company name
Text Symbol: 025 = G/L account description
Text Symbol: 026 = Company code
Text Symbol: 027 = G/L account
Text Symbol: 032 = Please position cursor on a valid field
Text Symbol: 033 = Material does not exist
Text Symbol: 034 = Bal. per
Text Symbol: 035 = G/L account Materials Curr. Stock account Curr. Variance Curr.
Text Symbol: 038 = Plant


INCLUDES used within this REPORT ROIHEW31

INCLUDE OIH_EW30MUSR.
INCLUDE OIH_EW30MEND.
INCLUDE OIH_EW30MABC.
INCLUDE OIH_EW30MSQL.
INCLUDE OIH_EW30GRID.


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.

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.

FOR_ALL_SKC1A CALL FUNCTION 'FOR_ALL_SKC1A' EXPORTING XBUKRS = T001-BUKRS XSAKNR = P_KONTO TABLES XSKC1A = INTAB EXCEPTIONS KEY_INCOMPLETE = 01 NOT_AUTHORIZED = 02 NOT_FOUND = 03.

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