E - 20250409 SAP Note
E - 20250409 SAP Note
Symptom
You want to install SAP S/4HANA 1610 Inventory Management and need additional information how to adjust your customer
enhancements, modifications or own functionalities to the new, simplified Inventory Valuation data model.
Other Terms
S4TC, S/4 transition, S4HANA 1610, Migration, S4 HANA, MM-IM, Material Management, Inventory Valuation, Material
Valuation, MBEW, compatibility view
Tabl Table description DDL source of CDS Redirecte View to read the content of the o View to read ma
e view for redirect (pr d view in riginal database table (w/o redir ster data attribu
oxy view) ABAP ect to proxy view) tes only
Table 1: Affected tables with information about corresponding proxy objects, views for accessing original database table and views for reading master data
only
Solution
One impact of the simplified MM-IM Inventory Valuation data model does exist if there are customer appends on the
mentioned tables. The NetWeaver redirect capability requires that database table and assigned proxy view is compatible in
the structure: number of fields and their type. Thus, if there is an append on one of the above mentioned tables then the
assigned DDL source of the CDS proxy view must be made compatible.
Another impact of the simplified inventory valuation data model is a performance decrease of database read operations on the
above mentioned tables just because a data fetch on one of the mentioned tables is in S/4HANA slower than in SAP ERP 6.0
due to JOIN operations and on-the-fly aggregation. Hence performance critical customer coding may be adjusted to improve
performance.
If the pre-check identifies appends on an xBEW(H) tables, the corresponding CDS views, listed in the following table, needs
to be enhanced or replaced.
Table with customer appe DDL sources of CDS-views which needs to be enhanced or replaced in case of custom
nds er appends
EBEW MBV_EBEW
EBEWH MBV_EBEWH
MBEW MBV_MBEW
MBEWH MBV_MBEWH
MBEWH MBV_MBEWH_BASE
OBEW MBV_OBEW
OBEWH MBV_OBEWH
QBEW MBV_QBEW
QBEWH MBV_QBEWH
Table 2: Affected CDS views which needs to be enhanced or replaced in case of customer appends
If you upgrade from S/4HANA 1511 to S/4HANA 1610, you do not need the view extensions for the views listed in table 3
anymore. These view extensions should be deleted.
Table with customer appends DDL sources of CDS-views for which view extensions are not needed anymore
EBEW MBV_EBEW_EXT
MBV_EBEW_ML_ONLY
MBV_EBEW_BASIS
MBV_EBEW_CASE
EBEWH MBV_EBEWH_EXT
MBV_EBEWH_ASSOC
MBV_EBEWH_ML_ONLY
MBV_EBEWH_BASIS
MBV_EBEWH_CASE
MBEW MBV_MBEW_EXT
MBV_MBEW_ML_ONLY
MBV_MBEW_BASIS
MBV_MBEW_CASE
MBV_MBEW_MOTH_SEG
MBEWH MBV_MBEWH_EXT
MBV_MBEWH_ASSOC
MBV_MBEWH_ML_ONLY
MBV_MBEWH_BASIS
MBV_MBEWH_CASE
MBV_MBEWH_MOTH_SEG
OBEW MBV_OBEW_EXT
MBV_OBEW_ML_ONLY
MBV_OBEW_BASIS
MBV_OBEW_CASE
OBEWH MBV_OBEWH_EXT
MBV_OBEWH_ASSOC
MBV_OBEWH_ML_ONLY
MBV_OBEWH_BASIS
MBV_OBEWH_CASE
QBEW MBV_QBEW_EXT
MBV_QBEW_ML_ONLY
MBV_QBEW_BASIS
MBV_QBEW_CASE
QBEWH MBV_QBEWH_EXT
MBV_QBEWH_ASSOC
MBV_QBEWH_ML_ONLY
MBV_QBEWH_BASIS
MBV_QBEWH_CASE
Table 3: Affected CDS views for which view extensions are not needed anymore
DB read operations on the xBEW(H) tables have a performance decrease, since transactional data is retrieved from the
Universal Journal Entry Line Items table and the Material Ledger via database joins and aggregation. Consequently, it shall
be avoided to read transactional data when only master data is required. Therefore it is recommended to adjust the customer
coding in the following way:
If material master data as well transactional data is required then the SELECT <table> should be replaced by using a
data access method from class CL_MBV_SELECT_<table>. These classes provide access methods for single
(SINGLE_READ) as well as array (ARRAY_READ) read operations.
If only material master data is required then the SELECT <table> should be replaced by SELECT on view
V_<table>_MD. Alternatively, corresponding material master data read methods (READ_MASTER_DATA) in the class
CL_MBV_SELECT_<table> can be used. Also the data type declarations should be adjusted from TYPE <table> to
TYPE V_<table>_MD.
If only transactional fields are required then the SELECT <table> could be replaced by using the data access methods
ARRAY_READ_TRANSACTIONAL_DATA and SINGLE_READ_TRANSACTIONAL_DATA from class
CL_MBV_SELECT_<table>.
For performance critical coding parts these adjustments are strongly recommended. For non critical parts it is optional short
term but recommended on long term.
To identify such locations, it is required to make use of the where-used functionality of transaction SE11 and considering
other techniques like transaction CODE_SCANNER to find locations which SE11 cannot handle – like dynamic programming
or native SQL statements.
Consider SAP Note 28022, if there are issues with the where-used functionality in the customer system. In the where-used
dialog it is possible via the button "Search Range" to search specific for key words like SELECT, INSERT and so on.
Attributes
Key Value
Other Components Materials Management > Inventory Management > Basic Functions (MM-IM-GF)
Software Components
Software Component From To
2595627 Accessing table from SE16/SE16N shows different results to SAP HANA database
2713495 CO-PC-ACT S/4HANA: Performance issues in custom code when using the obsolete stock data model
2337383 MM-IM-GF- S4TWL - Material Valuation Data Model Simplification in S/4HANA 1610 and Higher
VAL
2217299 MM-IM-GF- Inventory Valuation (part of Materials Management - Inventory Management) : Change of data
VAL model in S/4HANA 1511