Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Extraction &
Modelling ABAP Reporting
Functional
13.Exceptional
Aggregation
Extraction Part
1. LO Extraction: Link:- http://easy-learn-bw.blogspot.com/2013/08/lo-extraction.html
2. GENERIC EXTRACTION:-
https://blogs.sap.com/2012/09/26/generic-extraction-based-on-a-view-part-1/
3. GENERIC DELTA:-
Based on
Cal day,
Time Stamp,
Numeric Pointer
6. PO Extractor:-
Application Area:-02
Setup table Tcode :-OLI3BW
S.NO. Extractor Comments
1. 2lis_02_hdr Header-EKKO
2. 2lis_02_itm Item-EKPO
3. 2lis_02_scl Schedule Line-EKET
4. 2lis_02_sgr Schedule line with Goods Receive EKET,EKBE,EKPO
5. 2lis_02_acc Account Assignment-EKKN
7.PO tables:-
Main tables:-
https://sap4tech.net/sap-purchase-order-tables/
8. PO TCodes :-
Main Tcodes for Purchase Order
http://www.tcodesearch.com/tcodes/search?q=purchase+order
9. FI Extractor:-
S.NO. Extractor Comments
1. 0fi_gl_14 General Line Item-leading ledger-faglflexa ,bkpf, bseg
2. 0fi_gl_10 Balances-FAGLFLEXT
3. 0fi_ap_4 Account Payable :Line Item-BSIK,BSAK
4. 0fi_ar_4 Account Receivable: Line Items-BSID,BSAD
https://wiki.scn.sap.com/wiki/display/ERPFI/SAP+FICO+Transaction+Codes
Modelling Part:-
Acquisition
DWH
Virtual
3. ADSO :
Advanced DSO have persistent object is combination of below objects
1. Field based structure of PSA ( filed based modeling)
2. No activation required for like WDSO (update property)
3. 3 tables have (active, new, change log table ) like standard DSO (over write property)
4. Info cube model – select setting – all char are keys ( addition property)
Link:-
https://blogs.sap.com/2016/05/22/sap-bw-on-hana-advanced-dso/
https://blogs.sap.com/2018/03/13/bw-on-hana-adso-type/
4. Composite Provider:-
A Composite Provider is an Info Provider, which combines data from several analytic indexes
or from other Info Providers (by Join or Union), and makes this data available for reporting
and analysis.
UNION and JOIN operations are executed in HANA and not the application server.
In Summation mode: Key figures of same key will be added while in Overwrite mode it will be
adding up.
6. Record Modes:-
After-image ‘ ‘ :
The record provides an after image, i.e. how does the record look like after the change.
The status of the record after it has been changed, or after data has been added is
transferred.
Before-image ‘X’:
The record provides a before image, i.e. what did the record look like before the change.
The status of the record before the change is transferred.
Add ‘A’:
The record provides an additive image. Only the differences for all the numeric values are
available.
Delete ‘D’:
This record mode type signifies that the record must be deleted.
New Image ‘N’:
The record provides a new image, i.e. when a new record is created; a new image is set for
it.
Reverse Image ‘R’:
The record provides a reverse image. The content of this record is equivalent to a before
image. The only difference occurs when updating a Data Store object: An existing record
with the same key is deleted.
Delta Process:-
Question:-
If in Start routine code mentioned below is written then what will happen?
8. Conversion Routine:-
Conversion routines are used to convert the fields either from display format to SAP internal format
or from SAP internal format to display format.
https://blogs.sap.com/2013/10/25/conversion-routine-in-sap-bw/
https://blogs.sap.com/2012/04/23/conversion-rouitnes-alpha/
http://saptechnical.com/Tutorials/ABAP/Conversion/Custom.htm
https://archive.sap.com/discussions/thread/146553
9. Transfer Routine:-
Each InfoObject can hold a global transfer routine which always gets executed after the
transformation or the communication structure. No matter if the updaterule. Using global
“transfer routine exists” makes sense if an InfoObjet gets transformed with an ABAP routine
always on the same way.
https://blogs.sap.com/2013/10/21/transfer-routine-exists-on-an-infoobject/
https://danielnurindra.wordpress.com/2009/03/30/creating-virtual-characteristic-using-badi/
https://blogs.sap.com/2014/03/28/virtual-characteristics-without-the-use-of-badi/
Currency Conversion:-
Steps:-
Goto RSCUR
Create Currency translation type
Pass Exchage Rate Type
Select Source and Target Currency (can be use fixed or dynamic based on requirement)
Then go to time ref and pass info-object name
https://archive.sap.com/kmuuid2/2056ef93-2004-2d10-21ae-
f973bb48d7a1/Currency%20Conversion%20using%20Variables%20in%20SAP%20BI%20-
%20Reporting.pdf
Unit Conversion:-
https://archive.sap.com/kmuuid2/00944f2f-c3e8-2c10-ccb5-
a6e4cc882db4/Reporting%20Data%20in%20Alternate%20Unit%20of%20Measure%20in%20BI%
207.0
https://wiki.scn.sap.com/wiki/display/BI/Define+unit+of+measure+conversions+in+0MATERIAL+
definition
12. Non Cumulative KF:-
A non-cumulative is a non-aggregating key figure on the level of one or more objects, which is
always displayed in relation to time. Examples of non-cumulatives include headcount, account
balance and material inventory.
http://easy-learn-bw.blogspot.com/2013/07/non-cumulative-key-figures.html
Looking Up on FI
DSO(routine)
PO DSO2
e.g. Payment terms
PO DSO1 FI DSO1
ABAP
1. Types of Internal Table :-
Standard
Sorted
Hashed
https://www.sapnuts.com/courses/core-abap/internal-table-work-area/internal-
tables-types.html
2. Optimization of Code:-
Minimum use of delet statement
Avoid to use loop inside loop and use read statement
Use binary search in read statement
Use SELECT INTO TABLE rather than SELECT INTO CORRESPONDING FIELDS OF TABLE
Delete adjacent duplicate entries from internal table before selection from database
table using “ FOR ALL ENTRIES” statement
SORT inside a LOOP is not used
After the APPEND statement inside a loop, the work area that has been appended is
cleared
Internal tables, Work areas & Global Variables are freed when no longer needed
(e.g. using the FREE / REFRESH command), especially when the tables are large or
the program is a batch program
Do not delete the records of internal table inside the Loop – End loop.
Reporting
1. Customer Exit Variable:-
Abap code is used for retrieving variable value
There are i_steps method to populate variable values:-
I_steps=0,1,2,3
https://blogs.sap.com/2013/12/13/all-about-istep-variable/