how to use bpc data manager

51
90 How To… Use BPC Data Manager to Import Master Data & Transaction Data from 3 rd Party Systems via SAP BusinessObjects Data Integrator SAP Product Name: SAP BusinessObjects Planning and Consolidation, version for NetWeaver Applicable Product Versions: 7.0 Last Updated: 10/2009 Enterprise Performance Management www.sdn.sap.com/irj/sdn/bpx-epm

Upload: others

Post on 12-Sep-2021

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How To Use BPC Data Manager

90

How To…

Use BPC Data Manager to Import Master Data & Transaction Data from 3rd Party Systems via SAP BusinessObjects Data Integrator SAP Product Name: SAP BusinessObjects Planning and Consolidation,

version for NetWeaver

Applicable Product Versions: 7.0

Last Updated: 10/2009

Enterprise Performance

Management

www.sdn.sap.com/irj/sdn/bpx-epm

Page 2: How To Use BPC Data Manager

© Copyright 2009 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data

contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. These materials are provided “as is” without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. SAP “How-to” Guides are intended to simplify the product implementation. While specific product features and procedures typically are explained in a practical business context, it is not implied that those features and procedures are the only approach in solving a specific business problem using SAP products. Should you wish to receive additional information, clarification or support, please refer to SAP Consulting. Any software coding and/or code lines / strings (“Code”) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent.

Page 3: How To Use BPC Data Manager

Table of Contents 1  Scenario .................................................................................................................. 1 2  Background Information ......................................................................................... 1 3  Prerequisites ........................................................................................................... 2 4  Known Limitations .................................................................................................. 2 5  The Step By Step Solution ....................................................................................... 3 5.1  Import ABAP Configuration into your landscape ............................................ 3 5.2  Configure Data Services Designer ................................................................... 4 5.3  Create the Data Manager Package from the BPC Excel Client ........................ 5 5.4  Create the Data Integrator Batch Job ........................................................... 11 5.5  Setup Data Integrator Logon Credentials as Web Admin Parameters ......... 39 5.6  Running the Data Manager Package ............................................................. 41 5.7  Check the Master Data .................................................................................. 45 

6  Appendix ............................................................................................................... 47 6.1  Data Manager Dynamic Script ....................................................................... 47 6.2  Mapping Coding for EntityTransformation.ROWINDEX ................................ 48 6.3  Mapping Coding for EntityTransformation.ROWDATA ................................. 48 

 

Page 4: How To Use BPC Data Manager

1 Scenario 

This guide will show how to integrate BOBJ Data Integrator with BPC NW 7.0. The intended purpose is to allow business users who are familiar with using BPC Data Manager to execute SAP BusinessObjects Data Services jobs through the BPC Data Manager User Interface. This provides BPC users the same user experience and familiarity of working with BPC that they are used to, but opens up BPC NW to direct integration with 3rd party solutions without going through flat file interfaces. The scenarios also allow BPC users to continue to use BPC transformation and conversion files to do mapping and transformations on top of the 3rd party sources.   Some of the possible scenarios are to use the SAP BusinessObjects Data Services product to load data from any number of databases into BPC NW.   There are two scenarios outlined in this guide: 

1. Load Master Data from a flat file 2. Load Transaction Data from a flat file 

 While these packages natively exist in BPC today, this guide used these two examples for sake of simplicity. Using the techniques outlined within this guide, it would be possible for customers to Load Master Data or Transaction Data from any 3rd party system supported by SAP BusinessObjects Data Services directly into BPC NW, while continuing to use the BPC Data Manager user interface and transformation and conversion files.   Note: It is also possible to allow the users who are familiar with BOBJ Data Integrator to do transformation and conversion of data within Data Integrator Packages. The decision of whether to do transformation and conversion configuration within Data Services or BPC is dependent on what the customer prefers.  

2 Background Information 

For customers unaware of how data services work, here is some background information. Data Services allow configuration of moving and transforming data from a source database table to a target database table. When working with NW, Data Services does not connect to the NW Application Server. Instead it connects to the database directly under the NW Application Server in order to move and copy data. This provides very fast handling of large data volumes.   Within BPC, the Data Manager package is executing a Data Services Job which extracts data from the source specific in the Data Services Job and pushes the data into the BPC File Service. BPC File Service has two specific types of files:  

