Extraction Using Infoset (Query)



An InfoSet is a special view of a set of data (logical database, table join, table, sequential file). It serves as the data source for SAP Query. An InfoSet determines which tables or fields of these tables are referenced in an evaluation. InfoSets are usually based on logical databases.

If you are using an InfoSet to extract data, the system first collects all data in the main memory. The data is transferred to the BI system in packages using the Service API interface. The size of the main memory is therefore important with this type of extraction. It is suitable for limited datasets only.

When an InfoSet is created, a data source is selected in an application system. Since a data source can have a large number of fields, fields can be combined into logical units; the functional groups. Functional groups are groups of several fields that form a logical unit within an InfoSet. Any fields that you want to use in an extraction structure have to be assigned to a functional group. In generic data extraction using an InfoSet, all the fields of all functional groups for this InfoSet are available.

The relevance of SAP Query to BI lies in the definition of the extraction structure by selecting fields of a logical database, a table join or other datasets in an InfoSet. This allows you to use generic data extraction for master or transaction data from any InfoSet.

A query is generated for an InfoSet. The query gets the data and transfers it to the generic extractor.


Steps to create a SAP query using InfoSets.

  • Creation of User Groups (Defines who is going to create, modify and use the query)
  • Creation of InfoSet (Defines the set of data used in the query)
  • Creation of the Query (Generating reports using the data)



Step 1: Creation of User Groups (Tcode SQ03)

Generally there is no need for you to carryout this for every query you write. Once created, you can reuse them in queries.





Enter the Group Name you want to create and press Create


Enter a description to the user group and press save






Step 2: Creation of InfoSet (Tcode SQ02)








Enter the Descriptive name to your InfoSet
Select the data source which suits your requirement
Enter the First table to get the data


Let us use VBAK to get the header data of the Sales Document








Enter SD Item level data table (VBAP)




Lets Enter one more table...VBKD to get the Sales Document: Business data.





Now click Check button to check for errors... 
If there is no error,

Click Back button





We can limit the number of fields the Infoset can contain
Select the create empty field groups button and press continue





Now we can see all the field groups which are created and now we can drag and drop the fields from " Data Fields tab "in the left side of the panel to Field Group/ Data Fields in Right side panel




After Generating , Click the "BACK" button

Now we have generated our InfoSet to be used in the query. Now we have to tell the system who can Change/Use this InfoSet






Click on Save button...


Step 3: Creation of InfoSet Query (Tcode SQ01)





























Now lets create Datasource based on this query...


Tcode -  RSO2














Lets check for data availability in RSA3




Now lets replicate this to BW




















Now data is available in PSA of BW system...


Comments

  1. excellent...plz upload the start routine and end routine...........

    ReplyDelete
    Replies
    1. http://easy-learn-bw.blogspot.in/2014/01/transformation-routines.html

      Delete
  2. Hi Aslam,

    Thanks for all this information. Could you please tell me how to handle the execution of Infoset query automatically, when we have daily data loads ( on this extractor ) on BW side which are run by process chains.

    Regards,
    Raj

    ReplyDelete
  3. Replies
    1. My friend.. I forgot from which site I copied... please let me know the site....
      and meantime please check the screenshots thoroughly.... you can find the Author name :)

      Delete
  4. Nice article.. Could you please let me know the limitations for Extraction using ABAP Query.

    ReplyDelete

Post a Comment