Sei sulla pagina 1di 30

FI Extractor

By
Leny Scaria
Sachin Borase
Agenda

 FI Overview
 Extractors
 Descriptions (in brief)
 Delta management using Timestamp
 Repeating Delta
 Line Item & Transactional Extractors (Detail)
 Enhancement of FI Extractors

Company Confidential 2
FI Application - Overview
Company specific organizational
structure is created in SAP system by
defining organizational units. Defining
organizational units for Financial
Accounting is Compulsory.

 Client Mandatory
 Company Optional
 Company Code Mandatory
 Business Area Optional
 Chart of Accounts Mandatory
 Fiscal Year Mandatory
 Currencies Mandatory

Company Confidential 3
FI Application – Sub-Components

 General ledger (FI-GL)

 Accounts Payable (FI-AP)

 Accounts Receivable (FI-AR)

 Asset Accounting (FI-AA)

 Special Purpose Ledger (FI-SL)

Company Confidential 4
FI-General Accounting
 It contains G/L accounting as well as the sub-ledgers. Among the
sub-ledgers are Accounts receivable, Accounts payable and Assets
accounting.

Company Confidential 5
General Ledger (FI-GL)

 The central task of G/L accounting is to provide a comprehensive picture


for external accounting and accounts. It is a Book of Accounts
(management and representation of all accounting data)

 In G/L accounting, you can manage the G/L accounts and create balance
sheets and profit and loss statements.

 Every posting made in sub ledgers generates a corresponding posting to the


assigned G/L accounts. Thus sub ledgers are always reconciled with G/L

 In G/L Accounting, a fiscal year can have a maximum of twelve posting


periods and four special periods

 Balances are carried forward for all G/L accounts

Company Confidential 6
FI-GL Extractor

Company Confidential 7
FI-GL Extractors

Delta
Extractor Description Mechanism
This DataSource extracts General Ledger Accounting
0FI_GL_4 line items from tables BKPF and BSEG in the source Timestamp
system
This DataSource is used to load General Ledger
0FI_GL_6 transaction figures (table GLTO) from the R/3 source Timestamp
system to the Business Information Warehouse.
This DataSource is used to load General Ledger
0FI_GL_7 transaction figures in the cost of sales ledger (table Timestamp
GLFUNCT) from the R/3 source system to the Business
Information Warehouse.

Company Confidential 8
Business Functions of Accounts Payable

 A sub ledger of FI-GL


 Integrated with MM
 Deals with Vendors

Company Confidential 9
FI-AP Extractor

Company Confidential 10
FI-AP Extractors
Delta
Extractor Description Mechanism

The Business Information Warehouse takes the


0FI_AP_3 data for displaying vendor line items from this Delta Queue
DataSource.
This DataSource extracts Accounts Payable
0FI_AP_4 Accounting line items from tables BSIK (open Timestamp
items) and BSAK (cleared items) in the R/3 source
system.

This DataSource is used to load accounts payable


0FI_AP_6 transaction figures (table LFC1) from the R/3 Timestamp
source system to the Business Information
Warehouse.
This DataSource is used to load accounts payable
0FI_AP_7 SGL transaction figures (table LFC3) from the R/3 Timestamp
source system to the Business Information
Warehouse.
Company Confidential 11
Business Functions of Accounts Receivable

 A sub ledger of FI-GL


 Integrated with SD
 Deals with Customers

Company Confidential 12
FI-AR Extractor

Company Confidential 13
FI-AR Extractors
Delta
Extractor Description Mechanism

0FI_AR_3 The Business Information Warehouse takes the data


for displaying customer line items from this Delta Queue
DataSource.

0FI_AR_4 This DataSource extracts Accounts Receivable


Accounting line items from tables BSID (open items) Timestamp
and BSAD (cleared items) in the R/3 source system.

0FI_AR_6 This DataSource is used to load accounts receivable


transaction figures (table KNC1) from the R/3 Timestamp
source system to the Business Information
Warehouse.

0FI_AR_7 This DataSource is used to load accounts receivable