1. A binary file 2. Table storage 

 Data Manager within BPC uses the table storage mechanism. Therefore, the way this solution works is the Data Services will specify a database table as a target. During design time, a template table name is used.  At runtime, a dynamically created database table name will be 

Page 5: How To Use BPC Data Manager

passed to the Data Services job via a substitution parameter, and this new database table name will be used as the target.   Once the data is in this table, the Data Manager package can read from this and continue importing the data into a BPC Dimension or BPC Application using BPC transformation and conversion files. 

3 Prerequisites 

This guide requires the following prerequisites  Client Desktop Prerequisites: 

• BPC Excel Client  • BPC Admin Client • SAP BusinessObjects Data Services Designer 12.2.1 or above 

 Server Side Pre‐requisites 

• SAP BusinessObjects Data Services Server 12.2.1 or above • SAP BusinessObjects Planning and Consolidations 7.0, version for NetWeaver  

 

 

4 Known Limitations 

The dynamic table name parameterization introduced in Designer 12.2.1 is only supported for the following databases: 

• SQL  • DB2 • Oracle 

Page 6: How To Use BPC Data Manager

5 The Step By Step Solution   

5.1 Import ABAP Configuration into your landscape  This How‐To guide contains transport request files, K900893.PMR and R900893.PMR. This transport request contains all the NetWeaver objects that are required to complete this How‐To Guide, including custom classes, custom process types, custom process chains, and default package instructions.  Classes  

• ZCL_UJD_BPC_RUN_DI_JOB  Process Type Class for Running DI Job • ZCL_UJD_RUN_DI_JOB    Functional Class for Running DI Job • ZCL_SBOBJ_DI_API    Data Integrator API Class 

 Process Types  

• ZBPCRDIJOB      Process Type for Run DI Job  Process Chains  

• ZBPC_IMP_MDATA_DI    Import Master Data from DI • ZBPC_IMP_TDATA_DI    Import Transaction Data from DI 

 Supporting Programs  

• ZSBOBJDI_API_TEST    Data Integrator API Test Program  Database Table  

• ZUJD_DM_TMPL    Data Manager Table Template  As the process of importing a transport request is not covered here, it is suggested that you seek assistance from your NetWeaver Basis Administrator in order to have this transport request imported into your system.  Note:  These objects must be imported into your system before continuing any further.              

Page 7: How To Use BPC Data Manager

5.2 Configure Data Services Designer  The Data Services designer now allows the user to use a substitution parameter when defining the target database table.  You must first configure the Designer in order to expose this new feature.  This feature was introduced in Data Services Designer 12.2.1   

1. Go to the DSConfig.txt file found in the C:\Program Files\Business Objects\BusinessObjects Data Services\bin directory and open it. 

 

2. Find the parameter called “Enable_Table_Parameterization” and change the value to “YES”.  Save the file. 

 

             

Page 8: How To Use BPC Data Manager

5.3 Create the Data Manager Package from the BPC Excel Client  Once the transport is imported into your system, we will create the Data Manager Packages from the BPC Excel Client. We will cover two different scenarios here.   The first is creating a Data Manager package to import Master Data from a flat file into BPC. The second scenario is creating a Data Manager package to import Transactional Data from a flat file into BPC.    

1. Launch the BPC Excel Client and log on to the “ApShell” Appset or a copy of the “ApShell” appset.  In this example, we will be using an Appset called APSHELL_HTG.  Use the PLANNING application.  From the action pane, click “Manage Data”. 

 

2. Next, click “Maintain data management” 

 

Page 9: How To Use BPC Data Manager

3. Next, click “Manage packages (organize list)”. 

 

4. In this dialog, we can create the packages.   Select the “Data Management” package group, and click 

the   icon, to create a new package.  

 

5. Click the   icon next to the input field for Process Chain. 

 

Page 10: How To Use BPC Data Manager

