Upload
lingesh1892
View
232
Download
3
Embed Size (px)
Citation preview
8/17/2019 SAP TBW10 4 Converted
1/108
TBW10 Lesson: Loading flat files
114-10-2008 © 2008 SAP AG. All rights reserved.
→
→
271 Exercise 10: Attribute data
load/text from a CSV fileDuration of the exercise: 40 Minutes
Objectives of the Exercises
At the end of this exercise, you will be able to:
• Load master data using the flat file interface
• Use transforms to attributes and texts
• Create formulas using the formula editor
Business Case
You receives data from the cost center in comma separated file (CSV) fromanother system. The files have information about the attributes and texts of itsInfoObjeto of cost center of 13 characters (COSTC##).
System Data
System: Assigned systemPrincipal: 800User ID: Assigned user IDKey of access: Assigned password
Parameterizations of the system:
1. To load flat files, participants need a local disk drive with both write andread access.
This may be the N:\ drive in to terminal server (Citrix) environment.
The flat files are downloaded via document integration from a link on the User Menu. They are also available as attachments in the Shared Folders(transaction OS04) in the folder Training/BW310/ in the file Material for
BW310 (this is a back up, use the path in the exercise as a first choice toget the files).
Task 1: PreparationTo prepare the following year, then a download the CSV files necessary to your workstation.
1. In the SAP menu Easy Access, select User Menu Files Drawings Model for scenarios of flat files (double click) and betweenIn the SAP Web Application Server.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
2/108
Chapter 4: acquisition of data from other systems TBW10
2 © 2008 SAP AG. All rights reserved. 14-10-2008
On the left, on the shortcut menu of master data of cost center 1,select Record target as... To make a download of the CSV file on your
workstation.Specify your local directory depending on the environment in its class.
Council: Follow the instructions provided by your instructor. The
directory and drive available depend on the environment of thecourse. Select theUnit N:\, for example, if you are in a Citrix environment.
Save the file with the name T_COSTCENTER_MD01.csv.
Task 2 - Set global transfer routinesThe values of the external cost center have a length of 13 characters. Thiscoincides exactly with the length of its characteristics (COSTC InfoObjeto##).
However, you should still check again the global transfer routines for itscharacteristic COSTC##. Since the three-character prefix is required only if thedata are not loaded using the flat file interface, you must implement a test in theroutine that discover from what source system data is loaded.
1. Access your InfoObjeto COSTC## and Select the modify mode. Inthe General tab, access the existing transfer routine in the modify mode.
2. Modify the routine of global transfer.
Insert a new line below the line *$*$ begin of routine -insert your code only below this line, and complete thenew line as follows.
*$*$ home of the routine: Insert your code only below this line
Check source_system 'I_EXTERN'.
Shift result right by 3 places.
Result(3) = source_system.
Returncode = 0.
*$*$ end of the routine: Insert your code only before this line
Attention: Be sure to use the correct capitalization of thetechnical name for the source system.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
3/108
TBW10 Lesson: Loading flat files
314-10-2008 © 2008 SAP AG. All rights reserved.
Check the syntax of the modification and record the transfer routine.Then select Its InfoObjeto.
Task 3 - Creation of a source of file data plane for the upload of master data
To distribute information on attributes and texts to the respective tables of itscharacteristic of cost center, create a data source for the upload of Flat files and remove the CSV file using the flat file interface.
1. Create a data source for the interface of flat file.
From the Workbench, go to the view of a system data sourcesource I_Extern. Locate your application component of the Group ##(ZT_BW310_GR##), select Create data source on the shortcut menu and
enter the following values.
Field Name Value
Data Source Costc##_MD_flatfile
Source system I_EXTERN
Data source data class Master Data Attributes
2. In the Update screen of the data source, enter brief descriptions, stockingsand explanatory (Gr ## MD from the flat file) for your data source on the
label General Information.
3. Insert all the necessary information on the labels removal , Proposal ,and Fields.
In the Label Removal , select your file plan for master data using thefunctionality Explore. Select 1 row of header that is ignored. The format of the data should be separated by spacer (for example, separated by commas).Enter ; as a separator character data and " as an escape character.
In the proposed label , select Load sample data and see the list of proposals. Make sure that all of the fields are marked with a copy to thelist of fields. This list proposal derives from the header line and thecontents of your flat file.
In the Label Fields can get a list of all the possible fields for the datasource that derives from the proposal. At this point you need to check if the classes of field and lengths are correct (if they match with the file thathas received or that will receive). In some cases, the proposal will not beaccurate, and shall adjust the classes and the lengths of the fields in thelabel fields.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
4/108
Chapter 4: acquisition of data from other systems TBW10
4 © 2008 SAP AG. All rights reserved. 14-10-2008
This happens with the field length and the data class for theobject SOCIETY CO (CO_area). To be able to load the information with
success you need to make sure that the class data for co_area is fixedat CHAR, length 4. An easy way to do this is using 0CO_AREA asInfoObjeto model, in order to properly get the kind of field and the lengths.
Active Your data source.
Then go to the label Pres.prel. And see the data that will load the BIsystem.
Return to the source tree of data using the back button .
Task 4: Creating transforms
Connect your data source with the attributes and text tables of its featuresInfoObjeto COSTC##. To do this, create transformations between the twoobjects. You need to create a set of transforms to do a upload text data, andanother to populate the data attributes.
1. Create the transformations for the attribute data. In the shortcut menu of your data source costc##_MD_flatfile, select Create transformation andenter the following values in the target area of the transformation.
Field Name Value
Object Class InfoObjeto
Object subclass Attributes Name Costc##
Make sure that the following data are correct for the source area of thetransformation .
Field Name Value
Object Class Data Source
Data Source Costc##_MD_flatfile
Source system I_Extern
2. Update the transformations to make an upload of data attributes from your file flat in the feature COSTC##.
Some of the attributes of its characteristic can be filled out by using directmapping to fields in the data source. Connect to the fields in the data sourceto the left of the table with the InfoObjetos its characteristic as shown on theright side of the table below.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
5/108
TBW10 Lesson: Loading flat files
514-10-2008 © 2008 SAP AG. All rights reserved.
Data Source Field InfoObjeto
CO_AREA 0CO_AREA
CostcenterNeu COSTC##
BUS_AREA 0BUS_AREA
COMP_CODE 0COMP_CODE
PROFIT_CTR 0PROFIT_CTR
RESP_PERS 0RESP_PERS
3. Manually update the transformations for the InfoObjetos 0DATETO,0DATEFROM and 0CURRENCY, because the file level does not provide data to these fields. Create the following Transforms.
InfoObjeto Transformation
0DATETO Constant: 31.12.9999
0DATEFROM Create a date formula to assign thecurrent date to the data load process. To dothis, use the system field SYST-datum inthe formula editor.
0CURRENCY Data reading teachers: InfoObjetosource 0CO_AREA
Activate your changes and return to the previous screen.
4. Create transforms to do a upload of the text information in the flat file tothe text table of its InfoObjeto. Select Create Transform from the contextmenu of your data source costc##_MD_flatfile and enter the followingvalues in the target area of the transformation.
Field Name Value
Object Class InfoObjeto
Object subclass Texts
Name Costc##
Make sure that the following data are correct for the source area of thetransformation .
Continued on next page
8/17/2019 SAP TBW10 4 Converted
6/108
Chapter 4: acquisition of data from other systems TBW10
6 © 2008 SAP AG. All rights reserved. 14-10-2008
Field Name Value
Object Class Data Source
Data Source Costc##_MD_flatfile
Source system I_Extern
5. Update the transformations to make an upload text data from your flatfile to the feature COSTC##.
Some of the InfoObjetos its characteristic can be filled out by using directmapping to fields in the data source. Connect to the fields in the source of data in the table on the left with the InfoObjetos its characteristic as shownin the following table.
Data Source Field InfoObjeto
CO_AREA 0CO_AREA
CostcenterNeu COSTC##
TXTMD 0TXTSH
TXTMD 0TXTMD
6. Update the transformations for the InfoObjetos 0DATETO, 0DATEFROM,and 0LANGU because the file level does not supplied the data for thosefields. Create the following Transforms.
Info Objeto Tra nsfo rmation
0DATETO Constant: 31.12.9999
0DATEFROM Create a date formula to assign the currentdate to the data load process. To do this, usethe system field SYST-datum in the formulaeditor.
0LANGU Create a formula of language to assign the systemlanguage for the data load process. To do this, usethe system field SYST-LANGU/language on the
formula editor.
Activate your changes and return to the previous screen.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
7/108
TBW10 Lesson: Loading flat files
714-10-2008 © 2008 SAP AG. All rights reserved.
→
Task 5 - Creation of a InfoPaquete and loading data toPSA
After having defined the data flow, load the data of your file plane to thecorresponding PSA table.
1. Create a InfoPaquete for your data source costc##_MD_flatfile. In theview of the source of data for the source system I_Extern, select Create
Package info from the context menu of your data source. Fill in thedescription file data plane teachers Gr 01.
2. In the Label Removal , check the parameter settings and make sure your flatfile will be charged. The parameterizations are taken from its definition of the data source. The data should be updated in PSA only. Make sure it isselected the full update mode.
Record the options.
3. Start the InfoPaquete and verify the treatment in the monitor.
In the Label Anticipate, select Start Load dat.inmediat. Start .
Task 6: Creation of processes for transferring data to make an upload of master data inthe destination
Create and schedule processes for transferring data, one for the attribute andanother for text data, to load the master data from the PSA table to the data tables
teachers of his InfoObjeto of features.1. Load the data attributes from the table PSA to the attribute table of its
InfoObjeto of features. In the window Workbench - Modeling , openThe view of InfoSitio and locate your application component (Group##).Below its characteristics (COSTC InfoObjeto##) you will find threestructures for hierarchies, attributes and texts. Select the structure of attributes and find the folder data transfer process under The structure. From its context menu, select Create Data Transfer process.In the dialog window, fill in the following information.
Field Name Value
Data Transfer Process GR## attribute data ofthe cost center of theflat file
Object class (destination the DWP) InfoObjeto
Object Subtype (destination
the DWP)
Attributes
Continued on next page
8/17/2019 SAP TBW10 4 Converted
8/108
Chapter 4: acquisition of data from other systems TBW10
310 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Field Name Value
Name (destination of the DWP Costc##
Object class (source the DWP) Data Source
Data source (source the DWP) Costc##_MD_flatfile
Source system (source of PTD) I_Extern
2. Update the labels removal , Update, and run its process of data transfer with:
Pull mode = Full.
Treatment of errors = Updating of valid records, without reporting(request red)
Record and enable its data transfer process. Run the data transfer process and verify the data load on the monitor Requests. Note the entire data stream and verify the data that has beentransferred to the system.
3. To load the text data from the PSA table to the tables in the text of itscharacteristic InfoObjeto, proceed in the same way as with the attributes. Inthe window Workbench - Modeling , open the view of InfoSitio and locateyour application component (Group##). Under its characteristics (COSTCInfoObjeto##) you will find a structure for texts, Cost Center (texts), with afolder data transfer process. From its context menu, select Create Data
Transfer process. In the dialog window, fill in the following information.
Field Name Value
Data Transfer Process GR## Text DataThe cost center of theflat file
Object class (destination the DWP) InfoObjeto
Object Subtype (destination
the DWP)
Texts
Name (destination the DWP) Costc##
Object class (source the DWP) Data Source
Data source (source the DWP) Costc##_MD_flatfile
Source system (source of PTD) I_Extern
4. Update the labels removal , Update, and run its process of data transfer with:
Continued on next page
8/17/2019 SAP TBW10 4 Converted
9/108
TBW10 Lesson: Loading flat files
31114-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Pull mode = Complete
Treatment of errors = Updating of valid records, without reporting (request
red)
Record and enable its data transfer process. Run the data transfer process and verify the data load on the monitor Requests. Note the entire data stream and verify the data that has beentransferred to the system.
8/17/2019 SAP TBW10 4 Converted
10/108
Chapter 4: acquisition of data from other systems TBW10
312 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
→
→
Solution 10: Attribute data
load/text from a CSV fileTask 1: Preparation
To prepare the following year, then a download the CSV files necessary to your workstation.
1. In the SAP menu Easy Access, select User Menu Files Drawings Model for scenarios of flat files (double click) and betweenIn the SAP Web Application Server.
On the left, on the shortcut menu of master data of cost center 1,select Record target as... To make a download of the CSV file on your
workstation.Specify your local directory depending on the environment in its class.
Council: Follow the instructions provided by your instructor. Thedirectory and drive available depend on the environment of thecourse. Select the unit N:\, for example, if you are in a Citrixenvironment.
Save the file with the name T_COSTCENTER_MD01.csv.
a) Follow the instructions in the previous exercise.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
11/108
TBW10 Lesson: Loading flat files
31314-10-2008 © 2008 SAP AG. Reservados todos los derechos.
→
→ → →
Task 2 - Set global transfer routines
The values of the external cost center have a length of 13 characters. This
coincides exactly with the length of its characteristics (COSTC InfoObjeto##).
However, you should still check again the global transfer routines for itscharacteristic COSTC##. Since the three-character prefix is required only if thedata are not loaded using the flat file interface, you must implement a test in theroutine that discover from what source system data is loaded.
1. Access your InfoObjeto COSTC## and Select the modify mode. Inthe General tab, access the existing transfer routine in the modify mode.
a) In the SAP screen Easy Access, select Menu SAP Modeling Workbench: Modeling InfoObjetos Training BW
Customer Training BW BW310 DataWarehousing
Group## .
In its InfoObjeto COSTC## select Modify from the shortcut menu.
b) In the General tab, in the area of routine transfer, select
Update .
2. Modify the routine of global transfer.
Insert a new line below the line *$*$ begin of routine -insert your code only below this line, and complete thenew line as follows.
*$*$ home of the routine: Insert your code only below this line
Check source_system 'I_EXTERN'.
Shift result right by 3 places.
Result(3) = source_system.
Returncode = 0.
*$*$ end of the routine: Insert your code only before this line
Attention: Be sure to use the correct capitalization of the
technical name for the source system.
Continued on next page
→
→ →
8/17/2019 SAP TBW10 4 Converted
12/108
Chapter 4: acquisition of data from other systems TBW10
314 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Check the syntax of the modification and record the transfer routine.Then select Its InfoObjeto.
a) Position the cursor at the start of the line move result and selectEnter to insert a new line.
b) Complete the codification of the new line as specified before.
c) Select Check .
d) Select Record .
e) Active Its InfoObjeto and leave the update the InfoObjeto by
selecting .
Task 3 - Creation of a source of file data plane for theupload of master data
To distribute information on attributes and texts to the respective tables of itscharacteristic of cost center, create a data source for the upload of Flat files and remove the CSV file using the flat file interface.
1. Create a data source for the interface of flat file.
From the Workbench, go to the view of a system data sourcesource I_Extern. Locate your application component of the Group ##(ZT_BW310_GR##), select Create data source on the shortcut menu andenter the following values.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
13/108
TBW10 Lesson: Loading flat files
31514-10-2008 © 2008 SAP AG. Reservados todos los derechos.
→
Field Name Value
Data Source Costc##_MD_flatfile
Source system I_EXTERN
Data source data class Master Data Attributes
a) In the Workbench, select Modeling Data Sources.Select the source system I_Extern using the button Select source system.
b) Select Training BW ## (ZT_BW310_GR##).
BW 310 Data Warehousing Group
c) On the shortcut menu for the application component Group ## ,
select Create data sources.
Tip: You may need to select the icon Hide/Show empty folders to view your application component.
d) Enter the required information as specified above.
e) Select Transfer .
2. In the Update screen of the data source, enter brief descriptions, stockingsand explanatory (Gr ## MD from the flat file) for your data source on thelabel General Information.
a) Change to modify mode by selecting Edit Data Source, if necessary .
b) Enter Gr ## MD from the flat file as brief description, media and explanatory.
3. Insert all the necessary information on the labels removal , Proposal ,and Fields.
In the Label Removal , select your file plan for master data using thefunctionality Explore. Select 1 row of header that is ignored. The format of the data should be separated by spacer (for example, separated by commas).
Enter ; as a separator character data and " as an escape character.In the proposed label , select Load sample data and see the list of proposals. Make sure that all of the fields are marked with a copy to thelist of fields. This list proposal derives from the header line and thecontents of your flat file.
Continued on next page
→
→
8/17/2019 SAP TBW10 4 Converted
14/108
Chapter 4: acquisition of data from other systems TBW10
316 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
In the Label Fields can get a list of all the possible fields for the datasource that derives from the proposal. At this point you need to check if
the classes of field and lengths are correct (if they match with the file thathas received or that will receive). In some cases, the proposal will not beaccurate, and shall adjust the classes and the lengths of the fields in thelabel fields.
This happens with the field length and the data class for theobject SOCIETY CO (CO_area). To be able to load the information withsuccess you need to make sure that the class data for co_area is fixedat CHAR, length 4. An easy way to do this is using 0CO_AREA asInfoObjeto model, in order to properly get the kind of field and the lengths.
Active Your data source.
Then go to the label Pres.prel. And see the data that will load the BI system.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
15/108
TBW10 Lesson: Loading flat files
31714-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Return to the source tree of data using the back button .
a) In the Label Removal , set the following options:
Description Value
Adapter Load file class of textfrom the local
workstation
Name of the file [path for your flat file]
Header rows thatshould be ignored
1
Data Format Separated by spacer (for
example, separated by commas)Data separator character
;
Escape symbol "
b) To obtain a proposal of the system, make sure that the proposed label ,the converter field contains the value separated by spacer.... Enter anumber (100, for example) for the number of records. Then select the button to load sample data.
c) For the proposed fields are copied from the list in the field, verify
all bookmarks in the first column, copy in the list of fields.d) Check the list of fields in the Label field . Although it may be that the
proposal is not perfect, will allow the data is loaded with one exception.For the first column (SOCIETY CO) add the InfoObjeto 0CO_area inthe column of the model of InfoObjeto and then press Enter andfinally copy. This will copy the lengths of field and the kind of data of 0CO_area in their field labels.
e) Active Your data source.
f) In the Label Preview, you will get a preview of your data by enteringa number (100, for example) for the No. field of data records. Then
select the button Read data from the Print Preview. Check if the datafits correctly in the fields in your data source.
g) Return to the source tree of data by selecting Back .
Continued on next page
8/17/2019 SAP TBW10 4 Converted
16/108
Chapter 4: acquisition of data from other systems TBW10
318 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Task 4: Creating transforms
Connect your data source with the attributes and text tables of its features
InfoObjeto COSTC##. To do this, create transformations between the twoobjects. You need to create a set of transforms to do a upload text data, andanother to populate the data attributes.
1. Create the transformations for the attribute data. In the shortcut menu of your data source costc##_MD_flatfile, select Create transformation andenter the following values in the target area of the transformation.
Field Name Value
Object Class InfoObjeto
Object subclass Attributes
Name Costc##
Make sure that the following data are correct for the source area of thetransformation .
Field Name Value
Object Class Data Source
Data Source Costc##_MD_flatfile
Source system I_Extern
a) In the Workbench, select Modeling InfoÁrea selecting Training BW Group
## .
Data Sources. Go to your BW310 Data Warehousing
→
b) Select Create Transform in the shortcut menu for the data sourcecostc##_MD_flatfile.
c) In the dialog window, fill in the information as shown in the preceding table.
2. Update the transformations to make an upload of data attributes from your file flat in the feature COSTC##.
Some of the attributes of its characteristic can be filled out by using directmapping to fields in the data source. Connect to the fields in the data sourceto the left of the table with the InfoObjetos its characteristic as shown on theright side of the table below.
Continued on next page
→
→
8/17/2019 SAP TBW10 4 Converted
17/108
TBW10 Lesson: Loading flat files
31914-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Data Source Field InfoObjeto
CO_AREA 0CO_AREA
CostcenterNeu COSTC##
BUS_AREA 0BUS_AREA
COMP_CODE 0COMP_CODE
PROFIT_CTR 0PROFIT_CTR
RESP_PERS 0RESP_PERS
a) You may need to change the way your screen of transforms fromDisplay to modify.
b) Create the necessary allocations between the fields of the data sourceand the InfoObjetos by dragging them with the mouse.
3. Manually update the transformations for the InfoObjetos 0DATETO,0DATEFROM and 0CURRENCY, because the file level does not provide data to these fields. Create the following Transforms.
InfoObjeto Transformation
0DATETO Constant: 31.12.9999
0DATEFROM Create a date formula to assign thecurrent date to the data load process. To do
this, use the system field SYST-datum inthe formula editor.
0CURRENCY Data reading teachers: InfoObjetosource 0CO_AREA
Continued on next page
8/17/2019 SAP TBW10 4 Converted
18/108
Chapter 4: acquisition of data from other systems TBW10
320 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Activate your changes and return to the previous screen.
a) Double click on the transformation of the InfoObjeto 0DATETO to
enter in the dialog window Rule Details. In the drop-down box ruleclass, select Constant e enter 31.12.9999 in the field constant value.
b) Select the Pad Transfer values to confirm and continue.
c) By double clicking on the transformation of 0DATEFFROM shallenter in the dialog window Rule Details. Enter current date asthe description and select formula in the drop down window classrule. You may receive a messageWarning that the formula does not have input fields, simply accept thewarning message and continue.
d) In the formula editor you can easily create assignments and simpleencodings. On the left side of the selection field, select System
fields from the drop-down menu. Add the field SYST-DATUM (currentdate) to its formula by double clicking on it.
e) Verify your formula and abandon the formula editor by selecting
Back .
f) Confirm the transformation with the pushbutton transfer values.
g) Double click on the transformation of the InfoObjeto 0currency toenter in the dialog window Rule Details. First select Read master data from drop-down box Class Rule.Then add the field CO_AREA to the source fields of the rule usingthe Add button field source . In addition,Enter 0CO_AREA In the Assignment field IO. And finally press F4 inthe field InfoObjeto font , to get 0CO_AREA as info object source.
h) Select the Pad Transfer values to confirm and continue.
i) Active Their transformations.
4. Create transforms to do a upload of the text information in the flat file tothe text table of its InfoObjeto. Select Create Transform from the contextmenu of your data source costc##_MD_flatfile and enter the following
values in the target area of the transformation.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
19/108
TBW10 Lesson: Loading flat files
32114-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Field Name Value
Object Class InfoObjeto
Object subclass Texts
Name Costc##
Make sure that the following data are correct for the source area of thetransformation .
Continued on next page
8/17/2019 SAP TBW10 4 Converted
20/108
Chapter 4: acquisition of data from other systems TBW10
322 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Field Name Value
Object Class Data Source
Data Source Costc##_MD_flatfile
Source system I_Extern
a) In the Workbench, select Modeling InfoÁrea selecting Training BW Group
## .
Data Sources. Go to the BW310 Data Warehousing
→
b) On the shortcut menu for the data source costc##_MD_flatfile,select Create Transform.
c) In the dialog window, fill in the information as shown in the
preceding table.
5. Update the transformations to make an upload text data from your flatfile to the feature COSTC##.
Some of the InfoObjetos its characteristic can be filled out by using directmapping to fields in the data source. Connect to the fields in the source of data in the table on the left with the InfoObjetos its characteristic as shownin the following table.
Data Source Field InfoObjeto
CO_AREA 0CO_AREA
CostcenterNeu COSTC##
TXTMD 0TXTSH
TXTMD 0TXTMD
a) Create the necessary allocations between the fields of the data sourceand the InfoObjetos by dragging them with the mouse.
Tip: You may first need to change the way your screen of
transforms from Display to modify.
6. Update the transformations for the InfoObjetos 0DATETO, 0DATEFROM,and 0LANGU because the file level does not supplied the data for thosefields. Create the following Transforms.
Continued on next page
→
→
8/17/2019 SAP TBW10 4 Converted
21/108
TBW10 Lesson: Loading flat files
32314-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Info Obje to Tra nsfo rma tion
0DATETO Constant: 31.12.9999
0DATEFROM Create a date formula to assign the currentdate to the data load process. To do this, usethe system field SYST-datum in the formulaeditor.
0LANGU Create a formula of language to assign the systemlanguage for the data load process. To do this, usethe system field SYST-LANGU/language on theformula editor.
Activate your changes and return to the previous screen.
a) Double click on the transformation of the InfoObjeto 0DATETO toenter in the dialog window Rule Details. In the drop-down box ruleclass, select Constant e enter 31.12.9999 in the field constant value.
b) Select the Pad Transfer values to confirm and continue.
c) By double clicking on the transformation of 0DATEFFROM shallenter in the dialog window Rule Details. Enter current date asthe description and select formula in the pop-up window for the classof the rule.
d) In the formula editor you can easily create assignments and simpleencodings. On the left side of the selection field, select System
fields from the drop-down menu. Insert the field SYST- DATUM (current date) by double-clicking its formula.
e) Leave the formula editor by selecting Back And confirmthe transform using the pushbutton transfer values.
f) Select the transform for 0LANGU by double-clicking on the tablefield central. Register language as the description andselect formula in the drop down window class rule.
g) In the formula editor you can easily create assignments and simple
encodings. On the left side of the selection field, select System Fields in the drop-down menu. Insert the field SYST- LANGU (language key) by double-clicking its formula.
h) Leave the formula editor by selecting Back And confirm thetransform using the pushbutton transfer values.
i) Select Enable .
Continued on next page
8/17/2019 SAP TBW10 4 Converted
22/108
Chapter 4: acquisition of data from other systems TBW10
324 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
→ →
→
→
Task 5 - Creation of a InfoPaquete and loading data toPSA
After having defined the data flow, load the data of your file plane to thecorresponding PSA table.
1. Create a InfoPaquete for your data source costc##_MD_flatfile. In theview of the source of data for the source system I_Extern, select Create
Package info from the context menu of your data source. Fill in thedescription file data plane teachers Gr 01.
a) Select Workbench Administrator Modeling Sources of Data. Make sure that you get the view of the source of data for thesource system I_extern.
b) Select Training BW BW DataWarehousing
Group ##
(ZT_BW310_GR##). Select Create InfoPaquete in the shortcut menu of your data source.
c) Enter file data plane teachers GR## as the description of theInfoPaquete.
d) Select Record .
2. In the Label Removal , check the parameter settings and make sure your flatfile will be charged. The parameterizations are taken from its definition of the data source. The data should be updated in PSA only. Make sure it isselected the full update mode.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
23/108
TBW10 Lesson: Loading flat files
32514-10-2008 © 2008 SAP AG. Reservados todos los derechos.
→
Record the options.
a) In the Label Removal , make sure that the following are correct
parameterizations.
Description Value
Adapter Load file class of textfrom the local
workstation
Name of the file [path for your flat file]
Header rows thatshould be ignored
1
Data Format Separated by spacer (forexample, separated by
Data separator character
;
Escape symbol "
b) In the Label Process, select the option only PSA.
c) In the Label Update, select the update mode Full .
3. Start the InfoPaquete and verify the treatment in the monitor.
In the Label Anticipate, select Start Load dat.inmediat. Start .
a) In the Label Anticipate, select Start loading data immediatelyAnd start the data load process by selecting .
b) Select to verify the data load process in the monitor.
Task 6: Creation of processes for transferring data to make an upload of master data inthe destination
Create and schedule processes for transferring data, one for the attribute and
another for text data, to load the master data from the PSA table to the data tablesteachers of his InfoObjeto of features.
1. Load the data attributes from the table PSA to the attribute table of itsInfoObjeto of features. In the window Workbench - Modeling , openThe view of InfoSitio and locate your application component (Group##).Below its characteristics (COSTC InfoObjeto##) you will find threestructures for hierarchies, attributes and texts. Select the structure of attributes and find the folder data transfer process under
Continued on next page
8/17/2019 SAP TBW10 4 Converted
24/108
Chapter 4: acquisition of data from other systems TBW10
326 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
→
The structure. From its context menu, select Create Data Transfer process.In the dialog window, fill in the following information.
Field Name Value
Data Transfer Process GR## attribute data ofthe cost center of theflat file
Object class (destination the DWP) InfoObjeto
Object Subtype (destination
the DWP)
Attributes
Name (destination of the DWP Costc##
Object class (source the DWP) Data Source
Data source (source the DWP) Costc##_MD_flatfile
Source system (source of PTD) I_Extern
a) To reach its InfoCubo of feature, select Workbench Modeling InfoSitios Training BW BW310 Data
Warehousing Group ## Costc## .
Tip: To refresh the tree to refresh the display.
b) In the shortcut menu of the folder data transfer process below thestructure cost center (attribute), select Create Data Transfer process and enter the values as listed in the above table.
c) Select Continue (Enter) .
2. Update the labels removal , Update, and run its process of data transfer with:
Pull mode = Full.
Treatment of errors = Updating of valid records, without reporting(request red)
Continued on next page
→ → →
→ →
8/17/2019 SAP TBW10 4 Converted
25/108
TBW10 Lesson: Loading flat files
32714-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Record and enable its data transfer process. Run the data transfer process and verify the data load on the monitor
Requests. Note the entire data stream and verify the data that has beentransferred to the system.
a) In the Label Removal , select the Full removal mode.
b) In the Label Update, select for the treatment of errors:Update of valid records, without reporting (request red).
c) In the Label run, select the mode of treatment removal in series, parallel treatment immediately.
d) Active The process of transfer of data.
e) Select the Run button In the Label Run to start the data transfer
process.f) Check the flow of data in the monitor of request.
g) Verify the data transferred to BI through the navigation on theworkbench in view of the InfoSitio and then to its InfoÁrea Group##.Select Update master data in the shortcut menu of your InfoObjeto(COSTC##) . Verify the cost centers that have an ID that startswith 12 3.
h) Select Run .
i) View the entire data stream in the workbench. Go to the view InfoSitio,navigate to your InfoÁrea Group## and deploy the entire data stream below its characteristic costc##. Alternatively, select Show Data flow in the shortcut menu of the Object Info.
3. To load the text data from the PSA table to the tables in the text of itscharacteristic InfoObjeto, proceed in the same way as with the attributes. Inthe window Workbench - Modeling , open the view of InfoSitio and locateyour application component (Group##). Under its characteristics (COSTCInfoObjeto##) you will find a structure for texts, Cost Center (texts), with afolder data transfer process. From its context menu, select Create DataTransfer process. In the dialog window, fill in the following information.
Field Name Value Data Transfer Process GR## text data of the
cost center of theflat file
Object class (destination the DWP) InfoObjeto
Continued on next page
8/17/2019 SAP TBW10 4 Converted
26/108
Chapter 4: acquisition of data from other systems TBW10
328 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
→ →
→
→
Field Name Value
Object Subtype (destination
the DWP)
Texts
Name (destination the DWP) Costc##
Object class (source the DWP) Data Source
Data source (source the DWP) Costc##_MD_flatfile
Source system (source of PTD) I_Extern
a) To reach its InfoObjeto, Select Workbench Modeling InfoSitios Training BW BW310 Data Warehousing Group
## Costc## .
Tip: To refresh the tree to refresh the display.
b) In the shortcut menu of the folder data transfer process under thestructure of text, select Create Data Transfer process and enter thevalues as they appear in the list of the table.
c) Select Continue (Enter) .
4. Update the labels removal , Update, and run its process of data transfer with:
Pull mode = Complete
Treatment of errors = Updating of valid records, without reporting(request red)
Continued on next page
→ →
8/17/2019 SAP TBW10 4 Converted
27/108
TBW10 Lesson: Loading flat files
32914-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Record and enable its data transfer process. Run the data transfer process and verify the data load on the monitor
Requests. Note the entire data stream and verify the data that has beentransferred to the system.
a) In the Label Removal , select the Full removal mode.
b) In the Label Update, select for the treatment of errorsUpdate of valid records, without reporting (request red).
c) In the Label run, select the mode of treatment removal in series, parallel treatment immediately.
d) Active The process of transfer of data.
e) Select the Run button In the Label Run to start the data transfer
process.f) Verify the process of transfer of data on the monitor of the request.
g) Verify the data transferred to BI through the navigation on theworkbench to the sight of InfoSitio, in its InfoÁrea Group##, andselect Manage master data in the shortcut menu of your InfoObjetoGR##HUB1. Verify the cost centers that have an ID that startswith 123*.
h) Select Run .
i) View the entire data stream in the workbench. Go to the view InfoSitio,navigate to your InfoÁrea Group## and deploy the entire data stream below its characteristic costc##. Alternatively, select Show Data flow in the shortcut menu of the Object Info.
8/17/2019 SAP TBW10 4 Converted
28/108
Chapter 4: acquisition of data from other systems TBW10
330 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
8/17/2019 SAP TBW10 4 Converted
29/108
TBW10 Lesson: Loading flat files
33114-10-2008 © 2008 SAP AG. Reservados todos los derechos.
297 Exercise 11: Loading data variables
from CSV filesDuration of the exercise: 30 Minutes
Objectives of the Exercises
At the end of this exercise, you will be able to:
• Load data variables through the interface of file
• Create transforms using the formula editor
Business Case
Each month, your organization evaluates combined data from SAP systems andexternal systems. These reports are based on the InfoCubo of cost centers.
The flat files in .csv format have been created for variable data from externalsystems, and now must be executed a upload of data in its InfoCubo.
System Data
System: Assigned systemPrincipal: 800User ID: Assigned user IDKey of access: Assigned password
Parameterizations of the system: (not necessary as we are loading viaApplication Server)
Task 1 - Creation of a source of file data plane for transaction data
To run the upload of data variables from a flat file, you must first create a sourceof file data plane.
1. Create a data source for the interface of flat file.
From the Workbench, go to the view of the data source. Make sure thatdisplays the tree of source of data for the source system I_extern. Go to the
component of the Application Group ## (ZT_BW310_GR##), select Createdata source from the shortcut menu and enter the following values.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
30/108
Chapter 4: acquisition of data from other systems TBW10
332 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
→ → →
Field Name Input Value
Data Source Costc##_td_flatfile
Source system I_Extern
Data source data class Variable Data
2. In the update of your data source, enter Flat File Gr## TD as brief descriptions, stockings and explanatory for your data source on thelabel General Information.
3. Insert all the necessary information on the labels removal , Proposal ,and Fields.
The flat file for the variable data has been stored in the application server;
therefore, select Adapter load class of text from application server on the label removal .
Select the flat file for the variable data using the functionality Explore. In the dialog window, select Files to11. Select DIR_TRANS Training CSV T_COSTCENTER_trans01.csv.Double click on the file and select Copy Name.
Select 1 row of header that is ignored. The format of the data should be separated by spacer (for example, separated by commas). Enter ; as aseparator character data and " as an escape character. Specify direct entry as number format, . As a thousands separator, and , as a decimal point
character.In the proposed label , select the pad loading sample data and see the listof proposals. Make sure that all of the fields are marked with a copy to thelist of fields. This list proposal derives from the header line of your flat fileand your data records.
In the Label Fields can get a list of all the possible fields for the data sourcethat derives from the proposal. Check if the fields are correct for your datasource. For the fiscal year Period field , you need to ensure that data can beextracted from the file level to correct data format within BI. Therefore, weuse in InfoObjeto BI 0FISCPER as InfoObjeto model .
First select your data source with the push button .Then go to the tag Pres.prel. And see the data that will load the BI system.
Return to the source tree of data using the Back button .
Continued on next page
8/17/2019 SAP TBW10 4 Converted
31/108
TBW10 Lesson: Loading flat files
33314-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Task 2: Creating transforms
Connect your data source to your InfoCubo Gr##HUB1. To do this, create
transformations between the two objects.
1. From the shortcut menu of your data source costc##_td_flatfile,select Create transformation and enter the following values.
Field Name Value
Object Class InfoCubo
Name GR##HUB1
Make sure that the following data are correct for the source area of the
transformation .
Field Name Value
Object Class Data Source
Data Source Costc##_td_flatfile
Source system I_Extern
2. Update the transformations to run the upload of data variables from your file plan in its InfoCubo GR##HUB1.
Some of the InfoObjetos its InfoCubo can be filled out by using direct
mapping to fields in the data source. Connect the fields in the data sourcewith the InfoObjetos its InfoCubo as shown in the following table.
Data Source Field InfoCubo
CO_AREA 0CO_AREA
COPCCENTERNEU COSTC##
BUS_AREA [no assignment]
COMP_CODE [no assignment]
PROFIT_CTR [no assignment]
COPCELMNT 0COSTELMNT
VERSION 0Version
VTYPE 0VTYPE
METYPE 0METYPE
VTDETAIL 0VTDETAIL
Continued on next page
8/17/2019 SAP TBW10 4 Converted
32/108
Chapter 4: acquisition of data from other systems TBW10
334 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Data Source Field InfoCubo
VALUATION 0valuation
CURTYPE 0CURTYPE
AMOUNT AMOUNT##
QUANTITY 0Quantity
CURRENCY AMOUNT##
UNIT 0Quantity
FISCPER 0FISCPER
3. Manually update the transformations for the InfoObjetos 0FISCVARNT
(fiscal year variant), and 0DB_CR_IND (Indicator sender/receiver) because the flat file did not provide data for those fields.
Info Objeto Tra nsformation
0FISCVARNT Constant: K4
0db_CR_IND Formula:
If (amount < 0 , 'C' , 'D')
The Indicator feature sender/receiver (0DB_CR_IND) is used in reportingto distinguish between creditor and debtor. The flat files do not provide thisinformation directly. For this reason, you can obtain this indicator of thesign +/- together to the amount.
Do this by creating a formula with the description should/have:
If the amount is less than 0, the system assigns the indicator C . On theother hand, the system assigns the indicator D .
Assign the Amount field as a field source of the rule.
The characteristics for the information of trading partners are maintained ininitial form (blank). The data source does not provide this information.
Activate your changes and return to the previous screen.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
33/108
TBW10 Lesson: Loading flat files
33514-10-2008 © 2008 SAP AG. Reservados todos los derechos.
→
→
→
Task 3 - Creation of a InfoPaquete and loading data tothe PSA
After you have defined your data flow, load the data from the file to the PSAlevel table.
1. Create a InfoPaquete for your data source costc##_td_flatfile.
Select SAP Easy Access Modeling Workbench: Modeling Data sources and make sure it is in the View source of data for theexternal system I_extern. Go to the component of the applicationTraining BW BW Data
Warehousing Group ## (ZT_BW310_GR##).
In the shortcut menu of your data source costc##_td_flatfile, select Create InfoPaquete. Enter file data plane variables GR## as the description of
the InfoPaquete.2. In the Label Removal , check the parameter settings and make sure your flat
file will be charged. The parameterizations are taken from its definition of the data source. The data should be transferred to Only PSA and you shouldselect the full update mode.
Record the options.
3. Start the InfoPaquete and verify the treatment in the monitor.
In the Label Anticipate, select Start Load dat.inmediat. Start .
Task 4: Creation of processes for transferring data torun a upload of master data in the destination
Create and schedule a process of transfer of data to load the data variables fromthe PSA table to the fact table of its InfoCubo.
1. Load the data variables from the PSA table to the fact table of its InfoCubo.In the window Workbench - Modeling , open the view of InfoSitio andlocate your application component (Group##). Under its InfoCuboGR##HUB1 you will find the folder Data Transfer Process. From itscontext menu, select Create Data Transfer process. In the dialog window,enter the following information.
Field Name Value
Data Transfer Process GR## transaction dataof the cost center ofthe flat file
Object class (destination the DWP) InfoCubo
Name (destination the DWP) Gr##cube1
Continued on next page
8/17/2019 SAP TBW10 4 Converted
34/108
Chapter 4: acquisition of data from other systems TBW10
336 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Field Name Value
Object class (source the DWP) Data Source
Data source (source the DWP) Costc##_td_flatfile
Source system (source of PTD) I_Extern
2. Update the labels removal , Update, and run its process of data transfer with:
Pull mode = Delta
Treatment of errors = Updating of valid records, without reporting(request red)
Record and enable its data transfer process. Run the data transfer processand verify the data load on the monitor.
3. Note the transferred data. Use the target browser data and verify the costcenters that begin with 123*. Alternatively, you could create a query BExto visualize the data.
Check the flow of data that supplied the data for its InfoCubo.
8/17/2019 SAP TBW10 4 Converted
35/108
TBW10 Lesson: Loading flat files
33714-10-2008 © 2008 SAP AG. Reservados todos los derechos.
→ →
→
Solution 11: Loading data variables from
CSV filesTask 1 - Creation of a source of file data plane for transaction data
To run the upload of data variables from a flat file, you must first create a sourceof file data plane.
1. Create a data source for the interface of flat file.
From the Workbench, go to the view of the data source. Make sure thatdisplays the tree of source of data for the source system I_extern. Go to thecomponent of the Application Group ## (ZT_BW310_GR##), select Create
data source from the shortcut menu and enter the following values.
Field Name Input Value
Data Source Costc##_td_flatfile
Source system I_Extern
Data source data class Variable Data
a) In the Workbench, select SAP Easy Access Modeling Workbench: Modeling Data Sources. Make sure that getsThe tree of the source of data for the source system I_EXTERN,
using pushbutton Select source system. From the shortcut menu for the application component Group ##, select Create data source.
Tip: It may be necessary to select the icon Hide/Showempty folders to view your application component.
b) Enter the information specified above.
c) Select Transfer .
Continued on next page
8/17/2019 SAP TBW10 4 Converted
36/108
Chapter 4: acquisition of data from other systems TBW10
338 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
→ → →
2. In the update of your data source, enter Flat File Gr## TD as brief descriptions, stockings and explanatory for your data source on the
label General Information.a) Change to modify mode using the button Edit Data Source , if
necessary .
b) Enter Flat File Gr ## TD as brief description, media andexplanatory.
3. Insert all the necessary information on the labels removal , Proposal ,and Fields.
The flat file for the variable data has been stored in the application server;therefore, select Adapter load class of text from application server on the label removal .
Select the flat file for the variable data using the functionality Explore. In the dialog window, select Files to11. Select DIR_TRANS Training CSV T_COSTCENTER_trans01.csv.Double click on the file and select Copy Name.
Select 1 row of header that is ignored. The format of the data should be separated by spacer (for example, separated by commas). Enter ; as aseparator character data and " as an escape character. Specify direct entry as number format, . As a thousands separator, and , as a decimal pointcharacter.
In the proposed label , select the pad loading sample data and see the listof proposals. Make sure that all of the fields are marked with a copy to thelist of fields. This list proposal derives from the header line of your flat fileand your data records.
In the Label Fields can get a list of all the possible fields for the data sourcethat derives from the proposal. Check if the fields are correct for your datasource. For the fiscal year Period field , you need to ensure that data can beextracted from the file level to correct data format within BI. Therefore, weuse in InfoObjeto BI 0FISCPER as InfoObjeto model .
First select your data source with the push button .
Then go to the tag Pres.prel.
And see the data that will load the BI system.
Return to the source tree of data using the Back button .
a) In the Label Removal , enter the following values.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
37/108
TBW10 Lesson: Loading flat files
33914-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Field Name Input Value
Adapter Load file ofClass of text from the
Application Server
Name of the file DIR_TRANS Training
CSV T_COSTCEN-
B_trans01.csv.
Header rows that should be
ignored
1
Data Format Separated by Spacer
Data separator character ;
Escape symbol "
Number Format Direct Entry
Thousands separator .
Separator character of
decimal points
,
b) In the pr opo se d label: Make sure that the Converter field contains separated by spacer and enter a number (20, for example) for Number of records.
c) Select the button to load sample data.
d) For the proposed fields are copied from the list in the field, verifyall bookmarks in the first column, copy in the list of fields.
e) Make sure that the fields of ratio AMOUNT AND QUANTITY , theformat indicates the external format and that the length of both fieldsis at least of 11 digits (this could be fixed by default).
f) In the Label fields , you will get a list of the possible fields for thedata source. This derives from the proposal. For thefield FISCPER Enter the object model info 0FISCPER. Then pressenter and copy. This will replace the field length and the classinformation with the InfoObjeto 0FISCPER. Finally check if other fields have the length and the class necessary for the parsing of your file.
g) Check And Active Your data source.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
38/108
Chapter 4: acquisition of data from other systems TBW10
340 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
→ →
→ →
→
h) In the Label Preview , you will get a preview of your data byentering a number (20, for example) for the No. field data
records and selecting the button Read data from print preview.Check if the data fits correctly in the fields in your data source.
i) Return to the source tree of data by selecting Back .
Task 2: Creating transforms
Connect your data source to your InfoCubo Gr##HUB1. To do this, createtransformations between the two objects.
1. From the shortcut menu of your data source costc##_td_flatfile,select Create transformation and enter the following values.
Field Name Value
Object Class InfoCubo
Name GR##HUB1
Make sure that the following data are correct for the source area of thetransformation .
Field Name Value
Object Class Data Source
Data Source Costc##_td_flatfileSource system I_Extern
a) Select SAP Easy Access Modeling Workbench: Modeling Data Sources. Then select Training BW
BW310 Data Warehousing Group ## to access your InfoÁrea.
b) Select Create transformations in the shortcut menu for the datasource costc##_MD_flatfile.
c) In the dialog window, fill in the information as shown in the preceding table.
2. Update the transformations to run the upload of data variables from your file plan in its InfoCubo GR##HUB1.
Some of the InfoObjetos its InfoCubo can be filled out by using directmapping to fields in the data source. Connect the fields in the data sourcewith the InfoObjetos its InfoCubo as shown in the following table.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
39/108
TBW10 Lesson: Loading flat files
34114-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Data Source Field InfoCubo
CO_AREA 0CO_AREA
COPCCENTERNEU COSTC##
BUS_AREA [no assignment]
COMP_CODE [no assignment]
PROFIT_CTR [no assignment]
COPCELMNT 0COSTELMNT
VERSION 0Version
VTYPE 0VTYPE
METYPE 0METYPE
VTDETAIL 0VTDETAIL
VALUATION 0valuation
CURTYPE 0CURTYPE
AMOUNT AMOUNT##
QUANTITY 0Quantity
CURRENCY AMOUNT##
UNIT 0Quantity
FISCPER 0FISCPER
A) Create the necessary allocations between the fields of the data sourceand the InfoObjetos by dragging them with the mouse.
Tip: You may need to modify the way it transforms fromscreen display to modify.
3. Manually update the transformations for the InfoObjetos 0FISCVARNT(fiscal year variant), and 0DB_CR_IND (Indicator sender/receiver) because the flat file did not provide data for those fields.
Info Obje to Tra nsfor ma tion
0FISCVARNT Constant: K4
0db_CR_IND Formula:
If (amount < 0 , 'C' , 'D')
Continued on next page
8/17/2019 SAP TBW10 4 Converted
40/108
Chapter 4: acquisition of data from other systems TBW10
342 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
The Indicator feature sender/receiver (0DB_CR_IND) is used in reportingto distinguish between creditor and debtor. The flat files do not provide this
information directly. For this reason, you can obtain this indicator of thesign +/- together to the amount.
Do this by creating a formula with the description should/have:
If the amount is less than 0, the system assigns the indicator C . On theother hand, the system assigns the indicator D .
Assign the Amount field as a field source of the rule.
The characteristics for the information of trading partners are maintained ininitial form (blank). The data source does not provide this information.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
41/108
TBW10 Lesson: Loading flat files
34314-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Activate your changes and return to the previous screen.
a) Double click on the transformation of the InfoObjeto 0FISCVARNT
to enter in the dialog window Rule Details. In the drop-down box ruleclass, select Constant and enter K4 in the Value field constant . Selectthe Pad Transfer values to confirm and continue.
b) To create the formula for the indicator sender/receiver , double click onthe field 0DB_CR_IND of the central table.
c) First assign the Amount field as a field source of the rule. Itselected the Insert Row button In the dialog window Rule
Details.
d) Select the Amount field in the following dialog window andselect Confirm .
e) Enter Must/having as description and select formula in the dropdown window class rule.
Enter the formula editor.
f) In the Formula editor, create the formula: If (amount < 0 , 'C' , 'D')
Press the pushbutton if.
Double-click on the source field amount .
Enter
8/17/2019 SAP TBW10 4 Converted
42/108
Chapter 4: acquisition of data from other systems TBW10
344 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
→ → →
→ →
Select SAP Easy Access Modeling Workbench: Modeling Data sources and make sure it is in the View source of data for the
external system I_extern. Go to the component of the applicationTraining BW BW Data Warehousing Group ## (ZT_BW310_GR##).In the shortcut menu of your data source costc##_td_flatfile, select Create
InfoPaquete. Enter file data plane variables GR## as the description of the InfoPaquete.
a) On the shortcut menu for the data source costc##_td_flatfile,select Create InfoPaquete.
b) In the Description field , enter the name of the InfoPaquete. File
Transaction Data Plane GR##, and select Record .
2. In the Label Removal , check the parameter settings and make sure your flat
file will be charged. The parameterizations are taken from its definition of the data source. The data should be transferred to Only PSA and you shouldselect the full update mode.
Record the options.
a) In the Label Removal , make sure that the following are correct parameterizations.
Description Value
Adapter Load file class of textfrom the Application
Server
Name of the file File path
Header rows thatshould be ignored
1
Data Format Separated by spacer (forexample, separated by
Data separator character
;
Escape symbol "
b) In the Label Process, select the option only PSA.
c) In the Label Update, select the update mode Full Update. Record the options.
3. Start the InfoPaquete and verify the treatment in the monitor.
Continued on next page
8/17/2019 SAP TBW10 4 Converted
43/108
TBW10 Lesson: Loading flat files
34514-10-2008 © 2008 SAP AG. Reservados todos los derechos.
→
→
→ →
→
In the Label Anticipate, select Start Load dat.inmediat. Start .
a) In the Label Anticipate, select Start loading data immediately
And start the data load process by selecting .
b) Verify the data load process in the monitor.
Task 4: Creation of processes for transferring data torun a upload of master data in the destination
Create and schedule a process of transfer of data to load the data variables fromthe PSA table to the fact table of its InfoCubo.
1. Load the data variables from the PSA table to the fact table of its InfoCubo.In the window Workbench - Modeling , open the view of InfoSitio and
locate your application component (Group##). Under its InfoCuboGR##HUB1 you will find the folder Data Transfer Process. From itscontext menu, select Create Data Transfer process. In the dialog window,enter the following information.
Field Name Value
Data Transfer Process GR## transaction dataof the cost center ofthe flat file
Object class (destination the DWP) InfoCubo
Name (destination the DWP) Gr##cube1
Object class (source the DWP) Data Source
Data source (source the DWP) Costc##_td_flatfile
Source system (source of PTD) I_Extern
a) To reach your InfoObjeto, select SAP Easy Access Modeling Workbench:Modeling InfoSitios Training BW
BW310 Data Warehousing Group ## .
Tip: To refresh the tree to refresh the display.
b) Under the InfoCubo, select Create Data Transfer process in thecontext menu of the folder data transfer process and enter the valuesas listed in the above table.
c) Select Continue (Enter) .
Continued on next page
→
→
8/17/2019 SAP TBW10 4 Converted
44/108
Chapter 4: acquisition of data from other systems TBW10
346 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
2. Update the labels removal , Update, and run its process of data transfer with:
Pull mode = Delta
Treatment of errors = Updating of valid records, without reporting(request red)
Record and enable its data transfer process. Run the data transfer process andverify the data load on the monitor.
a) In the Label Removal , select the mode of removal Delta.
b) In the Label Update, select for the treatment of errors:Update of valid records, without reporting (request red).
c) In the Label run, select the mode of treatment removal in series, parallel treatment immediately.
d) Active The process of transfer of data.
e) Select the Run button In the Label Run to start the data transfer process.
f) Verify the process of transfer of data on the monitor of the request.
3. Note the transferred data. Use the target browser data and verify the costcenters that begin with 123*. Alternatively, you could create a query BExto visualize the data.
Check the flow of data that supplied the data for its InfoCubo.
a) Verify the data transferred to BI through the navigation on theworkbench in view of the InfoSitio and then to its InfoÁreaGroup##.
b) Select Manage from the shortcut menu of your InfoCubo GR##HUB1.Select your InfoCubo in the upper table and select Content .
c) Select the pad selecting fields to output and then a few through thecorresponding checkbox; finally select To confirm your entries.
d) Verify (filter) the cost centers that have an ID that starts with 123*and select Run .
e) View the entire data stream in the workbench. Go to the view of InfoSitio, navigate to your InfoÁrea Group## and deploy the entiredata stream below its InfoCubo GR##HUB1.
f) View the data transferred using the BEx Analyzer and the BExQuery Designer.
8/17/2019 SAP TBW10 4 Converted
45/108
TBW10 Lesson: Loading flat files
34714-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Summary of the lesson
You should now be able to:• Define the data flow when using flat files to Load master data and variable
data
• Explain the technical details of the interfaces of file and file formats
• Design transformations using formulas and InfoFuentes BI
• Explain the purpose of the stack and filters of errors in the DataTransfer Process
• Preview the data that would be charged from a data source using flat files
More information
The course SAP BW350 provides a detailed explanation of the items that arementioned here. If you cannot attend, use the Web sites included in the body of the lesson to learn more.
8/17/2019 SAP TBW10 4 Converted
46/108
348 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Resumen del capítulo TBW10
Chapter Summary
You should now be able to:
• Identify tools for removing and explain why you would use each one of them
• Describe the removal from other databases using DB Connect
• Describe the form of removal from other sources using the set Java-basedtools you Connect
• Describe the reasons for the load with XML sources using SAP XI
• Define the data flow when using flat files to Load master data and variabledata
• Explain the technical details of the interfaces of file and file formats
• Design transformations using formulas and InfoFuentes BI
• Explain the purpose of the stack and filters of errors in the DataTransfer Process
• Preview the data that would be charged from a data source using flat files
8/17/2019 SAP TBW10 4 Converted
47/108
34914-10-2008 © 2008 SAP AG. Reservados todos los derechos.
TBW10 Examine sus conocimientos
Examine their knowledge315
1. What are true about DB Connect?
Select the answer(s) correct(s).
A It is faster than you connect.B It is faster than the file interface
C It is slower than you Connect
D It is the slowest of the options
2. XML would be good for:
Select the answer(s) correct(s).
A Load a shopping cart of an Internet applicationB Load 10,000 records efficiently
C Remove a SAP R/3 system
D Remove another BI system
3. In what areas can help the stack of errors?
Select the answer(s) correct(s).
A Identification of erroneous recordsB Automatic mounting of bad records
C Reduction of its dependence on the temporary file
D Improving the load times
4. Using the class of the rule of formula, you can develop a transformationlogic defined by the user without the need to know syntax ABAP.
Say if these statements are true or false.
Correct
False
8/17/2019 SAP TBW10 4 Converted
48/108
Examine sus conocimientos TBW10
350 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Answers316
1. What are true about DB Connect?
Answer: A, B
DB Connect is the fastest of the external methods.
2. XML would be good for:
Answer: A
The removal tool XML is used to work with small quantities of records of Internet applications.
3. In what areas can help the stack of errors?
Answer: A
The temporary file allows you to view the status of the records in several points of the transformation. Using this feature with the treatment of errorscan see when (at which transformation step) occurredThe error.
4. Using the class of the rule of formula, you can develop a transformation
logic defined by the user without the need to know syntax ABAP.
Response: Correct
This is true. If you are in the expert mode, you may need to know a littlemore, because the system does not verify their logic until the end. Innormal mode, is checked on the fly.
8/17/2019 SAP TBW10 4 Converted
49/108
35114-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Chapter 5 317 Business Content
In prior instructor note, we said user requirements are the hardest part of a
BI/EDW project This unit shows the students how to leverage our expertise in business software to establish baselines for the requirement gathering process.
In the Business Content unit, participants are given an overview of the informationmodel as well as the delivered objects. They also become familiar with technicalconcepts, such as the activation of Business Content for example.
Emphasize the advantages provided by Business Content.
If you want to use objects from Business Content in a demonstration, check theactivation status of these objects beforehand.
Chapter SummaryIn this unit you will learn what are the components of Business Content and itsapplications. With Business Content your project will be driven decisively in the phase of "requirements definition" of your project BI.
The first lesson is focused in the search of the content you provide SAP, throughthe repository of metadata. That is a task for functional members of the projectteam recognizable in the business processes involved. Another lesson focuses onhow, from a technical point of view, you can enable this content for use on your system.
Objectives of the Chapter At the end of this chapter you will be able to:
• Identify the Content delivered based on roles and sectors
• Explain why the content delivered is so valuable
• To find the Business Content BI delivered with the metadata repository
• Contents of demonstration of reinforcement for start end-user training
• Explain the creation of versions SAP BI
8/17/2019 SAP TBW10 4 Converted
50/108
Capítulo 5: Business Content TBW10
352 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
• Describe how to enable content objects
• Describe what happens with objects during an upgrade
Content of the Chapter
Lesson: Discover Business Content (repository of metadata)...................353Demo: Demo the MetaData Repository Browser
exercise . . .362 Exercise 12: (Optional) Discover Business Content
with the metadata repository browser ......................................................365
Lesson: Activation of Business Content.......................................................... 371Procedure: Installing Business Content....................................................377Demo: Demo: Activation and match functionality...................................377
8/17/2019 SAP TBW10 4 Converted
51/108
TBW10 Lección: Descubrir Business Content (repository de metadatos)
35314-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Lesson:
318
Discover Business Content (repository of metadata)
Duration of the lesson: 25 Minutes
Summary of the lesson
This lesson highlights the objects delivered of SAP Business Content. It alsofocuses on the repository of metadata, a powerful tool to find the contentdelivered.
Lesson Objectives
At the end of this lesson you will be able to:
• Identify the Content delivered based on roles and sectors
• Explain why the content delivered is so valuable
• To find the Business Content BI delivered with the metadata repository
• Contents of demonstration of reinforcement for start end-user training
This chapter informs participants about available BI Content, and how to find it.The next lesson in this unit talks about and activation of BI Content.
Business Case
The team of BI want to examine the Business Content to see which objects couldsolve their needs of reporting of the cost center. Although Business Content doesnot comply with all the requirements, at least will not work from scratch.
Motivation and foundation of Business Content
With Business Content, SAP offers a model of predefined information that helpsyou to control and optimize each of the areas of process, both within and outsidethe company. Collects and structure the information and prepares it for later use.Business Content is a preconfigured information model based on industrialsectors and the roles that include.
8/17/2019 SAP TBW10 4 Converted
52/108
Capítulo 5: Business Content TBW10
354 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Business Content includes the following objects:
• SAP and non-SAP Extractors
• Data Sources (structures of removal)
• InfoObjetos
• Transformations
• InfoSitios (for example, InfoCubos and datastore objects)
• Queries/Workbooks
• Models (reporting Web-based)
• Roles
The following image shows a list of objects next to its icon identifier.
The next to graphics are copies of each other, one just shows icons and the nextshows the answer. Tell the students not to cheat and see how many they know thedescription for. Tell them that without cheating it will be nearly impossible for them to get them all, as there are many icons and associated terms that we havenot discussed.
Chart 137: Objects of Business Content: With the words
8/17/2019 SAP TBW10 4 Converted
53/108
TBW10 Lección: Descubrir Business Content (repository de metadatos)
35514-10-2008 © 2008 SAP AG. Reservados todos los derechos.
A client can strengthen the Business Content in three ways. If you choose either of these three ways, your project will be implemented much faster than a draft
generic, and with BI a probability of success much higher:
• Use Business Content without adjustments
Unlikely, this happens perhaps a 10% of the times
• Modify the Business Content delivered
Unlike other SAP products, the creation of versions allows both a clientversion as a SAP version of the same object. In addition, may be different.
• Copy Business Content
In this option, Business Content is used as the starting point (a model).
The new objects are created in the namespace of the client that is nolonger bound to the Business Content (this is how the majority of SAP products).
Content based on roles and in industrial sectors
Business Content presents specific contents of application and specificindustrial sector. The specific content of application includes data from thefollowing areas:
• Management of relationship with the customer
• Management of relationship with the supplier
• Supply Chain Management
• Management of the life cycle of a product
• Finance
• Human Resources
• Exchanges (related to oil and gas)
When BI provides content based on industrial sectors, it normally does to supportthe industrial sector specific functionality delivered by the OLTP products intended for industrial sectors of SAP. An example is SAP Retail andSAP applications for oil and gas.
8/17/2019 SAP TBW10 4 Converted
54/108
Capítulo 5: Business Content TBW10
356 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Chart 138: specific content of industrial sector
Note: The specific content of industrial sector includes specific processesin the industrial sector, ratios and roles for various sectorsIndustrial. For more information and an updated list,see Http://www.sap.com/solutions/businessmaps. You may need to make
a download of the composer of maps of the SAP solution or consult theappropriate PDF.
BI has, at the time of writing this, various amounts of business content for theindustrial sectors that are listed below. Talk with your account representative SAPto get the full picture and updated.
Sectoral solutions
aerospace and defense
clothing and footwear
Automotive
Chemical IndustryConsumer Goods
Management of resale and distribution
Health
Pharmaceutic
al Average
Insurance
http://www.sap.com/solutions/businessmapshttp://www.sap.com/solutions/businessmaps
8/17/2019 SAP TBW10 4 Converted
55/108
TBW10 Lección: Descubrir Business Content (repository de metadatos)
35714-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Oil and gas
Public Sector
Trade Real
Estate
The use of Business Content presents many advantages with respect to the optionof starting by your account. Some of these appear in the following list:
• All the technical prerequisites and related with the content needed toconnect SAP systems and external already exist, is therefore considerablyshortens the deployment process.
• The entries of the customers have made of business content what it is today.Business Content is currently extended in working groups SAP in close
collaboration with clients.• The InfoCubos are already optimized for performance, both storage
and data analysis.
• The analysis and the predefined reports can be used as examples and prototypes of content for projects. Can also be used as a finalrequirement of production. When content is used as an aid prototype theuser already works with the BI application complete and may specify of corresponding shape what information is missing for the project settings.
• With their professional tools, BI offers a beneficial solution and reliablethat account with their own supervision (technical content), controlledrelease of content updates (administration of releases and versions), and
a high quality and consistency.Business Content contains a variety of objects that simplify and accelerate theimplementation of a BI system. Is structured hierarchically. You can makeselections in each level when transferring Business Content. For example, you donot need to use the ETL process provided by our content if you like the hubdelivered. You can generate each item individually or all items dependent fromeach other: from roles, queries and workbooks to InfoSitios to InfoObjetos andthe process of transformation of data (ETL). You provide all the pieces of the puzzle.
8/17/2019 SAP TBW10 4 Converted
56/108
Capítulo 5: Business Content TBW10
358 © 2008 SAP AG. Reservados todos los derechos. 14-10-2008
Chart 139: A hierarchical structure of Business Content
Say, for example, that a regional sales director needs access to a wide spectrumof information that would enable it to take effective decisions. A role of businesscontent groups the data in the form of queries and workbooks that containexactly the type of information that is needed by the director of sales.
Chart 140: Example: Regional Sales Director
8/17/2019 SAP TBW10 4 Converted
57/108
TBW10 Lección: Descubrir Business Content (repository de metadatos)
35914-10-2008 © 2008 SAP AG. Reservados todos los derechos.
Metadata Repository
Metadata means "data about data." Metadata is information descriptive technique
on the objects used to build your application, in this case a BI system. Themetadata about a InfoCubo would include the names of the InfoObjetos anddimension tables used in the InfoCubo, as well as the date on which it wasdesigned and the person who last modified the design. Would not include a recordin the InfoCubo, because that are data, not metadata. Another example would bethe data on a InfoObjeto; these would include the metadata field length, whocreated it and when it was created. It would also include any other informationabout the screens used to create the InfoObjeto.
Each object has its own metadata table to store the technical information aboutthat object. There are metadata tables to store information about InfoCubos,InfoObjetos, DataStore objects and everything else.
When all the metadata tables are contained in a group, we have a repository of metadata. To observe the objects and the relations between them, we have a toolof navigation of the repository of metadata.
Note: To simplify, does not distinguish between the collection of metadatatables and the tool to access and view them, we simply use