special G/L transaction figures (table LFC3) from Timestamp
the R/3 source system to the Business Information
Warehouse.

Company Confidential 14
FI-AR Extractors…contd

0FI_AR_8 These DataSources are used to load Credit


Management data (tables KNKA, KNKK ) from Timestamp
0FI_AR_9 the R/3 source system to the Business
Information Warehouse.

0FI_AR_10 This DataSource extracts the payment history


from table KNB4 in the R/3 source system. The Timestamp
extractor converts a record from table KNB4
with 12 periodic values or quantity fields into
12 records in the extraction structure, one for
each calendar month.

Company Confidential 15
Logic of Time Stamp
 BWOM_SETTINGS: This table parameters are
common to all the datasource extractors.
This table contains settings for delta extraction. Each
entry in the table signifies a special purpose.
 BWFILOWLIM: It has the default value 19910101.
This specifies the start date for the delta
initialization process.
 BWFISAFETY: It is the parameter used for calculating
upper limit of date for the extraction. Default value
is 1.
 BWFIOVERLA: This can have either a <space> or X
value. The default value is <space>. The BWFISAFETY
is deactivated when the BWFIOVERLA field is set to
'X‘. It will take the records till the day of extraction
from the day of the start of the delta upload or
initiation. The BWFISAFETY is activated when the
BWFIOVERLA field is to <space>. The data extraction
will take the records from the day of the last
successful delta upload till one day before the day of
extraction if the BWFISAFETY is 1.

Company Confidential 16
Logic of Time Stamp…contd
 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. If
extraction is started before 02:00 therefore,
the selection takes place only up to the day
before the extraction is run.
 DELTIMEST: With this parameter, you can set
the retention period of entries that are no
longer required time stamp table
BWOM2_TIMEST. The default setting for the
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. Default
/Recommended value >= 60.

Company Confidential 17
Example of Timestamp Logic
Suppose the settings are as follows:

Table BWOM_SETTINGS:

BWFILOWLIM – 19910101
BWFIOVERLA – ‘ ’
BWFISAFETY – 1
BWFITIMBOR – 020000
DELTIMEST – 60

Table BWOM2_TIMEST:

OLTPSOURCE - 0FI_AR_4
AEDAT - 06/22/2007
AETIM - 01:08:38
UPDMODE - D

Company Confidential 18
Example of Timestamp Logic

Upper limit: Current Date – (Safety = 1 day as BWFISAFETY is 1) – (1 if the extraction is


run before 02:00:00 Hours of the
current day) 23:59:59 hours
= 06/22/2007 – 1 (safety) -1 (as the run was at 01:08:38)
= 06/20/2007 23:59:59 hours

Lower Limit: Last High Time of previous delta extraction + 1 (if BWFIOVERLA is initial)
00:00:00 hours
= 06/19/2007 (Previous high time date) + 1 day (BWFIOVERLA = ‘ ’) 00:00:00 hours
= 06/20/2007 00:00:00 hours

Hence the timestamp interval is from


06/20/2007 00:00:00 hours to 06/20/2007 23:59:59 hours

Company Confidential 19
Repeating Delta

 In standard system, a repeat delta can be done for the last 60 days (DELTIMEST setting)
 Reset the time stamps used for the delta extraction in the BWOM2_TIMEST table to a
certain date
 Reset the ‘X’ marker in the column ‘LAST_TS’ with the help of ‘BWOM2_TIMEST’ report

Case1: Load the data in one delta extraction:

 Execute the ‘BWOM2_TIMEST’ report for the relevant datasource


 Remove the marker in the entry of the delta extraction
 Select the entry upto which the data in your BW system is still correct
 Save the changes and do not make any further changes in the BWOM2_TIMEST table
 The next delta extraction uses the date + 1 of the selected entry as a lower limit for
the data selection and the current date – 1 for the upper limit

Company Confidential 20
Repeating Delta…contd

Case 2: Load data in several parts. There are two scenarios:


1. BWFIOVERLA = ‘ ’ : 2. BWFIOVERLA = ‘X’
 The upper limit for the data  Deactivate the ‘BWFIOVERLA’
selection can be controlled by parameter
changing the ‘BWFISAFETY’  Execute the ‘BWOM2_TIMEST’
parameter (default =1) report for the relevant
 If you want to extract the data of datasource
the last twenty days in four parts,  Remaining steps are same as
set the parameter as follows: above.
 before the 1st delta extraction >>
BWFISAFETY = 15
 before the 2nd delta extraction >>
BWFISAFETY = 10
 before the 3rd delta extraction >>
BWFISAFETY = 5
 before the 4th delta extraction >>
BWFISAFETY = 1 (= default)

Company Confidential 21
Line Item Extraction
 Delta procedure is possible for line items from
 General Ledger Accounting (FI-GL) and selected subledgers
 Accounts Receivable (FI-AR)
 Accounts Payable (FI-AP))
 To enter a consistent delta dataset, you can use any of the following InfoSources
(with the corresponding Data Sources and extractors in SAP R/3)

Application Info Source 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

 The decisive advantage of choosing R/3 line item tables as the data source is that
additional fields can be transferred to the BW. These are not available for the
transaction figures

Company Confidential 22
Delta – New Line Items
 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.

 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

 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

Company Confidential 23
Structure of the Table

 BWOM2_TIMEST Table

Field Name Key Description


MANDT X Client
OLTPSOURCE X DataSource
AEDAT X SYSTEM: Date
AETIM X 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?

Company Confidential 24
Delta – Changed Line Items

 The delta dataset is transferred to BW directly, without records being transferred


to the delta queue in SAP R/3

 The line items are extracted from SAP R/3 in their most recent status (after-
image delta method)

 Note :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

 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 in BWOM2_TIMEST
that can document the time of the last change

Company Confidential 25
Delta – Changed Line Items

 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

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

Company Confidential 26
Transaction Figures Extractors
 Delta procedure is possible for Transactional Extractors
 General Ledger Accounting (FI-GL) and selected subledgers
 Accounts Receivable (FI-AR)
 Accounts Payable (FI-AP))

Component Info Source Name

FI-GL 0FI_GL_6 General Ledger Sales Figures via Delta Extraction


0FI_GL_7 General Ledger Cost of Sales Ledger via Delta Extraction
FI-AP 0FI_AP_6 Vendor Sales Figures via Delta Extraction
0FI_AP_7 Vendor SGL Sales Figures using Delta Extraction
FI-AR 0FI_AR_6 Customer Sales Figures via Delta Extraction
0FI_AR_7 Customer SGL Sales Figures via Delta Extraction

Company Confidential 27
Delta – Changed Line Items

 All transaction figures that are changed in a way relevant for BW must be logged in
the SAP R/3 system. Changed transaction figures are recorded in table
BWFI_AEDA2 with the document key and the date/time of the last change.

MANDT TABNAME KONTO BUKRS GJAHR AEDAT AETIM

100 GLT0 80000 1 2003 22.12.2003 13:13:53


100 GLT0 80000 1 2004 08.09.2004 16:47:21

100 GLT0 100000 1 2003 12.12.2003 10:07:18

100 GLT0 100000 1 2004 27.09.2004 16:44:28

Company Confidential 28
Enhancement of Line Item Extractors
The extract structures listed below can be enhanced by creating the respective customer
include in the data dictionary of the R/3 source system.

Application Data source Read structure Extraction Structure Customer- INCLUDE


FI - GL 0FI_GL_4 BSIS DTFIGL_4 CI_BSIS
FI - AP 0FI_AP_4 BSIK DTFIAR_3 CI_BSIK
FI - AR 0FI_AR_4 BSID DTFIAP_3 CI_BSID

After creating this, generate the customer include in the data dictionary. There are two
scenarios

1. All the fields of the customer enhancement in the customer include are
contained in the read structure
E.g..
2. Fields of the customer enhancement in the customer include are not contained
in the read structure
E.g..

Company Confidential 29
Thank You

Potrebbero piacerti anche