SAP Reports / Programs

RM06ENHI SAP ABAP Report - Analysis of Purchase Order Values







RM06ENHI is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Dieser Text ist bis auf den Einleitungssatz und kleinere Änderungen identisch mit dem Text Bestellwertanalyse (Technischer Name: ME12_006) in der SAP-Bibliothek unter Auswertungen im Einkauf im Release 4...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 RM06ENHI 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

ME81 - Analysis of Order Values


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 RM06ENHI. "Basic submit
SUBMIT RM06ENHI AND RETURN. "Return to original report after report execution complete
SUBMIT RM06ENHI 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: %_END050 = ?...(%_END050)
Selection Text: %_END043 = ?...(%_END043)
Selection Text: %_END035 = ?...(%_END035)
Selection Text: %_END031 = ?...(%_END031)
Selection Text: %_END025 = ?...(%_END025)
Selection Text: %_END019 = ?...(%_END019)
Selection Text: %_END013 = ?...(%_END013)
Selection Text: %_END007 = ?...(%_END007)
Selection Text: %_D12089 = ?...(%_D12089)
Selection Text: %_D11083 = ?...(%_D11083)
Selection Text: %_D02087 = ?...(%_D02087)
Selection Text: %_D01081 = ?...(%_D01081)
Selection Text: %_D00079 = ?...(%_D00079)
Selection Text: %_C12076 = ?...(%_C12076)
Selection Text: %_C11070 = ?...(%_C11070)
Selection Text: %_C02074 = ?...(%_C02074)
Selection Text: %_C01068 = ?...(%_C01068)
Selection Text: %_C00066 = ?...(%_C00066)
Selection Text: %_BEG086 = ?...(%_BEG086)
Selection Text: %_BEG080 = ?...(%_BEG080)
Selection Text: %_BEG073 = ?...(%_BEG073)
Selection Text: %_BEG067 = ?...(%_BEG067)
Selection Text: %_BEG061 = ?...(%_BEG061)
Selection Text: %_BEG056 = ?...(%_BEG056)
Selection Text: %_BEG051 = ?...(%_BEG051)
Selection Text: %_BEG044 = ?...(%_BEG044)
Selection Text: %_BEG037 = ?...(%_BEG037)
Selection Text: %_BEG032 = ?...(%_BEG032)
Selection Text: %_BEG026 = ?...(%_BEG026)
Selection Text: %_BEG020 = ?...(%_BEG020)
Selection Text: %_BEG014 = ?...(%_BEG014)
Selection Text: %_BEG008 = ?...(%_BEG008)
Selection Text: %_BEG002 = ?...(%_BEG002)
Selection Text: %_B02045 = ?...(%_B02045)
Selection Text: %_B01038 = ?...(%_B01038)
Selection Text: %_B00036 = ?...(%_B00036)
Selection Text: %_A15064 = ?...(%_A15064)
Selection Text: %_END055 = ?...(%_END055)





Selection Text: VG_DAT2V = ?...(VG_DAT2V)
Selection Text: VG_DAT2B = ?...(VG_DAT2B)
Selection Text: VG_DAT1V = ?...(VG_DAT1V)
Selection Text: VG_DAT1B = ?...(VG_DAT1B)
Selection Text: SO_WERKS = ?...(SO_WERKS)
Selection Text: SO_MATNR = ?...(SO_MATNR)
Selection Text: SO_MATKL = ?...(SO_MATKL)
Selection Text: SO_LIFNR = ?...(SO_LIFNR)
Selection Text: SO_EKORG = ?...(SO_EKORG)
Selection Text: SO_EKGRP = ?...(SO_EKGRP)
Selection Text: HF_NETW4 = ?...(HF_NETW4)
Selection Text: HF_NETW3 = ?...(HF_NETW3)
Selection Text: HF_NETW2 = ?...(HF_NETW2)
Selection Text: HF_NETW1 = ?...(HF_NETW1)
Selection Text: AU_NETWR = ?...(AU_NETWR)
Selection Text: AU_DWPOS = ?...(AU_DWPOS)
Selection Text: AU_DWBES = ?...(AU_DWBES)
Selection Text: AU_AZPOS = ?...(AU_AZPOS)
Selection Text: AU_AZBES = ?...(AU_AZBES)
Selection Text: AB_NETWR = ?...(AB_NETWR)
Selection Text: AB_DWPOS = ?...(AB_DWPOS)
Selection Text: AB_DWBES = ?...(AB_DWBES)
Selection Text: AB_AZPOS = ?...(AB_AZPOS)
Selection Text: AB_AZBES = ?...(AB_AZBES)
Selection Text: AB_ABCPB = ?...(AB_ABCPB)
Selection Text: AB_ABCPA = ?...(AB_ABCPA)
Selection Text: %_POS062 = ?...(%_POS062)
Selection Text: %_POS057 = ?...(%_POS057)
Selection Text: %_POS052 = ?...(%_POS052)
Selection Text: %_POS047 = ?...(%_POS047)
Selection Text: %_POS040 = ?...(%_POS040)
Selection Text: %_END091 = ?...(%_END091)
Selection Text: %_END085 = ?...(%_END085)
Selection Text: %_END078 = ?...(%_END078)
Selection Text: %_END072 = ?...(%_END072)
Selection Text: %_END065 = ?...(%_END065)
Selection Text: %_END060 = ?...(%_END060)
Selection Text: P_INTER = Interactive Analysis
Selection Text: P_TEXTE = With Descriptions





