Thursday, October 27, 2016

Data loading from SAP ECC Extractor to SAP HANA using BODS


Configurations at BW system:
1) Log on to the SAP BW system.
2) Enter T code ‘SALE’ to create new logical system:
/wp-content/uploads/2014/10/1_572300.jpg
3) To create a logical system, choose Define Logical System.
  • Enter a name for the logical system that you want to create.
  • Enter a description of the logical system.
  • Save your entries.
4) Go to Transaction RSA1 to create RFC connection.
5) Select Source Systems in the Modeling navigation pane on the left.
6) Navigate to BO DataServices right click and select create.
/wp-content/uploads/2014/10/2_572301.jpg
7) Enter Logical System Name and Source System Name as shown above and hit Continue.
/wp-content/uploads/2014/10/3_572302.jpg
8) Data Services will start an RFC Server program and indicates to SAP BI that it is ready to receive RFC calls. To identify itself as the RFC Server representing this SAP BI Source System a keyword is exchanged, in the screen shot above it is “BODREP”. This is the Registered Server Program, the Data Services RFC Server will register itself with at SAP. Therefore, provide the same Program ID that you want to use for the call of the RFC Server on Data Services side. All other settings for the Source System can remain on the default settings.
To complete the definition of the Source System, save it.
/wp-content/uploads/2014/10/4_572303.jpg
NOTE: We have to use the same Program ID while creating RFC connection in Management Console(BODS).

BO Data Service – Configure a RFC connection

  1. Log on to the SAP data services management console system.
/wp-content/uploads/2014/10/5_572304.jpg
2     Expand to the new “SAP Connections” node and open the “RFC Server Interface” item. In the Configuration tab a new RFC Server is added so that it can register itself inside the SAP System with the given PROGRAM_ID.
/wp-content/uploads/2014/10/6_572305.jpg 
3     Start the RFC server from tab ‘RFC server interface status” :
/wp-content/uploads/2014/10/7_572309.jpg
4     Go to BW and check the connection :
/wp-content/uploads/2014/10/8_572310.jpg
  It will show message like below:
/wp-content/uploads/2014/10/9_572311.jpg

Creating BW source:

  1. Double click on BODS connection :
/wp-content/uploads/2014/10/10_572320.jpg
   2    Right click on header and create new application component(Here it’s ZZ_EMPDS) :
/wp-content/uploads/2014/10/11_572327.jpg
/wp-content/uploads/2014/10/12_572328.jpg
   3    Right click on application component and create a new datasource:
/wp-content/uploads/2014/10/13_572329.jpg
   4    Fill the information for datasource as shown below :
         General Info. Tab
/wp-content/uploads/2014/10/14_572330.jpg
   Extraction Tab
/wp-content/uploads/2014/10/15_572331.jpg
   Fields Tab: Here we’ll define the structure of the BW target and save it.
/wp-content/uploads/2014/10/16_572332.jpg
   5   Now, BW will automatically create a new InfoPackage as shown below :
/wp-content/uploads/2014/10/17_572333.jpg

Creating BODS Datastore and Job:

1     Right click and create a new data store for BW target and fill the  required BW system detail as shown below :
/wp-content/uploads/2014/10/18_572334.jpg
2     Right click on transfer structure and import the datasource( here its transaction datasource ‘ZBODSTGT’ :
/wp-content/uploads/2014/10/19_572335.jpg
/wp-content/uploads/2014/10/20_572339.jpg
3     Right click on File format and create a new file format as shown below :
/wp-content/uploads/2014/10/21_572341.jpg
4     Create a BODS job where Source is flat file and target is BW data source(Transfer structure) as shown below :
/wp-content/uploads/2014/10/22_572343.jpg
Where query mappings are as shown below:
/wp-content/uploads/2014/10/23_572344.jpg 

Execute the job:

BODS job to load data in BW can be executed from both the systems, BODS designer and BW system.
Before Executing the job, We have to do following cofigurations in BW InfoPackage :
Goto BW, Double click on the InfoPackage for respective datasource(ZBODSTGT) and fill the “3rd party selection” details as below and save it.
Repository    : BODS repository name
JobServer     : BODS running jobserver name
JobName     : BODS job name
/wp-content/uploads/2014/10/24_572357.jpg
Job Execution from BW system: Right click and execute infopackage. It will trigger BODS job which will load the data into BW datasource.
/wp-content/uploads/2014/10/25_572359.jpg
OR
Double click on InfoPackag, go to ‘Schedule’ tab and click on start:
/wp-content/uploads/2014/10/26_572362.jpg
Job Execution from BODS designer: Go to BODS designer, Right click on the BODS job and Execute.
/wp-content/uploads/2014/10/27_572363.jpg
/wp-content/uploads/2014/10/28_572364.jpg

Verifying Data in BW :

  1. Go to Datasource and right click go to Manage :
/wp-content/uploads/2014/10/29_572365.jpg
When we execute the job, it will generate a request for data extraction from BODS :
/wp-content/uploads/2014/10/30_572369.jpg
2     Select latest request and click on PSA maintenance which will show the data in target datasource.
After loading data to BW datasource, it can be mapped and loaded to any BW target like DSO or Cube using process chain in “Schedule” tab of InfoPackage:
Go to ‘Schedule Option-> Enter Process Chain name in ‘AfterEvent’

No comments:

Post a Comment