Extracting MM Purchasing Data Into SAP BW
Extracting MM Purchasing Data Into SAP BW
from BW 2.0B
BUSINESS INFORMATION WAREHOUSE 2.0B
Version 1
Copyright
Copyright 2001 SAP Markets Europe GmbH. All rights reserved.
Contents
1
INTRODUCTION...........................................................................................................................................3
EXTRACTION LOG....................................................................................................................................21
7
CHANGING OVER FROM LIS DATASOURCES TO 'NEW' PURCHASING DATASOURCES OF
THE LOGISTICS EXTRACT STRUCTURE CUSTOMIZING COCKPIT.................................................26
Extraktion Bewegungsdaten MM
1 Introduction
This document contains information about extractors and DataSources for extracting
Purchasing transaction data that are delivered for the first time with release BW 2.0B
and PI 2000.1 or PI-A 2000.1 (valid from R/3-Release 4.0B ). It serves as a
supplement to standard SAP documentation.
The information contained in this document is valid at the time of publishing. It is not
exhaustive and may need updating for further releases
The target group of the paper is primarily consultants, as well as customer
employees who are active in SAP BW during the BW project, or decision makers who
are assessing the projects feasibility/future possibilities.
Knowledge of the operational processes in MM (Purchasing), as well as knowledge
of the Business Information Warehouse (SAP BW) area, is an important, but not
absolutely necessary, prerequisite for a full understanding of the following
procedures.
The document contains an overview of all the necessary steps for activating and
carrying out successful data extraction.
It also examines, in detail, the conception and technical background of this
extraction, so that you can gain an initial overview of the possibilities, and also the
limitations, of extracting purchasing transaction data.
The application 02 (Purchasing) exists for the extractors concerned.
The Business Content in BW is still grouped together under the application
component MM_PUR.
The following document relates exclusively to the extractors and DataSources for
these applications.
You can find general information, that is, as opposed to detailed application-based
information, in the document Extraction of Logistics Transaction Data (SAPNet ->
Alias BW -> Documentation -> Documentation Enhancements).
You can find many of the functions described here in BWs OLTP Customizing, which
you can get to via the context menu for a source system in the BW source system
tree (a remote login is then carried out in the OLTP system). In the OLTP system you
can also use the transaction SBIW.
For the PlugIn PI 2000.1 or. PI-A 2000.1, and for the PlugIn PI 2000.2, the composite
note 340038 gives an overview of all the notes (for the R/3 core, the PlugIn and BW
Content), that are relevant for extracting logistics transaction data, based on the
customizing cockpit for the logistics extract structure.
A corresponding follow-up composite note, that also contains all necessary
corrections for the PlugIn, for R/3 and for BW Content, is planned for every future
PlugIn.
2001 SAP Markets Europe GmbH
Extraktion Bewegungsdaten MM
To use the new extraction method, you must make changes in the R/3 system. These
were delivered with the R/3 Support Packages.
For the extractors described here, this took place with the corrections described in
note 202246. This is an absolute prerequisite for error-free use of the PlugIns for the
extraction of purchasing transaction data.
Since these corrections concern changes to the R/3 standard system, and therefore
cannot be delivered with a PlugIn, when you use the PlugIn, you must check whether
these notes have already been installed on your computer with the R/3 Support
Package. If this is not the case, you must install these notes manually.
Extraktion Bewegungsdaten MM
LIS-Comm.structure
Application:
Documents
(Create,
Change,
Delete)
Online
New extraction
technology
FuGroup
MCEX
Extract
Extract
structure
structure
e.g.
MC02M_0ITM
Central
Deltamgmt.
DataSource
DataSource
e.g. 2LIS_02_ITM
V3-Posting
Classic
LIS:
Updating
Info
structures
e.g: S012
DataSource
DataSource
e.g.
2LIS_02_S012
In place of the transfers used previously, InfoPackages with the update mode delta
initialization are used to transfer existing or archived documents. In OLTP the
InfoPackages retrieve data from the set up tables, which are assigned to the extract
structures. You fill these tables using special set up transactions in OLTP.
Details about these functions are described later in this document.
Extraktion Bewegungsdaten MM
LIS-Comm.structure
Statistical
setup
programm
for historical
documents
Batch
New extraction
technology
FuGroup
MCEX
Extract
Extract
structure
structure
e.g.
MC02M_0ITM
Setup
table
DataSource
DataSource
e.g. 2LIS_02_ITM
e.g.
MC02M_0ITMSETUP
For each extract structure, one set up table with the name of the extract structure and
SETUP as a suffix, exists. Example: Extract structure MC02M_01TM, setup table
MC02M_01TMSETUP.
Since you are using cluster tables, it does not make sense to display the entries with
transaction SE16. You cannot determine the number of entries from the number of
data records.
However, you can display data using transaction RSA3, since this transaction uses
data from the set up tables.
2.1
The extract structures are a fundamental part of the new extraction concept. These
are R/3-DDIC structures that contain all fields whose data contents are transferred
from the transaction data via the DataSources to the BW when you activate the
relevant extraction.
The extract structures for application 02 are structured in such a way that most of the
fields within them are filled directly from the field contents of the LIS communication
structures. Some additional fields are determined in the extraction modules.
Every LIS communication structure that is used to fill an extract structure is assigned
to an include structure in the extract structure. When you are adding extra fields,
whose field names are identical in several LIS communication structures intended for
use with one extractor, it is possible to uniquely assign the LIS communication
structures from which the data contents are transferred. However, this does not mean
that you can include a field with the same name several times in the same extract
structure.
This extract structure concept allows you to include other fields without modification
as well as user-defined fields, which were included using append technology in the
2001 SAP Markets Europe GmbH
Extraktion Bewegungsdaten MM
Extract
structure
MC02M_0HDR
Com.
structure
MCEKKO
02
DataSource
Name
MA, MD,
ME, MF
2LIS_02_HDR
Purchase order
document header
MA, MB,
MC, MD,
ME, MF
2LIS_02_ITM
Purchase order
document
MA, MB,
MC, MD,
2LIS_02_SCL
Purchase order
document schedule
line
MC02M_1ITM
MC02M_2ITM
MC02M_0SCL
MCEKKO
MCEKPO
MCEKET
Event
MC02M_1HDR
MC02M_0ITM
MCEKKO
MCEKPO
02
Include
MC02M_1SCL
MC02M_1SCL
MC02M_1SCL
Extraktion Bewegungsdaten MM
The interaction of the LIS communication structures with the extract structures is
controlled, amongst other things, by the table TMCEXCFS, in which information
about the fields that you have selected, or the fields that are not available for
selection, is contained for all LIS communication structures.
Table TMCEXCFZ records all additional fields that the customer has chosen.
The extract structures are assigned to their DataSources using table TMCEXACT. In
addition, table TMCEXACT records the activation status for the extraction.
The DataSource is generated on the basis of these tables (for example, according to
the enhancement of an extract structure).
Extraktion Bewegungsdaten MM
The first step that you have to carry out to activate the process of extracting
transaction data is to transfer into the OLTP, those DataSources that have been
delivered as D-version DataSources. This generates the A-versions of the
DataSources.
To carry out this step, choose the menu path Business Content DataSources ->
Transfer Business Content DataSources (transaction RSA5) in the OLTP customizing
of the Business Information Warehouse.
You use the compare function in this transaction, to check whether or not the active
version has been generated already, and whether there are any variations between
the D-version and the A-version.
Before you can transfer the DataSources from the D-version, you need to first
transfer the application component hierarchy from the D-version into the A-version.
3.2
You process the extract structures in the Logistics Extract Structures Customizing
Cockpit (transaction LBWE, or under the menu path Settings for Application-Specific
DataSources -> Logistics -> Managing Extract Structures in the OLTP Customizing
for the Business Information Warehouse)
The extract structures you find here all have a traffic light assigned to them. The color
of the traffic light indicates the status of the extractor and the DataSource:
Green:
DataSource has been generated, and the extraction activated
Yellow:
DataSource has been generated, the extraction
deactivated.
(Delivered status of the purchasing extractors and
DataSources)
Red:Extract structure has been changed, but the DataSource has not yet been
generated (if a DataSource in this status can not be generated, step 3.1 (transferring
Business Content DataSources) may not yet have been carried out.
You use 'Structure Maintenance' to extend extract structures (see section 6
Enhancing/Changing Extract Structures)
After you have made changes to an extract structure, you have to use the
DataSource Maintenance to regenerate the DataSource belonging to it. The next
section details the maintenance process.
The next step is to activate the extraction using 'Update Activation'.
Extraktion Bewegungsdaten MM
If you change the update activation of an extract structure or the transport of these
changes to another system, all the affected users have to log out and then log on to
the system again in order to check that the activation has been applied to every
transaction.
3.3
To work with the extract structures outlined above, you must activate the process
keys. You do this using transaction MCB_. This transaction is found in the OLTP IMG
for the BW (transaction SBIW) in the connected R/3 source system.
Here you must choose the relevant fields. 'Standard' and 'Consumer Products'
are for R/3 standard system customers, whereas 'Retail' is only for customers
with R/3 Retail. You can display the process key values (R/3 field BWVORG, BW
field 0PROCESSKEY) with the transaction MCB0 (the basic customizing table
and text table are: TMCLVBW and TMCLVBWT).
You should also refer to note 353042. This is integrated into the composite note
352762 (Purchasing Structures and Setup).
3.3.1 Process Keys
The extractors presented here represent, in principle, structures that collect
document-specific information from the logistics application Purchasing and transfer
it to the SAP BW.
Many key figures are yielded from the application. These must be transferred to the
SAP BW with the help of the extractors. SAP ensures that document information is
interpreted in advance with the help of a 'process key' so that key figures, which
describe and measure the particular processes, can be more easily derived for
customers.
In the 2LIS_02_SCL example, this means that the rows to be transferred only contain
transfer quantities and value fields. The actual key figure is hidden behind the
process key. There are generic key figures (transfer quantities and transfer values)
that have a significance when combined with the process keys.
The following table shows several rows that are to be transferred, and various
process keys:
Process
key
Quantity (for
example in Basis
unit of measure
...
001
007
002
...
2001 SAP Markets Europe GmbH
...
10
20
5
....
Value of
transaction
(for example,
purchase
price)
....
30 USD
240 DEM
15 DEM
....
Characteris Other
tics (for
characteristics...
example,
material)
Chocolate
SHIRT
PANTS
...
...
...
...
...
10
Extraktion Bewegungsdaten MM
The first row would mean: Process key:001 -> Purchase order with external
vendor, material/article CHOCOLATE quantity 10
of the purchasing price 30USD for the particular
characteristic.
The data is transferred document-specific and by row, that is by document schedule
line number, so that the document hierarchy (header, position, schedule line) is flat.
Since process keys must, during the update, be resolved into corresponding key
figures at the time of query creation at the latest, you must have a precise knowledge
of the process keys for the creation of customer-specific InfoCube updates or the
creation of the query.
Example:
Update routine for the key figure 'Order Volume Quantity (External
Vendor)' in
InfoCube (pseudo-coding):
IF COMM_STRUCTURE-PROCESSKEY = `001`.
RESULT = COMM_STRUCTURE-TRANS_AMOUNT.
ELSE.
CLEAR RESULT. no update of key-figure
ENDIF.
The process keys are always assigned to their logistics application (for example: 02 =
Purchasing) and application component ( = industry or CORE component). As most
process keys are industry-independent, in this case an assignment to the appropriate
Core component (MM) was made.
3.3.2 Process Key Determination
To determine the above-mentioned determination of a process key, a function group
has been created within extractor development. Its function modules enhance LIS
communication structures.
The comnmunication structures have been enhanced with corresponding fields that
are necessary for the required update of DataSources. Example: Purchasing
document item MCEKPO: Append structure MCEKPOBWAP.
Technical information:
Package:
MCBW
Function group:
MCRS
Function Modules:
LOG_CHECK_ENRICHMENT
LOG_CHECK_PROCESSKEY
LOG_CONTENT_PURCHASING
11
Extraktion Bewegungsdaten MM
Process key determination is active when an industry has been chosen using
transaction MCB_.
The following logic is used for determining the process key:
There are three types of purchase order categories:
1. Purchase order category 'External transaction order' (1)
In communications ctructure MCEKKO, the vendor is entered, but not the
plant.
2. Purchase order category 'Internal company code order' (2)
In communications structure MCEKKO, the plant is entered and the company
code of the supplying plant is the same as the company code of the ordering
plant.
3. Purchase order category 'Cross company code order' (3)
In communications structure MCEKKO, the plant is entered and the company
code of the supplying plant is not the same as the company code of the
ordering plant.
The process keys are assigned by purchase transaction (event) and purchase order
category.
Event MA (purchase order) and purchase order category 1 yield process key 001.
Event MA (purchase order) and purchase order category 2 yield process key 011.
Event MA (purchase order) and purchase order category 3 yield process key 021.
Event MB (goods receipt) and purchase order category 1 yield process key 002.
Event MB (goods receipt) and purchase order category 2 yield process key 012.
Event MB (goods receipt) and purchase order category 3 yield process key 022.
Event MC (invoice receipt) and purchase order category 1 yield process key 003.
Event MC (invoice receipt) and purchase order category 3 yield process key 023.
Event MD (scheduling agreement) and purchase order category 1 yield process key
004.
Event MD (scheduling agreement) and purchase order category 2 yield process key
014.
Event MD (scheduling agreement) and purchase order category 3 yield process key
024.
Event ME (contracts) and purchase order category 1 yield process key 008.
Event ME (contracts) and purchase order category 2 yield process key 028.
Event ME (contracts) and purchase order category 3 yield process key 028.
For event MF (request/quotation), the status is merely queried in the communication
structure and for status A (quotation) the process key 009 is set. For requests, the
process key 040 is set.
12
Extraktion Bewegungsdaten MM
The process keys for returns orders are also dependent on the event and purchase
order category. However, this does not check whether an actual returns item is being
dealt with. The following process keys are defined for returns:
Event MA (purchase order) and purchase order category 1 yield process key 005.
Event MA (purchase order) and purchase order category 2 yield process key 015.
Event MA (purchase order) and purchase order category 3 yield process key 025.
Event MB (goods receipt) and purchase order category 1 yield process key 006.
Event MB (goods receipt) and purchase order category 2 yield process key 016.
Event MB (goods receipt) and purchase order category 3 yield process key 026.
Event MC (invoice receipt) and purchase order category 1 yield process key 007.
Event MC (invoice receipt) and purchase order category 3 yield process key 027.
Event MD (scheduling agreement) and purchase order category 1 yield process key
041.
Event MD (scheduling agreement) and purchase order category 2 yield process key
051.
Event MD (scheduling agreement) and purchase order category 3 yield process key
061.
For all other events that we do not support, such as ML and MV, the process key 000
is set for purchase order category 1, 010 for category 2, and 020 for category 3.
For more details please see the function module LOG_CONTENT_PURCHASING.
3.4
DataSource Maintenance
13
Extraktion Bewegungsdaten MM
inversion of the plus/minus sign is only carried out for fields for which the flag 'Field is
inverted if cancelled'.
The cumulative update allows you to remove the old quantity from the BW cube, and
add the new quantity.
With document changes, you can change not only quantities or values, but also
characteristics (for example purchasing group 001 to 002). Therefore it is important
that an old and new data record be transferred to the BW with each delta upload.
This makes it possible to correctly update the data in cubes that take the changed
fields as key figures (-5 for purchasing group 001 and +4 for purchasing group 002).
3.4.2 Defining Selection Fields for InfoPackages
Using the 'Selection' flag, you can define for individual DataSource fields whether
they should be used as selection criteria in the BW InfoPackages.
We recommend limited use of this function with extractors that are transferred into
the BW with a delta upload. There can be errors in the interpretation of the
significance of the selection criteria.
If you carry out one or more delta initializations with selection constraints, all
subsequent InfoPackages with the update mode 'delta upload' can no longer be
created with differing selection conditions. This ensures data consistency. The
selection conditions for the delta upload correspond to the total coverage of the
selection conditions of the various delta initializations (Or-link).
Moreover, the selection conditions for the InfoPackages have no influence on the
extraction module or setup program in OLTP. Such data is still created independently
of the selection conditions (at the time of extraction, you do not need to know which
InfoPackage you are using to load data into the BW, it may be that the data is
selected for different BWs with different selection criteria.
Therefore, you can not improve OLTP extraction performance by using selection
conditions in InfoPackages.
We must also point out that after the execution of the V3 collective run, only the BW
transfer data for which there is already a delta initialization is retained. A subsequent
delta initialization that aims for an expansion of the selection range of a later delta
upload no longer has an effect in the documents already executed for the V3
collective run. Such documents can only be transferred to the BW using setup.
In particular, it is also not possible to use the selection conditions to write extracted
data to different cubes with InfoPackages. This is because the selection conditions of
all delta upload InfoPackages have already been defined be the selection conditions
of all delta initializations.
3.4.3 Hiding Fields in the BW
Using the flag 'Hide field', you can define, for individual DataSource fields, whether
the field in the DataSource should be hidden. If a field is hidden, it is also no longer
found in the transfer structure and can no longer be selected in the transfer rules for
the InfoSources.
2001 SAP Markets Europe GmbH
14
Extraktion Bewegungsdaten MM
It is possible to hide one of the standard-delivery selected DataSource fields, but this
can lead to the update in SAP delivered cubes being inconsistent.
If a change to a document takes place involving a modified field that is a hidden field
in a DataSource, old and new records are still transferred to the BW. Therefore it is
not possible to reduce the number of data records to be transferred to the BW by
hiding fields.
15
Extraktion Bewegungsdaten MM
To transfer information to the BW from documents that already exist in the OLTP, you
must carry out the following steps:
1. Activate the desired extraction in the 'Logistics Extract Structure Customizing
Cockpit' (LBWE). This takes place at the level of the relevant extract structures.
(Note: Process keys must be active)
2. The data must then be made available in the setup tables in OLTP using the
setup functions. During this process, you should not make any document
changes in the system. If you are dealing with large quantities of data, you should
firstly assess the data volume of the setup table using a test run. Then, if
necessary, enhance the database table space.
3. If the setup tables are filled, you can begin again to process documents in the
OLTP. Affected users should log on to the system again. This ensures that
extraction activation is accounted for at document posting.
You must make sure that no V3 collective run is started before the successful
upload of an InfoPackage in the BW with the update mode "initialization of the
delta process". Otherwise all delta data uploaded in the meantime is lost for ever
for the BW update and can only be recreated by refilling the setup tables in the
OLTP.
4. The data provided in the setup tables must now be requested from the BW with
the update mode "initialization of delta process" using an InfoPackage.
Only after the successful processing of this InfoPackage are all V3 extractor
update entries supplied to the BW for requests. This is done by starting the V3
collective processing in central delta management. Document information
processed in a previously started (perhaps by mistake) V3 collective processing
run can not be transferred to the BW with a delta upload. This is because the
system thinks you no longer need the information in the BW (because of the
missing initialization).
5. If you want to repeat a delta initialization, although a delta initialization has
already been carried you must first delete the initialization information in the BW
for the DataSource. This takes place in the maintenance dialog of an InfoPackage
of the corresponding InfoSource for the affected source system using Scheduler
-> Initialization for a Source System. You can delete the corresponding entries
there. Then you should delete the requests that have been received from the PSA
and data targets .
After this step. proceed again as explained in steps 1 to 4. You must make sure
that all existing entries in the setup tables are deleted before refilling the setup
tables. Even information on the same document that has not changed in the
meantime is available in duplicate in the setup table if the setup selection covers
this document again.
16
Extraktion Bewegungsdaten MM
It is only possible to split the setup into two phases if you are not using
any ODS objects as data targets. At present, only full upload
InfoPackages or only delta initializatation InfoPackages can be used for
InfoSources with update rules in an ODS object.
The technical realization of the transaction for deleting an application's setup tables
consists of a table being deleted from the database and being recreated. Make sure
that this event is cross-client so that entries in all clients are deleted.
4.1.2 Extraction with the Update Mode 'Full Update'.
17
Extraktion Bewegungsdaten MM
When the new extraction takes place, the data is not kept in a table in the OLTP. This
is in contrast to extraction on the basis of the LIS info-structures.
Therefore, the extraction with regular request of an InfoPackage with the update
mode 'full update' is only possible with additional effort.
So an extraction process can only, if at all, be beneficial in the case of transaction
data for which there are no change functions in the OLTP (for example material
documents). Then, per full upload you only need to extract data records created
since the last full upload.
With the transaction data described here, which belong to the Purchasing
component, this is, however, not the case. Therefore, with this method it's a very
doubtful process to ensure that all documents are extracted correctly, you must
extract all documents regularly and first delete all corresponding requests in the BW.
This process would lead to a permanently increasing runtime for the extraction.
Moreover, with this method it would not be possible to write the differences arising
from document changes (deltas) to the time base 'change date' in the cube.
As the data extracted in the new extraction no longer needs to be kept in LIS infostructures in the OLTP, a complete setup must be executed in the OLTP for this
method before every upload.
For these reasons. we strongly advise you against using this option for the
extractors described here.
Despite this, the option of loading full upload InfoPackages into the BW can, as
explained above, also be of great importance with this extraction.
4.2
18
Extraktion Bewegungsdaten MM
Accordingly, with active extract structures, before the start of a V3 collective run an
open upload entry arises for each document change carried out. This is not an error.
The data upload is purposefully held back until it is triggered explicitly. The exception
to this is the ERS process in the background (automatic calcuation of goods receipt
in Purchasing). After the ERS has run, all data is written directly to the delta queue
and does not get sent to the V3 update.
All other upload steps (R/3 document posting, LIS-V2 upload and so on) are carried
out beforehand independently of the BW extraction V3 update. The successful
processing of these upload steps is independent of whether or not there are open V3
update steps.
Please note the following carefully:
Before bringing in an R/3 standard Support Package or a PlugIn patch, or before the
execution of an R/3 upgrade or PlugIn upgrade, all open upload entries must be
processed. This is particularly important for upload entries of type V3 (collective run).
How to do this is described below.
Otherwise the upload entries might no longer be successfully uploaded, and there
could be an error if one of the structures used in the upload entry has changed with
the patch or upgrade. A change to the data element or domain of an involved field is
sufficient for this.
4.2.2 Starting the V3 Update
By starting a relevant job with the V3 control button of an application in the Logistics
Extract Structure Customizing Cockpit, you can process all upload entries for which
the upload of the extraction module of the relevant application is still initial (program:
RMBWV302).
For 02 applications, this module is MCEX_UPDATE_02.
This means that if you start a job for 02 applications, all upload entries with the initial
module MCEX_UPDATE_02 are processed.
After the successful processing of these upload entries, the extraction data is
available in the delta queue of the Service API (central management) to be collected
using delta InfoPackages and the BW.
We recommend that in productive operation you execute the V3 collective run calls
for individual applications with appropriately staggered timing. This is because upload
entries can sometimes contain several different V3 modules.
The BW delta queue data must be requested from the BW at the right time after the
V3 collective run.
At the very least you should ensure that the number of LUWs displayed from the
overview screen on transaction RSA7 per DataSource/target system in the field 'total'
is not larger than 9999. Otherwise, it may take a disproportionately long runtime to
process the data.
2001 SAP Markets Europe GmbH
19
Extraktion Bewegungsdaten MM
if (for example due to ignoring the above) it is necessary, due to a too large quantity
of data in the BW delta queue and associated problems with the connection, to
delete the entries of a DataSource or target system from the BW delta queue, it is
generally not sufficient to delete the corresponding entries in transaction RSA7 or to
reset the delta initialization from the BW side. The procedure for deleting the data
from the BW delta queue is described in note 324622. You should also refer to this
note if you want to reset a delta initialization.
The number of the displayed LUWs in the BW delta queue does not correspond to
the number of accompanying documents.
You can compress a large number of documents to one LUW. For this, you must refer
to note 358981.
If one of the function module interface structures (MCEKKO, MCEMPO and so on)
changes between the time of creation (document save) and the execution of the
upload (start of the V3 collective processing), the upload can not be error free and is
terminated. This is especially likely to happen if extract structures are enhanced.
To avoid this problem see section 6 (Enhancing/Changing Extract Structures).
4.3
20
Extraktion Bewegungsdaten MM
5 Extraction Log
There is a common log transaction for LO extractors. The log is application and userspecific.
If, in the OLTP, a user sets the SET_GET parameter (user parameter) MCL to 'X', if
at least one extract structure of the relevant application is active an entry is written to
the extraction log for each document posting by logging the data extracted for the
BW. With document changes, the old record is shown as well as the new record.
With each new document posting, the previously available entry is overwritten.
On the other hand, it is not possible to fill the setup tables and the log at the same
time with a setup run by setting the user parameter. This must take place as two
separate actions.
The log serves to control the extractors in the development and test systems. The
MCL parameter should not be set in productive systems for performance reasons.
21
Extraktion Bewegungsdaten MM
There should not be any unprocessed V3 update entries for the affected
application. If there are some, when the upload starts (that is, the collective run)
there will be an error. This is because the interface of the affected module has
22
Extraktion Bewegungsdaten MM
changed.
To prevent this you must initiate the processing of the entries (V3 collective run) in
the Logistics Extract Structure Customizing Cockpit using V3 control. If you did
not do this before changing the extract structure, you must either delete the
upload entries using transaction SM13 or temporarily change the extract structure
back into its old state.
2.
There should be no more data in the central delta management for the affected
extract structure. If there is data, the data must be requested from the BW using
an InfoPackage before you change the extract structure.
3.
There should be no more data in the setup table for the affected extract structure.
If there is data, it can no longer be transmitted to the BW. You must delete the
data and if you need the data again recompile it after changing the extract
structure and reactivating the update.
4. If the update log is active, the data of the affected application can first be read by
the user if, after changing the extract structure and reactivating the update,the
user creates, changes or deletes a document from the affected application or
carries out a simulation of the setup function.
Before transporting the changes made to an extract structure into a target system,
you must check that these point have also been ensured in the target system.
With PlugIn 2000.2 and PI-A 2000.2, the Logistics Extract Structure Customizing
Cockpit for the extract structures described here has been enhanced so that it is not
possible the change extract structures if one of points 1-3 has been violated. If a
change can be executed, all log entries are automatically deleted immediately.
Moreover, you can use the report RMCSBWCC to make the checks mentioned
above before a transport. You start the report in the target system and must make
sure before starting the transport that there are no messages displayed pertaining to
the points above. In particular, it should be carried out before a transport into the
productive system, because in this system, the consequences of an insufficiently
prepared extract structure change can be particularly unpleasant.
During the actual transport, no users should be logged on the affected applications in
the system. This is because DDIC changes are being made.
In theory it is also possible to enhance a DataSource in the Business Information
Warehouse OLTP Customizing using the menu path 'Postprocessing -> Edit
DataSource'. However,the fields inserted there can not be filled in the normal
extraction modules using the LIS communication structures.
For this purpose there is a customer exit with the SAP enhancement RSAP0001.
Here, you should remember that at this point you can no longer directly access the
relevant transaction data and that this exit is not run until the V3 update takes place
(that is, during the V3 collective run). Data from the application document that is not
available in the extract structure would have to be read from the database, but this is
inadvisable. In addition, during this phase further document changes could also be
made. This can lead to inconsistencies in data if you try to read the transaction data
from this exit.
2001 SAP Markets Europe GmbH
23
Extraktion Bewegungsdaten MM
Basically, the last named form of 'direct' extract structure enhancement with the
extract structures of the Logistics Extract Structure Customizing Cockpit is not
advisable. As a rule, the best thing to do is to enhance and fill the communication
structures MCEKKO and MCEKPO. It is also possible to enhance the buffer table
EKKO, EKPO and so and, and to fill them using the relevant user exit of the
Purchasing application. The fields inserted by append are also available in the
Logistics Extract Structure Customizing Cockpit for the enhancement of extract
structures. For the last procedure, remember that the data inserted to the buffer
tables is stored with document information in the database.
If you have enhanced extract structures with append fields of communication
structures or buffer tables, but do not need one of the fields, remove it from the
extract structure in the Logistics Extract Structure Customizing Cockpit. Then delete it
in the communication structure or buffer table append.
6.1
If you want to enhance an extract structure with fields and the update in the BW has
already been productive for a while, and you don not want, or can not carry out a new
data initialization, you must follow the following steps to prevent losing individual
delta uploads through this adjustment.
1. End all document postings of the affected applications ( in urgent cases, by
locking the relevant transactions you do not need to deactivate the update this
would be pointless).
2. Start the processing of all open V3 update entries using 'V3 Control' in the
Logistics Extract Structure Customizing Cockpit (check using SM13 or report
RMCSBWCC from PI 2000.2).
3. Delete the setup tables of the affected applications (these should in any case be
deleted after a successful initialization).
4. Fetch the delta queue data for all affected DataSources by requesting the
corresponding InfoPackages from all relevant BW systems (check if the data has
already been fetched using the report RMCSBWCC from PI 2000.2).
5. Enhance the extract structures or transport the extract structure changes from a
development or consolidation system.
6. Activate the DataSources
7. Replicate the DataSources in the BW
8. Activate the affected transfer structures in the BW.
9. Resumption of document processing by the user, and start of the V3 update (the
resumption of document processing can already take place after step 6 if you can
ensure that the V3 update for the affected extract structures does not start too
early).
6.2
Not all fields that exist in an LIS communication structure are offered for selection for
the enhancement of extract structures in the Logistics Extract Structure Customizing
Cockpit. Such fields are explicitely forbidden in the entries of the control table
TMCEXCFS.
2001 SAP Markets Europe GmbH
24
Extraktion Bewegungsdaten MM
We strongly advise you against changing the settings in the table TMCEXCFS. In
particular, SAP will not take on maintenance responsibility for the consequences of
such changes.
25
Extraktion Bewegungsdaten MM
Make sure that all updates of the new extract structures are deactivated (LBWE).
If you have acidentally activated updates in error, after deactivation start the V3
collective run for all three applications using the V3 control.
2.
3.
4.
You must create corresponding update rules relating to the new InfoSources for
all update rules created by you in individual cubes on the basis of LIS structures
S011 and S012. For cubes delivered by SAP as content, these are also already
available on the basis of the 'new' Info-structures and need only be adjusted if you
have already changed the delivered update rules on the basis of S011 and S012.
The structure S013 (vendor evaluation) has not been adjusted on the basis of the
'new' Info-structures.
5.
Now make sure that all users with change authorization for Purchasing
documents log off from the system.
6.
Deactivate the update of the LIS transfer Info-structures S011 and S012 with
transaction LBW1.
7.
Activate the update of the new extract structures in the Logistics Extract Structure
Customizing Cockpit.
8.
9. Now transfer the last obtained delta record of the old DataSource to the BW.
10. Now delete the InfoPackages of the old InfoSources.
11.
Delete any existing data records from the setup tables of the new extract
structures.
26
Extraktion Bewegungsdaten MM
12.
Now start the InfoPackages with the update mode 'delta initialization' for each of
the new InfoSources.
You can also set the switch 'Initialization without Data Transfer' for this.
Refer to the additional information on this switch in F1 Help.
13.
27