Você está na página 1de 3

Hi, This might help: A beginner's guide to your first BI model in NW2004S Well, If you are reading these

lines, you must have heard the buzz around BI in NetWeaver 2004S. You might even browse the BI in SAP NetWeaver 2004s forum, and now you are ready to jump into the (deep) water and build your first model in NW2004S. This comprehensive blog post is aimed to help you to get started and minimize the potential frustrations along the way. I assume that (1) you either have access to a NW2004S sandbox system at your company or you have downloaded and installed the nice NW2004S ABAP Sneak Preview system (load it at Load NW2004S Sneak Preview ) and (2) that you have at least some theoretical experience with previous versions of BW . Ok, so let's get started. Our goal is to build and populate a DSO (DataStore Object, the new ODS) that will display Flights data. More specifically, data will be sourced from the SFLIGHT table available in our NW2004S system. The SFLIGHT table is part of the SAP Flight data model (A simplified modeling of an airline flight booking system available in every SAP system). 1. First let's check whether the SFLIGHT table in our system is populated with data. - Execute transaction SE16 and type SFLIGHT in the table name. - Click on the green checkmark and click on "Number of entries". - If the number of entries is 0, we can safely assume that the SAP Flight tables weren't populated. 2. Populate the SAP Flight tables (skip this step if you found some data in table SFLIGHT in the previous step). - Execute transaction BC_DATA_GEN and click on the Execute icon. - The SAP Flight data model will be now populated with demo data. This will take around 10 minutes (depends on your systems resources).Note that in case that data is currently available in the SAP Flight tables, it will now be suppressed by the autogenerated data. - Lets now look into the SFLIGHT table data model (transaction SE11): 3. We will now build the InfoObjects required in our data model. For the sake of convenience, we will build only 6 InfoObjects ( 4 characteristics and 2 key figures). Execute transaction RSA1, from the left navigation pane, click on "InfoObjects". - Right Click on the upper node in the InfoObjects tree and click on "Create InfoArea" - Create an InfoArea with technical name ZFLIGHT and description "Flights". - Right click on the new created InfoArea and create two InfoObject Catalogs (that will be used to contain your custom InfoObjects). Activate your InfoObjects Catalogs using the path InfoObject Catalog>> Activate : - Flights Characteristics ZFLIGHT_CHAR - Flights Key Figures ZFLIGHT_KF - Right click on the Flights Characteristics InfoObject Catalog and click on Create InfoObject to create the following Characteristics with the following Char id, description, data type and length: ZCARR_ID Carrier ID, CHAR, 2 ZCONNID Connection ID, NUMC, 4 ZFLDATE Flight Date, Reference Characteristic: 0calday ZPLANTYPE Plane Type, CHAR, 10 - Right click on the Flights Key Figures InfoObject Catalog and click on Create InfoObject to create the following Key Figures with the following id, description and data type: ZPRICE Flight Price, Amount, Unit/Currency: 0currency ZPAYMENTSUM Flight Total Income, Quantity, Number - Make sure you activate each of the InfoObjects - Refresh the InfoObjects tree to make sure all InfoObjects are listed under their InfoObject Catalog 4. Build your DataStore Object (DSO) - Execute RSA1 and click on InfoProviders tab Youll notice the Flights InfoArea. Create and Activate your DataStore under that InfoArea. Name it Flight DataStore (technical name ZFLIGHTS). - In the DSO settings, set the Type of DataStore object to be Write Optimized. This type of DataSource consists only of one table of active data (thus, there is no need to activate

requests after loading them). This allows for faster data loads into the Enterprise Data Warehousing layer. 5. Create your DataSource in the NW2004S system. Our DataSource will be a generic datasource (built from transaction RSO2) that will source data from the SFLIGHT table in our BI system. Important note: Creating a DataSource in the source system requires that youll provide a developer key. In case you are working on your companys sandbox system, ask your Basis team to supply you one. In case you are following these steps in an NW2004 ABAP Sneak Preview system, you will find your developer key at http://www.sap.com/platform/netweaver/minisap.epx. When trying to apply it you will however receive an error :(: The reason is that the developer key works only for user BCUSER, and here I tried to apply it for user GILADW. Two possible workarounds for this problem: a. In client 001 (the BI client) Execute transaction SU01, Create a user named BCUSER , provide it with SAP_BW_ALL role and SAP_ALL profile. Then login to client 001 with the newly created user and execute the steps outlined below. b. Login to client 000 with user BCUSER and password minisap and execute the steps outlined below. - Execute transaction RSO2. - Create a transaction data DataSource named ZFLIGHT_DS - Complete the screen as shown below: If you are working on the ABAP Sneak Preview, make sure you are logged in to client 001. Execute RSA1 and select Source Systems Highlight your BI system, right click and select display DataSource tree. Right click on DataSources for and select Replicate DataSources. Select to create your ZFLIGHT_DS DataSource as a DataSource and click the green check mark. Right Click on your DataSource and activate it. 6. Now we need to create and execute an InfoPackage. Note that in NW2004S, the InfoPackage is used to transfer the data from the source system to the PSA. We will use the Transformation and the Data Transfer Process (DTP) to actually execute the transfer of data from the PSA to the InfoProviders. Right click on your DataSource and select, create InfoPackage. Create an InfoPackage named Transfer Flights Data. Note that the option Only PSA is the only one available in the InfoPackage Processing tab. Execute the InfoPackage From your DataSources screen, right click the ZFLIGHT_DS DataSource and click on Manage. This is the new place to perform PSA maintenance activities. 7. Create a Transformation object. For more information on transformations see: Transformations Right click the ZFLIGHT_DS DataSource and select Create Transformation. Specify the ZFLIGHTS DSO as the transformation target Map the transformations as specified below: Activate the transformation object 8. Create and execute a DTP. The DTP is a runtime object used in order to transfer data from persistent objects in BI. For more information on DTPs see: Data Transfer Process In RSA1, go to the InfoProvider tab, right click the ZFLIGHTS DSO and select Create Data Transfer Process The source and targets objects will be filled automatically Click on the green checkmark Activate the DTP From the Execute tab, click on Execute When prompted whether you want to Change the load method, select yes. 9. Verify your Data reached the DSO Active table Right click your ZFLIGHTS DSO; select manage, go to the contents tab, click on Active Data and preview your SFLIGHT data in the DSO. Hope this helps u.. Best Regards, VVenkat

Você também pode gostar