Você está na página 1de 9

FI extraction:

FI Module deals with accounting and financial needs of an organization.


Financial Accounting is broken down into the following sub-modules:

Accounts Receivables
Accounts Payable
Asset Accounting
Bank Accounting
Consolidation
Funds Management
General Ledger
Special Purpose Ledger
Travel Management
Note: Only discussing key areas (AP/AR/GL/SL) briefly because of the complexity of the area
We can extract the financial data at totals level / line item level.
In general, we will use R/3 line item tables as the data source for extracting the data to allow drill down
capability from summarized data to line-item details.
Financial Accounting data can be extracted directly from the tables.
Depending on the business requirement we can use either FI-SL or standard BW content extractors (FI-AR, FIAP, and FI-GL) to fetch FI data.
Note: FI-SL will be discussed under "one stage stop to know all about BW Extractors -Part2 "which explains
about Application specific customer generated extractors
FI-AR, FI-AP, and FI-GL:
General Ledger: All accounting postings will be recorded in General Ledger. These postings are real time to
provide up-to-date visibility of the financial accounts.
Account Receivable: Accounts Receivables record all account postings generated as a result of Customer
sales activity. These postings are automatically updated in the General Ledger
Accounts Payable: Accounts Payables record all account postings generated as a result of Vendor purchasing
activity. Automatic postings are generated in the General Ledger as well.
Standard FI data sources:
0FI_GL_4 (G/L Accounts- line items)
Takes the data from the FI document tables (BKPF/BSEG) that are relevant to general ledger accounting
(compare table BSIS).
0FI_AP_4 (AP-line items) and 0FI_AR_4 (AR- line items
Selections are made from tables BSID/BSAD (Accounts Receivable) and BSIK/BSAK (Accounts Payable)
How the data extraction happens?
In FI extraction 0FI_AR_4 and 0FI_AP_4 are linked with 0FI_GL_4 in order to maintain consistent data transfer
from OLTP system (it is called coupled data extraction, Ref OSS notes 428571).
Note: Uncoupled" extraction possible with Plug-In PI 2002.2, see OSS note 551044
0FI_GL_4 writes the entries into the time stamp table BWOM2_TIMEST in the SAP R/3 System with a new
upper limit for the time stamp selection.

And now, 0FI_AP_4 and 0FI_AR_4 will copy this new upper limit for the time stamp selection during the next
data extraction in the SAP R/3 System. This ensures the proper synchronization of accounts payable and
accounts receivable accounting with respect to G/L accounting.
Full load: Not a valid choice because of large volumes of detailed R/3 transaction data.
Delta load:
Note: Here the delta identification process works differently for new financial records and for changed
financial records.
New Financial accounting line items which are posted in SAP R/3 sytem will be identified by the extractor
using the time stamp in the document header (Table BKPF-(field) CPUDT).
By scheduling an initialization IP all the historical data can be loaded into BW from the application tables and
it also sets "X" indicator in field LAST_TS (Flag: 'X' = Last time stamp interval of the delta extraction).That
means after the last delta, initialization was done.

OLTPSOURCE
0FI_GL_4
0FI_GL_4
0FI_GL_4
0FI_AP_4

AEDAT/AETIM
16 May
2007/20:15
24 May
2007/16:59
21 June
2007/18:12
18
May2007/21:23

UPD

DATE_LOW

DATE_HIGH

Init

01 Jan 1990

15 May 2007

delta

16 May 2007

23 May 2007

delta

15 June 2007

20 June 2007

Init

01 Jan 1990

15 May 2007

LAST_TS

After this, daily delta loads can be carried out depending on timestamp by scheduling delta info packages.
During the delta load , the SAP R/3 system logs two time stamps that delimit a selection interval for a Data
Source in table BWOM2_TIMEST(fields TS_LOW and TS_HIGH).
In case of changed FI documents, selections will be based on tables:
BWFI_AEDAT and (timestamp table) BWOM2_TIMEST (See OSS note 401646 for more details).
Delta extraction using delta queue method can also be possible incase if we want,

FI -Delta Mode:
A time stamp on the line items serves to identify the status of the delta. Time stamp intervals that have
already been read are then stored in a time stamp table (BWOM2_TIMEST).
(Info object 0Recordmode plays vital role deciding delta's .Check the field "delta "in ROOSOURCE /RODELTAM
table to identify the image)
The Financial Accounting line items are extracted from the SAP R/3 system in their most recent status (afterimage delta method).
AIE: This delta method is not suitable for filling Info Cubes directly in the BW system. To start with therefore,
the line items must be loaded in the BW system in an ODS object that identifies the changes made to
individual characteristics and key figures within a delta data record. Other data destinations (Info Cubes) can
be provided with data from this ODS object.
It uses delta type E(pull) means the delta data records are determined during the delta update by the data
source extractor, updated to the delta queue and passed on to BI directly from there.

Financials: Procedure for Line Item


Extraction
General Comments on Extraction Procedure
The consistent data extraction in the delta procedure is possible for line items from General
Ledger Accounting (FI-GL) and selected subledgers (Accounts Receivable (FI-AR) and
Accounts Payable (FI-AP) ) and tax reporting with effect from SAP BW 3.1 Content. The
extraction procedure delivered with the business content for SAP BW 2.0B, which is based on
the DataSources 0FI_AR_3 and 0FI_AP_3, can be replaced. This is described in note 410797.
The decisive advantage of choosing R/3 line item tables as the data source is that additional
fields that are not available for the transaction figures can be transferred to the BW. This
provides more extensive and flexible analysis options in BW.
To enter a consistent delta dataset, you can use the four InfoSources (with the corresponding
DataSources and extractors in SAP R/3):
Application

InfoSource

Name

FI-GL

0FI_GL_4

General ledger: Line items

FI-AP

0FI_AP_4

Accounts payable: Line items

FI-AR

0FI_AR_4

Accounts receivable: Line items

FI-TX

0FI_TAX_4

General ledger: Data for taxes on sales and purchases

For the General Ledger, the selection is made from the tables BKPF and BSEG, while
selection for the subledgers is made from tables BSID/BSAD (Accounts Receivable) and
BSIK/BSAK (Accounts Payable). InfoSource 0FI_GL_4 transfers only those fields that are
relevant for General Ledger Accounting from the Financial Accounting document (tables
BKPF and BSEG) to the BW system.
The consistent recording of data from General Ledger Accounting and Subledger Accounting
is provided by means of coupled delta extraction in the time stamp procedure. General
ledger accounting is the main process in delta mode and provides subledger extraction with
time stamp information (time intervals of previously selected general ledger line items). This
time stamp information can also be used for a loading history: this shows which line items
have previously been extracted from the SAP R/3 system.

Delta Method
Delta extraction enables you to load into BW only that data that has been added or has
changed since the last extraction event. Data that has already been loaded and has not
changed is not extracted and does not need to be deleted before a new load. This improves
performance compared with periodic extraction of the entire dataset.

Financial Accounting line items are read by extractors directly from the tables in SAP R/3. A
time stamp on the line items serves to identify the status of the delta data. Time stamp
intervals that have already been read are stored in a time stamp table. The delta dataset is
transferred to BW directly, without records being transferred to the delta queue in SAP R/3
(extractor delta process).
The Financial Accounting line items are extracted from SAP R/3 in their most recent status
(after-image delta method). This delta process is not suitable for filling InfoCubes in BW
directly. Therefore, firstly, the line items must be loaded in the BW system in an ODS object
that identifies the changes made to individual characteristics and key figures within a delta
data record. Other data destinations (InfoCubes, ODS objects) can be provided with data
from this ODS object.
If the ODS object permits BEx Reporting, queries can be defined directly there.

Time Stamp Method


With Financial Accounting line items that have been posted in SAP R/3 since the last data
request, the extractors identify the following delta dataset using the time stamp in the
document header (BKPF-CPUDT).
When a delta dataset has been selected successfully, SAP R/3 logs two time stamps that
delimit a selection interval for a DataSource in table BWOM2_TIMEST:
Field Name

Key

Description

MANDT

Client

OLTPSOURCE

DataSource

AEDAT

SYSTEM: Date

AETIM

SYSTEM: Time

UPDMODE

Data update mode (full, delta, delta init)

TS_LOW

Lower limit of the time selection (time stamp in seconds since 1.1.1990)

TS_HIGH

Upper limit of the time selection (time stamp in seconds since 1.1.1990)

LAST_TS

Flag: 'X' = Last time stamp interval of the delta extraction

TZONE

Time zone

DAYST

Daylight saving time active?

The time stamps are determined from the system date and time and converted to the
format seconds since 1.1.1990, taking into account the time zone and daylight saving time
To ensure correct and unique reconversion to date and time, the time zone and daylight
saving time must be stored in table BWOM2_TIMEST.
Table BWOM2_TIMEST therefore serves to document the loading history of Financial
Accounting line items. It also provides defined restart points following incorrect data
requests.

To provide a better overview, the time stamps in the example table are entered in
the Date format. The columns TZONE and DAYST were omitted:
OLTPSOURCE
0FI_GL_4

0FI_AP_4

0FI_AR_4

0FI_TX_4

AEDAT/AETIM

UPD

DATE_LOW

DATE_HIGH

16.05.2004/20:15

Init

01.01.1990

15.05.2004

24.05.2004/16:59

Delta

16.05.2004

23.05.2004

02.06.2004/21:45

Delta

24.06.2004

01.06.2004

15.06.2004/12:34

Delta

02.06.2004

14.06.2004

21.06.2004/18:12

Delta

15.06.2004

20.06.2004

18.05.2004/21:23

Init

01.01.1990

15.05.2004

30.05.2004/12:48

Delta

16.05.2004

23.05.2004

10.06.2004/13:19

Delta

24.06.2004

01.06.2004

17.05.2004/18:45

Init

01.01.1990

15.05.2004

04.06.2004/13:32

Delta

16.05.2004

01.06.2004

16.06.2004/15:41

Delta

02.06.2004

14.06.2004

17.05.2004/18:45

Init

01.01.1990

15.05.2004

04.06.2004/13:32

Delta

16.05.2004

01.06.2004

16.06.2004/15:41

Delta

02.06.2004

14.06.2004

LAST_TS

Restrictions:
Per day, no more than one delta dataset can be transferred for InfoSource 0FI_GL_4. The
extracted data therefore has the status of the previous day. For further data requests on the
same day, the InfoSource does not provide any data. However, you can change this standard
delivery. For more information, see note 485958.
In delta mode, data requests with InfoSource 0FI_AR_4 and InfoSource 0FI_AP_4 do not
provide any data if no new extraction has taken place with InfoSource 0FI_GL_4 since the
last data transfer. This ensures that the data in BW for Accounts Receivable and Accounts
Payable Accounting is exactly as up to date as the data for General Ledger Accounting.

Recording Changed Line Items


In the case of Financial Accounting line items that have been changed since the last data
request in SAP R/3, there is no reliable time stamp that can document the time of the last
change. For this reason, all line items that are changed in a way relevant for BW must be
logged in the system. Changed line items, together with the document key and the time of
the last change are recorded in table BWFI_AEDAT:
Field Name

Key

Description

MANDT

Client

eBUKRS

Company code

BELNR

Accounting document number

Field Name

Key

GJAHR

Description
Fiscal year

AEDAT

Date of last document change

AETIM

Time of last document change

MANDT

BUKRS

BELNR

GJAHR

AEDAT

AETIM

600

1000

1900000010

2001

21.02.2001

10:23:17

600

1000

1000000016

2001

21.02.2001

10:28:34

Using the log table and the time stamp procedure described above, the extractors can find a
delta dataset from changed Financial Accounting line items. The changed line items are
recorded in the following transactions:
Manual changing of Financial Accounting line items
Clearing open line items
Changing dunning data for a line item
Prerequisite:
To be able to record changed line items, various update programs in SAP R/3 need to be
changed. Therefore, the following support packages must be implemented:
Release

Support Package

4.0B

64

4.5B

42

4.6B

30

4.6C

22

If these support packages are not implemented in your system, see SAP Note 401646.
Recording of the changed line items must be started a reasonable amount of time (see notes
401646 and 663539) before the first data request in update mode Initialization of the delta
method. For this purpose, add the following entry in table TPS31 using transaction SM30
(view maintenance):
Process
00005011

Lnd

Applic.

Function module
BWFIP_WRITE_AEDAT_POINTER

If you delete the last Initialization selection in the source system for the InfoSources 0FI_*_4
in the BW system Administrator Workbench, this entry in table TPS31 is also removed. This
stops recording of changed line items in table BWFI_AEDAT. Existing data in table
BWFI_AEDAT is also deleted. Before a new data request can be made in the update
mode Initialization of the delta method, the entry must be added again to table TPS31.

Linking InfoSources
As of Plug-In 2002.2, it is no longer necessary to have DataSources linked. This means that
you can now load 0FI_GL_4, 0FI_AR_4, 0FI_AP_4, and 0FI_TX_4 in any order. You also have the
option of using DataSources 0FI_AR_4, 0FI_AP_4 and 0FI_TX_4 separately without 0FI_GL_4.
The DataSources can then be used independently of one another (see note 551044).

As soon as DataSource 0FI_GL_4 is loaded, it is the leading DataSource with regard to the
time limits, such as maximum time (CPU date), up to which data extraction is allowed.
Therefore, when the transition is made from having data requirements in Delta Init mode to
having them in pure Delta operations, the data requirement in delta mode of leading
DataSource (OFI_GL_4) must be processed first.
Linking of DataSources in the delta helps to ensure consistent extraction of FI data with
regard to time limits. Consistency with regard to the data extracted has to be ensured via
the init selection criteria (see below).

Partioned Initial Data Requests


As of Plug-In 2002.2 SAP BW 3.1 Content, selections by company code and fiscal year/period
are possible for DataSources 0FI_AR_4, 0FI_AP_4 and 0FI_TX_4. Partioned data requests are
therefore possible in Delta Init mode. Selections for data requests in Delta Init mode are then
managed separately for each DataSource.

If you want extraction to be consistent, you have to choose the same Init selection criteria
(company code and fiscal year/period) for all DataSources.

Customer Enhancements of the Extraction Structure


You can enhance the extraction structures for DataSources 0FI_GL_4, 0FI_AP_4, 0FI_AR_4,
and OFI_TX_4 in the SAP R/3 system by creating user-defined include structures or using
transaction RSA6. The following customer includes are supported:
Application

DataSource

R/3 Table

Include Structure

General Ledger

0FI_GL_4

BSEG/BKPF

CI_BSIS

Accounts Receivable

0FI_AR_4

BSID/BSAD

CI_BSID

Accounts Payable

0FI_AP_4

BSIK/BSAK

CI_BSIK

Taxes

0FI_TX_4

BSET

CI_BSET

If all fields in the customer include structure are contained in the above-mentioned R/3
table, no further ABAP programming is required. In this case, the fields in the customer
include structure are automatically supplied with data by the DataSource extractor.
If there are fields in the customer include structure that are not contained in the abovementioned R/3 able, these fields cannot be filled using a custom-built function module. For
more information see note 410799. Alternatively you can use the BW standard exits for

extractor enhancements. Programs from the SAP standard are not modified by this customer
interface.

Global Settings
For the transfer of line items from Financial Accounting, important global settings can be
made in SAP R/3 in table BWOM_SETTINGS. To do this, change the table using transaction
SE16 (table maintenance):
OLTPSOURCE

PARAM_NAME

PARAM_VALUE

Default Value

<space>

BWFILOWLIM

YYYYMMDD

19910101

<space>

BWFISAFETY

<Days>

<space>

ORGSYSONLY

<space> or X

<space>

<space>

DELTIMEST

<Days>

60

<space>

BWFIOVERLA

<space> or X

<space>

<space>

BWFITIMBOR

<Time>

020000

BWFILOWLIM
Here, you can set the lower time limit of the time stamp selection for data requests in
update mode Initialization of the delta method. Together with the selection criteria, this
parameter is a decisive factor for the data volume with data requests in this update mode.
BWFISAFETY
Here, you can set the upper time limit of the time stamp selection for data requests in all
update modes. If the parameter has a value 1, the upper time limit of the time stamp
selection is the previous day. Where the parameter values are larger than 1, the upper time
limit of the time stamp selection is the corresponding number of days in the past.
Note that you cannot select a parameter value smaller than 1, since this would mean that
the delta dataset would not be determined completely.
ORGSYSONLY
If your SAP R/3 system is part of an ALE scenario, set this parameter to X. This ensures that
only those line items that were originally posted to the BW system will be transferred there
from the SAP R/3 system. This prevents line items being transferred several times to BW
from various SAP R/3 systems.
DELTIMEST
With this parameter, you can set the retention period of entries that are no longer required
in time stamp table BWOM2_TIMEST. The default setting for deletion of entries that are no
longer required in the time stamp table is 60 days. The minimum retention period for entries
in the time stamp table is 15 days. When entries are deleted from table BWOM2_TIMEST, the
corresponding entries for the changed line items are deleted simultaneously from log table
BWFI_AEDAT.
BWFIOVERLA
The logic of this parameter prevents records with the previous day as their CPU date from
still being in the update at the time of extraction.

If X is set for this parameter, selection is made up to the previous day if the time limit is not
reached.
If <space> is set for this parameter, selection is made up to the day before the previous day
if the time limit is not reached.
BWFITIMBOR
This parameter designates 02.00 (2 A.M.) as the time limit for extraction. If this limit is not
reached, the system uses a security interval of one day to determine the To-value of the
selection. Therefore, if extraction is started before 02:00, the selection takes place only up to
the day before the extraction run.

SAP recommends that you do not change the standard value.

Você também pode gostar