Selection Text: P_WAERS = Currency for Analysis
Selection Text: S_BEDAT = Document Date
Selection Text: S_BSART = Document Type
Selection Text: S_EBELN = Purchasing Document
Selection Text: S_EKGRP = Purchasing Group
Selection Text: S_EKORG = Purchasing Organization
Selection Text: S_KNTTP = Account Assignment Category
Selection Text: S_LIFNR = Vendor
Selection Text: S_MATKL = Material Group
Selection Text: S_MATNR = Material
Selection Text: S_PSTYP = Item Category
Selection Text: S_WERKS = Plant
Selection Text: %_A00001 = ?...(%_A00001)
Selection Text: %_A15029 = ?...(%_A15029)
Selection Text: %_A14059 = ?...(%_A14059)
Selection Text: %_A14023 = ?...(%_A14023)
Selection Text: %_A13054 = ?...(%_A13054)
Selection Text: %_A13017 = ?...(%_A13017)
Selection Text: %_A12049 = ?...(%_A12049)
Selection Text: %_A12011 = ?...(%_A12011)
Selection Text: %_A11042 = ?...(%_A11042)
Selection Text: %_A11005 = ?...(%_A11005)
Selection Text: %_A06033 = ?...(%_A06033)
Selection Text: %_A05027 = ?...(%_A05027)
Selection Text: %_A04021 = ?...(%_A04021)
Selection Text: %_A03015 = ?...(%_A03015)
Selection Text: %_A02009 = ?...(%_A02009)
Selection Text: %_A01003 = ?...(%_A01003)
Title: Analysis of Purchase Order Values
Text Symbol: A11 = Net Order Value
Text Symbol: A06 = Material
Text Symbol: A05 = Mat. Group
Text Symbol: A04 = Plant
Text Symbol: A03 = Vendor
Text Symbol: A02 = Purch. Group
Text Symbol: A01 = Purch. Organization
Text Symbol: A00 = Sort and Output Sequence --------------------------------------------------
Text Symbol: 022 = Period 2
Text Symbol: 021 = Period 1



Text Symbol: 020 = |%_shr.|Cum.% shr.|ABC|
Text Symbol: 015 = No.POs|
Text Symbol: 014 = No.Itm|
Text Symbol: 013 = Average_value/PO_|
Text Symbol: 012 = Average_val./item|
Text Symbol: 011 = _Net_order_value_|
Text Symbol: 006 = Material
Text Symbol: 005 = Mat. Group
Text Symbol: 004 = Plant ----
Text Symbol: 003 = Vendor
Text Symbol: 002 = Purch. Group
Text Symbol: 001 = Purch. Org.
Text Symbol: UEB = ** Net Val. Too Large **
Text Symbol: T04 = Order Value Analysis: Comparison of Periods
Text Symbol: T03 = Order Value Analysis: Frequencies
Text Symbol: T02 = Order Value Analysis: ABC Analysis
Text Symbol: T01 = Order Value Analysis: Totals
Text Symbol: D12 = Net Value 4 to
Text Symbol: D11 = Net Value 2 To
Text Symbol: D02 = Net Value 3 to
Text Symbol: D01 = Net Value 1 to
Text Symbol: D00 = Frequency Analysis --------------------------------------------------------
Text Symbol: C12 = Order Date 2 to
Text Symbol: C11 = Order Date 1 to
Text Symbol: C02 = Order Date 2 from
Text Symbol: C01 = Order Date 1 from
Text Symbol: C00 = Analysis with Comparison Periods (PO Date) -----------------------------
Text Symbol: B02 = B Percentage
Text Symbol: B01 = A Percentage
Text Symbol: B00 = ABC Analysis Acc. to Sort Field 1 -----------------------------------------
Text Symbol: A15 = No. of Purch. Orders
Text Symbol: A14 = Number of Items
Text Symbol: A13 = Average Value per PO
Text Symbol: A12 = Average Value per Item


INCLUDES used within this REPORT RM06ENHI

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:

ME_ITEM_CATEGORY_SELOPT_INPUT CALL FUNCTION 'ME_ITEM_CATEGORY_SELOPT_INPUT' TABLES EXT_PSTYP = S_PSTYP INT_PSTYP = R_PSTYP.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKKO-BEDAT FOREIGN_AMOUNT = NETWR "459575 FOREIGN_CURRENCY = EKKO-WAERS LOCAL_CURRENCY = T001-WAERS RATE = EKKO-WKURS IMPORTING LOCAL_AMOUNT = NETWR.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING DATE = EKKO-BEDAT FOREIGN_CURRENCY = P_WAERS LOCAL_AMOUNT = NETWR LOCAL_CURRENCY = T001-WAERS IMPORTING FOREIGN_AMOUNT = NETWR.

MATERIAL_LESEN CALL FUNCTION 'MATERIAL_LESEN' EXPORTING SCHLUESSEL = MTCOM IMPORTING MATDATEN = MTEXT TABLES SEQMAT01 = TDUMMY.

HELP_VALUES_EPSTP CALL FUNCTION 'HELP_VALUES_EPSTP' EXPORTING PROGRAM = SY-CPROG DYNNR = SY-DYNNR FIELDNAME = 'S_PSTYP-LOW' * BSART = * BSTYP = IMPORTING EPSTP = S_PSTYP-LOW EXCEPTIONS OTHERS = 1.

HELP_VALUES_EPSTP CALL FUNCTION 'HELP_VALUES_EPSTP' EXPORTING program = sy-cprog dynnr = sy-dynnr fieldname = 'S_PSTYP-HIGH' * BSART = * BSTYP = IMPORTING epstp = s_pstyp-high EXCEPTIONS OTHERS = 1.



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