6. Select the “BPC: Planning and Consolidation: System” group on the left, and then select the ZBPC_IMP_MDATA_DI process chain on the right.  Finally click the “Select” button.    

Note: If loading transaction data, choose the ZBPC_IMP_TDATA_DI process chain. 

 

7. Continue creating the package, and enter the package name as “ImportMasterDataFromDI”, and the description as “Import Master Data from DI”.  Also check both checkboxes under Task Type. Finally click the “Add” button.   

Note: If loading transaction data, enter the package name as “ImportTransactionDataFromDI”, as well as an appropriate description. 

 

8. Now click the “Save” button.  A message will appear stating that the package has been saved successfully, and the dialog will close.   

 

Page 11: How To Use BPC Data Manager

9. From the action pane, once again click the “Manage packages (organize list)” link to go back into the package maintenance screen. 

 

10. Select the ImportMasterDataFromDI package and right‐click on it. Choose “Modify Package”.  

 

11. In the following dialog, click the   icon to view the package. 

 

Page 12: How To Use BPC Data Manager

12. The “Data Manager Package and Dynamic Script Editor” will then be launched.  Here you can configure how the dialog screen for this package will look and behave.  Click the “Advanced” button at the top to launch the editor. 

 

 

13. The default instructions were installed with the transport request.  You may modify to prompt for additional DI job parameters if required.  Refer to the Appendix 6.1 for more information.  Click “Ok” if the script has been modified, otherwise click “Cancel”.  

14. Control is then passed back to the previous dialog, click the “Save” button. 

Page 13: How To Use BPC Data Manager

15. Control is then passed back to the previous dialog, click the “Save” button. 

 

16. Finally, at the last dialog, click “Save” one last time.  You will receive a message saying that the package has been saved successfully. 

 

 

 

 

Page 14: How To Use BPC Data Manager

5.4 Create the Data Integrator Batch Job  In this step, we will create a job using the Data Services Designer.  For this example, the DI job will import a flat .txt file, and reformat it into the required structure. Then finally the job will write the formatted data to the table in the underlying database of the NetWeaver system directly. Following this, the data will be imported either into the BPC Dimension as master data or into a BPC Application as transaction data.  

1. Log on to the Data Services server using the Data Services Designer.  Check with the Administrator for log on information. 

2. Click on the “Data Stores” tab. 

 

 

Page 15: How To Use BPC Data Manager

3. Right‐click in the white space of this window, and choose “New”. 

 

 

4. In the following dialog, enter the connection information for the underlying database of the BPC NetWeaver system. In this example, we are dealing with a SQL Database.  Then click “Apply” and “OK”. 

Note: Remember we are writing data directly to the underlying database, and not going through the NW application layer. 

 

Page 16: How To Use BPC Data Manager

5. The Datastore is now created. 

 

 

6. In this example, we will attempt to load master data for the Entity dimension.  The data will come from the supplied Entity.csv file. 

Note:  If you are loading transaction data, use the Planning.csv file supplied with this how‐to guide. 

 

 

7. You must copy the data file to the c:\temp directory on the server in which the Data Services server was installed.   

Note: Again, use the Planning.csv file if loading transaction data. 

 

 

Page 17: How To Use BPC Data Manager

8. Next, click on the “Formats” tab. 

 

 

9. Right‐click on “Flat Files”, and choose “New”. 

 

 

10. In the following dialog box, enter the name of the format as “Entity”. Change the location to “Job Server”.  Change the root directory to C:\temp and enter the file name as Entity.csv and press Enter. 

Note: If you are loading transaction data, then use the Planning.csv file, and name the file format as “Planning”. 

 

Page 18: How To Use BPC Data Manager

11. Simply, click “Yes”. 

 

12. The right side of the dialog box will then be populated with data. 

 

13. Finally, click “Save & Close”.  

 

Page 19: How To Use BPC Data Manager

14. The format is now created. 

 

 

15. Next, click on the “Data Flows” tab. 

 

 

16. Right‐click on “Data Flows” and choose “New”. 

 

 

Page 20: How To Use BPC Data Manager

