Professional Documents
Culture Documents
Substitution
Parameter
MDM
$$MDMIn
/F65/sapdata1/ds/MDM/data-in/
Finance
$$FinanceIn
/F65/sapdata1/ds/Finance/data-in/
Common
$$CommonIn
/F65/sapdata1/ds/Common/data-in/
Solution
Area
Substitution
Parameter
MDM
$$MDMOut
/F65/sapdata1/ds/ MDM/data-out/
Finance
$$FinanceOut
/F65/sapdata1/ds/ Finance/data-out/
Common
$$CommonOut
/F65/sapdata1/ds/ Common/data-out/
Output Files
1) Loading data from a flatfile to a Database table:Below are the steps to create File format, DB connection using Datastore and
loading data.
I) Creating DataStore for SQL database.
1. Logon to the SAP Business Object Data Designer.
2. In Local Object Library click on Datastore Tab.
4. Click "OK" & the Datastore will be created & can be seen in the Local
Object Library as shown below.
2. Select "Flat Files", right click & click on "New". Flat File Editor will open
as shown below.
When you select the File Name it will ask to overwrite the schema. I have
selected "Yes" option in this option.
As a result of this you can see the altered schema on top of the RHS.
Here the root directory path and File name can be maintained using
Substitution parameter/Global variable.
4. After giving all the details press "Save & Close". File Format will be created
& can be seen in the Local Object Library.
Now after creating the Datastore & File Format we will design a job
in the Data Service Designer.
III) Creating a job in Data Service Designer.
1.
Create a project.
Go to the "Project Area" in the Data Service Designer & click the icon
Window for creating the new project will open. Give project name &
click "Create"
New project will be created & can be seen in the Project Area.
2. Create a Batch Job.
Select the job, drag dataflow from palette into it & name it.
Drag a Query into the dataflow & connect it to the file format.
5. Mapping
Open the query & do mapping.
Select all the fields on LHS, right click & select "Map to Output".
Now you can see the fields mapped to RHS as shown below.
To make "ID" as the key field , Right click on the "ID" field & mark it as
a Primary Key.
Click on "OK".
Template table can be seen in the dataflow.
Connect Template table to Query.
2) Loading data from a XML file to a Database table:Generally XML data is maintained in 2 different files.
XSD/DTD
XML
XML Data file
DTD or XSD(XML Schema definition) file consists of structure or column
names and datatypes.
XML file consists of data for the structure in XSD.
These files should be combined to extract data from .xml file according to
the structure in .XSD.
Steps to create Format and extracting XML data as follows.
Go to local object library in data services designer. Click Formats -> XML
Schemas
A new window pops up. Give the desired format name under the tab Format
name
We have to browse the xml schema file. Files in .XSD format have to be used. For this we can use any
tools available to convert a .xml file into .xsd file.
If the file imported is not proper (format issue),then an error will be thrown
while importing.
For E.g.:
After importing successfully give the corresponding Root element name from
the drop down.
Click Ok.
The imported schema will be found under XML Schemas in local object
library.
Or
Create a project
Drag the DTD File Format into workspace and make XML File Source.
Go to another XML_Pipeline and Drag the required columns into Schema Out.
Go to Qyery Transformation and Drag the columns to schema out and write
condition in Where.