Analysis Process Designer (APD) Part - 1 PDF
Analysis Process Designer (APD) Part - 1 PDF
Applies to:
SAP NetWeaver Business Warehouse (Formerly BI). Will also work on SAP BI 3.5. Business Intelligence homepage.
Summary
This article gives clear picture about how to down load the InfoCube Data into .CSV file using Analysis Process Designer in SAP-BW/BI. Author: Surendra Kumar Reddy Koduru
Company: ITC Infotech India Ltd. (Bangalore/INDIA) Created on: 26 December 2009
Author Bio
Surendra Kumar Reddy Koduru is a SAP BI Lead Consultant currently working with ITC Infotech India Ltd (Bangalore/INDIA). He has got rich experience and worked on various BW/BI implementation/Support projects.
Table of Contents
Introduction ......................................................................................................................................................... 3 Live Scenario .................................................................................................................................................. 3 Steps ............................................................................................................................................................... 3 Result ............................................................................................................................................................ 17
InfoCube Data: ........................................................................................................................................................... 17
File Data ........................................................................................................................................................ 18 Related Content ................................................................................................................................................ 18 Disclaimer and Liability Notice .......................................................................................................................... 19
Introduction
The Analysis Process Designer (APD) is a workbench with an intuitive graphical user interface for creating, executing, and monitoring analysis processes. The analysis process is primarily based on data that was consolidated in the Data Warehouse and that exists in InfoProviders. Analysis processes (APD) can be created on a graphical user interface using drag and drop. Data from different data sources in the BI system can be combined, transformed, and prepared for analysis in several individual steps. This allows it to be resaved in data targets in the BI system (DataStore objects for direct update or InfoObjects with attributes) or in CRM systems. Live Scenario I have data in InfoCube and I want to save the data into Flat File in .CSV format in Desktop or Application Server. Here Im saving the file in Desktop. I have some Characteristics InfoObjects and Key figure InfoObjects in InfoCube, but I want to only the following four InfoObjects need to download to .CSV file. Material Batch Calendar Day Amount = 0MATERIAL = 0BATCH = 0CALDAY = 0AMOUNT
But while downloading the data into .CSV file, I want to change the format of the 0CALDAY. Eg: In InfoCube we can see the 0CALDAY data like 01.06.2009. After downloading the data into Flat File we can see the 0CALDAY data like 20090601. But I want to save the 0CALDAY data like 01/06/2009. Steps Follow the following simple steps.
Step: 2 Drag and Drop DataSource i.e. Read Data from InfoProvider.
Step: 4 Select the required InfoObjects from Field selection and move it from right side panel to left side Panel. See the below Screen.
Here I selected only following InfoObjects. Material Batch Calendar Day Amount = 0MATERIAL = 0BATCH = 0CALDAY = 0AMOUNT
Step: 6 Select the Client Workstation and give File path and Write Mode in Data Target Tab.
Step: 7 Set the Separators and Separator Field Name/InfoObject in CSV File Properties tab.
Step: 8 Drag and Drop ABAP Routine from Transformations. See the below Screen.
Step: 9 Map the Objects like below and double click Routine.
Step: 11 Maintain the following InfoObjects in Source Fields in Source Flds Tab. Material Batch Calendar Day Amount = 0MATERIAL = 0BATCH = 0CALDAY = 0AMOUNT
Step: 12 You can see the selected Fields in Target Fields in TargetFlds tab, here I added ZCALDAY field and given Type (InfoObject) is 0MATERIAL. Because if we add / to date then the length is not enough for 0CALDAY, so instead of 0CALDAY, I given 0MATERIAL it is having length 18.
Step: 13 Code:
dt = ls_source-calday. dd = ls_source-calday+6(2). mm = ls_source-calday+4(2). yy = ls_source-calday+0(4). CONCATENATE dd '/' mm '/' yy into ls_target-zcalday. MOVE-CORRESPONDING ls_source TO ls_target. APPEND ls_target TO et_target. ENDLOOP. *---------- End of transformation code ------------------------------
LOOP AT it_source INTO ls_source. dt = ls_source-calday. dd = ls_source-calday+6(2). mm = ls_source-calday+4(2). yy = ls_source-calday+0(4). CONCATENATE dd '/' mm '/' yy into ls_target-zcalday. MOVE-CORRESPONDING ls_source TO ls_target. APPEND ls_target TO et_target. ENDLOOP. *---------- End of transformation code -----------------------------ENDFORM.
Once you execute it, it will display the following screen with Success Symbol.
File Data Open the file and see the data in the file, you can find the required date format in D column.
Related Content
Analysis Process Designer Using Customer Exit Variables in BW Reports Part - 3 How to use Customer Exit Variables in BW Reports: Part - 2 Using Customer Exit Variables in BW or BI Reports Part - 1 Using Text Variables with Customer Exits in Report Headings Using Text Variables with Customer Exits in Report Headings