17. Next, change the name of the new “Data Flow” to “EntityMasterData”. 

Note: If loading transaction data, name it as “PlanningTransactionData”. 

 

 

18. Double‐click on the newly created Data Flow.  The canvas on the right should be empty. 

 

 

19. Go back to the “Formats” tab. 

 

 

Page 21: How To Use BPC Data Manager

20. 201BDrag/drop the “Entity” format into the white area on the right. 

202BNote: If loading transaction data, drag/drop the “Planning” format. 

 

 

21. 203BWhen dropping into the white area on the right, choose “Make Source” in the context menu. 

 

 

22. 204BThe “Data Flow” layout should look similar to this. 

 

 

Page 22: How To Use BPC Data Manager

23. 205BNext, click on the “Query Transform” icon on the right side of the designer window. Now simply click in the white space area of the “Data Flow” layout. 

 

 

24. 206BA new “Query” icon will show in the layout, change the name of this to something meaningful, like “EntityTransformation. 

207BNote: If you are loading transaction date, then name it as “PlanningTransformation”. 

 

 

25. 208BThe “Data Flow” should now look similar to this. 

 

 

Page 23: How To Use BPC Data Manager

26. 209BConnect the source file with the query transformation. Simply draw a line between the two using the mouse. 

 

 

27. 210BGo back to the “Datastore” tab. 

 

 

28. 211BExpand the BPCNW datastore, and right‐click on the “Tables” node, and choose “Import By Name…”. 

 

 

Page 24: How To Use BPC Data Manager

29. 212BEnter the name of the transparent table for the Data Manager file.  Use the template table ZUJD_DM_TMPL.  The designer needs a valid table in order to get the structure of the target.  We will then use a substitution parameter to pass the table name at runtime.   The “Owner” value will probably always be the SYSID of the NetWeaver system. This value is case sensitive. 

     

30. 213BThe table has now been defined in the datastore. 

 

 

31. 214BDrag and drop the imported table into the “Data Flow” layout on the right. 

 

 

Page 25: How To Use BPC Data Manager

32. 215BWhen dropping into the “Data Flow” layout, choose “Make Target” from the context menu. 

 

 

33. 216BThe Data Flow should now look similar to this. 

 

34. 217BConnect the “EntityTransformation” with the target by simply drawing a line between the two.  

218BNote: If loading transaction data, connect the “PlanningTransformation” with the target.   

Page 26: How To Use BPC Data Manager

35. 219BIn order to pass parameters to the Data Flow, the parameters first need to be defined.  In this example, we will demonstrate the procedure for passing parameters by passing the client field.  The transparent table in NetWeaver contains a client field called MANDT.  We need to fill this field with the correct client for the BPC NW system.  We could of course hardcode the value here in the definition, but for this example, we will pass it using global job parameters.  Choose Tools, Variables. 

 

 

36. 220BRight‐click on “Parameters” and choose “Insert”. 

 

37. 221BNow, double‐click on the newly created parameter. 

 

Page 27: How To Use BPC Data Manager

38. 222BEnter the name of the parameter as $MANDT, select the data type, parameter type, and enter a length as 3.  Then click “Ok”. 

 

39. 223BThe new parameter is now created. Later we will use this parameter to fill the MANDT field in the target structure of the Data Flow. 

 

Page 28: How To Use BPC Data Manager

40. 224BReturn to the “Data Flow” layout. 

 

41. 225BDouble‐click on the “EntityTransformation” object. 

226BNote: If loading transaction data, double click on the “PlanningTranformation” object. 

 

42. 227BYou should now see a screen similar to this. 

 

Page 29: How To Use BPC Data Manager

43. 228BDouble‐click on MANDT in the right side of this screen. 

 

44. 229BIn the mapping box, enter $MANDT. Then click “Ok”.  Here we are simply mapping the MANDT field in the target structure to the Data Flow parameter $MANDT. Later we will map $MANDT to the global variable $GV_MANDT which will have its value passed from the BPC Package. 

 

Page 30: How To Use BPC Data Manager

45. 230BNow, single‐click on the ROWINDEX field on the right‐side of the screen. 

 

