|
|
|
Knowledgebase » Volume 4 (2006) » Issue 7 (July and August) Simplify Complicated Extractions with Function Modules
|
|
While you can handle most custom extraction needs with a generic extractor over a table or view, it’s handy to have another method for a more complicated extraction. This example shows how to create a generic extractor that uses a function module to gather and deliver data to BW. |
Categories: ABAP, ETL, SAP ERP
Key
Concept |
| A generic extractor using a function module has two pieces; the extract structure and the function module. The extract structure defines the layout of the data (the fields and field types) to provide to BW. The function module gathers and delivers the data to BW. |
One of the advantages of using BW in conjunction with an R/3 source system is the wealth of standard content available to provide data from R/3 to BW. However, in many circumstances the standard content extractors do not provide all the necessary data. For these situations SAP has provided the tools to create your own custom or generic extractors in R/3.
Generic extractors can have several different sources of data. By far the easiest and most popular is creating an extractor over an existing table or view. A second alternative is to create an extractor over an SAP query. The third and probably least-used alternative is to create a custom extractor that uses a function module to provide data to BW. That is the focus of this article.
A custom extractor that uses a function module can create a much more summarized set of data than what exists in transactional data. You could load all the detailed data into BW and summarize as the data goes into the InfoProvider. However, because BW disk space is at a premium, it is preferable to summarize the data before it leaves R/3. That’s where the function module becomes very helpful. You can build logic into your function module to summarize the transactional data and only return that summarized data to BW.
I will use the venerable SAP-provided flight scheduling sample tables in this illustration. I’ll describe the process for creating a generic extractor that uses a function module to provide data to BW.
Would you like to see the full version of this article?If you are an electronic license holder to BI Expert, please click here to log in. If you would like information about becoming an electronic license holder — and having 24/7 unrestricted access to all articles and content in the BI Expert online knowledgebase — click here to see the available subscription options. Or call 1-781-751-8799 to speak directly with a subscription and licensing specialist about customized access for you and your team. Isn't your SAP implementation worth world-class information support? |
|
Copyright © 2010 Wellesley Information Services. All rights reserved. Email: customer.service@bi-expertonline.com.
|