46. 231BEnter the script as you see here.  Since the ROWINDEX in the table, is a character field with a length of 10, we have to do some formatting when generating the new row index. You may copy and paste this from Appendix 6.2.   

47. 232BNext, click on the ROWDATA field in the right‐side of the screen. 

 

Page 31: How To Use BPC Data Manager

48. 233BAt the bottom of the screen, enter the following coding. This coding concatenates the fields from the source into the ROWDATA field in the target, separated by a comma.  The || refers to the concatenate function.  Copy and paste the coding from the Appendix 6.3. 

 

49. 234BReturn to the Data Flow layout, and double‐click on the Target Table. 

 

 

50. 235BClick the “Options” tab at the bottom, and check the “Delete data from table before loading” checkbox. 

 

Page 32: How To Use BPC Data Manager

51. 236BIn order to pass the actual table name to the batch job dynamically at runtime, we need to use a substitution parameter.  Create a substitution parameter by choosing Tools, Substitution Parameter Configurations. 

 

 

52. 237BIn this dialog, scroll to the bottom and enter a new parameter called, $$DMTABNAME, then click “Ok”. 

 

53. 238BNext, return to the “Options” tab. In the dynamic table name variable field, enter the name of the substitution parameter as [$$DMTABNAME]. 

 

Page 33: How To Use BPC Data Manager

54. 239BFrom the Local Object Library, click on the “Jobs” tab. 

 

 

55. 240BRight‐click on “Batch Jobs” and choose “New” from the context menu. 

 

 

56. 241BRename the job name as “EntityMDataLoad” and hit enter. 

242BNote: If loading transaction data, then name it as “PlanningTDataLoad”. 

 

 

Page 34: How To Use BPC Data Manager

57. 243BNext, double click on the newly created job. 

 

 

58. 244BClick on the “Data Flow” tab and drag and drop the “EntityMasterData” data flow into the right side of the “Job” screen. 

245BNote: If loading transaction data, drag and drop the “PlanningTransactionData” data flow into the right side. 

 

 

59. 246BYou should now see the data flow in the layout of the job. 

 

 

Page 35: How To Use BPC Data Manager

60. 247BFrom the menu, choose Tools, Variables. 

 

 

61. 248BNow, we are in the context of the batch job. Here we will create a Global Variable for the client. Right‐click on Global Variables and choose “Insert”. 

 

62. 249BNow double click on the newly created global variable. 

 

Page 36: How To Use BPC Data Manager

63. 250BRename the global parameter as $GV_MANDT, choose the data type, and set the length.  Again, it may make sense to hard code the value here, but for this example, we want to demonstrate how to pass the value from the package, so we will leave it blank for now.  Click “Ok”. 

 

64. 251BNext, click on the “Calls” tab, and double click on the $MANDT parameter. 

 

Page 37: How To Use BPC Data Manager

65. 252BNow enter the value for this parameter as the global variable $GV_MANDT. Click “Ok”.   

 

 

66. 253BGo back to the “Jobs” tab. 

 

 

Page 38: How To Use BPC Data Manager

67. 254BNext, expose the job as a web service.  Right‐click on the “EntityMDataLoad” job.  Choose Properties. 

255BNote: If loading transaction data, right click on the “PlanningTDataLoad” job. 

68. 256BClick on the “Attributes” Tab, then click on “Web_Service_Enabled”.  In the “Value” box, enter YES.  Finally, click “Apply”, and “Ok”. 

Page 39: How To Use BPC Data Manager

69. 257BNext, click the “Save All” button in the main toolbar. 

 

 

70. 258BNext, choose Validation, All Objects in View. 

 

 

71. 259BYou should have no errors. You may get a warning around the conversion of the generated row number. It can be ignored.  

 

 

Page 40: How To Use BPC Data Manager

72. 260BFinally, setup security for the new job as a web service. Go to the Data Services Management Console.  Launch a browser and enter Hhttp://<hostname>:28080/DataServices/launch/logon.do H as the URL.  Enter the administrator credentials, and click “Login”. 

261BNote: Check with the administrator for log on information. 

 

73. 262BClick on the “Administrator” Link. 

 

74. 263BNext, click on the “Web Services” link on the left. 

 

 

Page 41: How To Use BPC Data Manager

75. 264BClick on the “Web Services Configuration” Tab. 

 

76. 265BClick the checkbox next to the “EntityMDataLoad” job. 

266BNote: If loading transaction data, click the checkbox next to the “PlanningTDataLoad” job. 

 

77. 267BAt the bottom of the screen, choose “Enable Session Security” from the listbox, and click the “Apply” button. 

 

 

Page 42: How To Use BPC Data Manager

78. 268BThe job will then be set for Session Security, which means when the web service is called, a user id and password will be required. 

 

5.5 36BSetup Data Integrator Logon Credentials as Web Admin Parameters  89BNow, we have a few options. We can either prompt for the username and password in the BPC Data Manager package, or we can set these as web admin parameters. If your company is allowing business power users to create Data Integrator jobs, then it would be recommended to prompt for username and password for connecting to Data Integrator in the BPC Data Manager prompts. However, if your Data Services jobs are typically setup by IT, then the BPC Administrator can just specify a service user id and password as a web admin parameter that can be used for connection to Data Services. In this example, we will set the web admin parameter with the connection information.   

1. 269BLog on to the BPC Web Administration. From the BPC Excel Client, expand the “Available Interfaces” section of the action pane. Click on BPC Administration. 

 

Page 43: How To Use BPC Data Manager

2. 270BFrom the action pane inside the BPC Administration window, click the line for “Set AppSet Parameters”. 

 

 

3. 271BScroll to the bottom of the page, so that you can see the empty row in which you can add new parameters.   

4. 272BIn the “KeyID” field, enter DI_USER_ID as shown. Also enter the user id for the DI server in the “Value” field.  Click the “Update” button at the top of the page. 

 

Page 44: How To Use BPC Data Manager

5. 273BRepeat step 4 for two other parameters, one called DI_PASSWORD, and the other called DI_SERVER_HOST.  Supply the values for these parameters and click the “Update” button at the top of the page.  

274BNote: The “Run DI Job” process type will attempt to get these values from the package prompts first, but if they are not specified there, it will look for the values as web admin parameters here. 

 

5.6 37BRunning the Data Manager Package  90BRunning the data manager packages is typically the task of a BPC Power User or End User.   

1. 275BLogon to the BPC Excel Client. From the action pane, click “Manage Data”. 

 

2. 276BNext, click “Run a data management package”. 

 

Page 45: How To Use BPC Data Manager

3. 277BChoose package “ImportMasterDataFromDI”, and click the “Run” button. 

278BNote: If loading transaction data, choose package “ImportTransactionDataFromDI”. 

 

 

 

4. 279BEnter the name of the Data Integrator job, in this case it is “EntityMDataLoad”.  Enter any parameters, for example, here we need to supply the client in which BPC is installed.   

 280BNote: These parameter values can be hardcoded and not prompted to the user if needed. This is just to showcase building the Data Service Jobs generically. 

281BIf loading transaction data, enter “PlanningTDataLoad” as the DI job name. 

 

Page 46: How To Use BPC Data Manager

5. 282BSupply the import file which the DI job will write to.  The file will also be used by the downstream processes in the chain, such as the convert and load processes.  Click the folder icon next to the field. 

6. 283BIn the following dialog, click on the “DataFiles” folder, and supply the file name as “EntityDataFile.csv” or some meaningful name.  Then click the “Open” button.  This file will be created in the BPC file service at runtime and used as a staging area for the data from Data Services.  This file service file can then be read by the downstream process types in the chain. 

7. 284BNext, specify the transformation file and click “Next”. 

 

Page 47: How To Use BPC Data Manager

8. 285BChoose the correct dimension from the listbox, and click “Finish”.   

286BNote: If loading transaction data, there will be no prompt for the dimension, but there will be other prompts. 

 

9. 287BYou can then check the status by selecting the package and choosing the “View Status” button. 

 

10. 288BSelect the package run, and click on the “Detail” button. 

 

Page 48: How To Use BPC Data Manager

11. 289BThe log is then displayed.  Notice that any/all warning or error messages from Data Integrator will be shown in the log. 

290BNote:  The warning message shown here is not an error, and is expected in all scenarios. 

  

5.7 38BCheck the Master Data   

1. 291BLog on to the BPC Admin Client. From the left side of the screen, expend the AppSet node.  Then expand the Dimension Library node.  Finally click on the “Entity” node. 

 

Page 49: How To Use BPC Data Manager

2. 292BFrom the action pane, click “Maintain dimension members”.  The members will then be shown in the center panel of the screen.   

 

 

3. 293BYou should see the newly created records from the Entity.csv file.    

 

Page 50: How To Use BPC Data Manager

6 31BAppendix  

6.1 39BData Manager Dynamic Script  91BThe following is the default instructions code used for the ZBPC_IMP_TDATA_DI package.  A DI job parameter, called GV_MANDT, has been defined as a prompt.  The end user may fill in this value. The names of the DI parameters must match exactly with what has been defined in the DI batch job(without $). Notice the TASK which contains the DI_JOB_PARAM.  If you add any DI job parameters as PROMPTs, then you must also add that field to that task as well.  92BPROMPT(TEXT,%DI_JOB%,"Please Enter DI Batch Job Name",) 93BPROMPT(TEXT,%GV_MANDT%,"DI Job Parameter- GV_MANDT",) 94BPROMPT(INFILES,,"Import file:",) 95BPROMPT(TRANSFORMATION,%TRANSFORMATION%,"Transformation Hfile:",,,Import.xls H) 96BPROMPT(DIMENSIONNAME,%DIMNAME%,"Dimension name:",,,%DIMS%) 97BINFO(%TEMPNO1%,%INCREASENO%) 98BINFO(%TEMPNO2%,%INCREASENO%) 99BINFO(%EQU%,=) 100BINFO(%TAB%,;) 101BTASK(ZBPC_IMP_MDATA_DI,SAPPSET,%APPSET%) 102BTASK(ZBPC_IMP_MDATA_DI,DI_JOB,%DI_JOB%) 103BTASK(ZBPC_IMP_MDATA_DI,DI_JOB_PARAM,GV_MANDT%EQU%%GV_MANDT%) 104BTASK(ZBPC_IMP_MDATA_DI,FILE,%FILE%) 105BTASK(/CPMB/MASTER_CONVERT,OUTPUTNO,%TEMPNO1%) 106BTASK(/CPMB/MASTER_CONVERT,FORMULA_FILE_NO,%TEMPNO2%) 107BTASK(/CPMB/MASTER_CONVERT,TRANSFORMATIONFILEPATH,%TRANSFORMATION%) 108BTASK(/CPMB/MASTER_CONVERT,SUSER,%USER%) 109BTASK(/CPMB/MASTER_CONVERT,SAPPSET,%APPSET%) 110BTASK(/CPMB/MASTER_CONVERT,SAPP,%APP%) 111BTASK(/CPMB/MASTER_CONVERT,FILE,%FILE%) 112BTASK(/CPMB/MASTER_CONVERT,DIMNAME,%DIMNAME%) 113BTASK(/CPMB/MASTER_LOAD,INPUTNO,%TEMPNO1%) 114BTASK(/CPMB/MASTER_LOAD,FORMULA_FILE_NO,%TEMPNO2%) 115BTASK(/CPMB/MASTER_LOAD,DIMNAME,%DIMNAME%)   116BNote:  If there is more than one parameter for a job, then you can simply prompt for it using this syntax.  117BPROMPT(TEXT,%GV_PARAM1%,"DI Job Parameter- GV_PARAM1",) 118BPROMPT(TEXT,%GV_PARAM2%,"DI Job Parameter- GV_PARAM2",) 119BPROMPT(TEXT,%GV_PARAM3%,"DI Job Parameter- GV_PARAM3",)  120BThen for the TASK, you can add those parameters to the existing DI_JOB_PARAM parameter.    121BTASK(ZBPC_IMP_MDATA_DI,DI_JOB_PARAM,GV_PARAM1%EQU%%GV_PARAM1%%TAB% GV_PARAM2%EQU%%GV_PARAM2%%TAB%GV_PARAM3%EQU%%GV_PARAM3%))

122BNotice the INFO lines, %EQU% refers to (=) and %TAB& refers to (,).  The result of the DI_JOB_PARAM would have the format as A=B;C=D.  This format must be used in order for the process type to parse it correctly and create the required XML to pass to the job.  Also the parameter names, such as GV_PARAM1 must match the global variable name in the DI job, without the $ in the beginning.    123BThe following is the default instructions for the ZBPC_IMP_TDATA_DI package. You can add prompts to this script in the same way as above. 

Page 51: How To Use BPC Data Manager

  124BPROMPT(TEXT,%DI_JOB%,"Please Enter DI Batch Job Name",) 125BPROMPT(TEXT,%GV_MANDT%,"DI Job Parameter- GV_MANDT",) 126BPROMPT(INFILES,,"Import file:",) 127BPROMPT(TRANSFORMATION,%TRANSFORMATION%,"Transformation Hfile:",,,Import.xls H) 128BPROMPT(RADIOBUTTON,%CLEARDATA%,"Select the method for importing the data from the source file to the destination database",0,{"Merge data values (Imports all records, leaving all remaining records in the destination intact)","Replace && clear datavalues (Clears the data values for any existing records that mirror each entity/category/time combination defined in the source, then imports the source records)"},{"0","1"}) 129BPROMPT(RADIOBUTTON,%RUNLOGIC%,"Select whether to run default logic for stored values after importing",1,{"Yes","No"},{"1","0"}) 130BPROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when importing data.",1,{"Yes, check for work status settings before importing","No, do not check work status settings"},{"1","0"}) 131BINFO(%EQU%,=) 132BINFO(%TAB%,;) 133BINFO(%TEMPNO1%,%INCREASENO%) 134BINFO(%ACTNO%,%INCREASENO%) 135BTASK(ZBPC_IMP_TDATA_DI,SAPPSET,%APPSET%) 136BTASK(ZBPC_IMP_TDATA_DI,DI_JOB,%DI_JOB%) 137BTASK(ZBPC_IMP_TDATA_DI,DI_JOB_PARAM,GV_MANDT%EQU%%GV_MANDT%) 138BTASK(ZBPC_IMP_TDATA_DI,FILE,%FILE%) 139BTASK(/CPMB/CONVERT,OUTPUTNO,%TEMPNO1%) 140BTASK(/CPMB/CONVERT,ACT_FILE_NO,%ACTNO%) 141BTASK(/CPMB/CONVERT,TRANSFORMATIONFILEPATH,%TRANSFORMATION%) 142BTASK(/CPMB/CONVERT,SUSER,%USER%) 143BTASK(/CPMB/CONVERT,SAPPSET,%APPSET%) 144BTASK(/CPMB/CONVERT,SAPP,%APP%) 145BTASK(/CPMB/CONVERT,FILE,%FILE%) 146BTASK(/CPMB/CONVERT,CLEARDATA,%CLEARDATA%) 147BTASK(/CPMB/LOAD,INPUTNO,%TEMPNO1%) 148BTASK(/CPMB/LOAD,ACT_FILE_NO,%ACTNO%) 149BTASK(/CPMB/LOAD,RUNLOGIC,%RUNLOGIC%) 150BTASK(/CPMB/LOAD,CHECKLCK,%CHECKLCK%) 151BTASK(/CPMB/LOAD,CLEARDATA,%CLEARDATA%)

6.2 40BMapping Coding for EntityTransformation.ROWINDEX  152BLtrim_blanks(to_char(gen_row_num(), '000000000'))

6.3 41BMapping Coding for EntityTransformation.ROWDATA  153Bvarchar_to_long(Entity.Field1||','||Entity.Field2||','||Entity.Field3||','|| 154BEntity.Field4||','||Entity.Field5||','||Entity.Field6||','|| 155BEntity.Field7||','||Entity.Field8||','||Entity.Field9 )