SAP BW Copy Existing DTP for Data Targets

Similar documents
ABAP Program to Read/Populate Selection Screen Parameters Dynamically

ABAP Code - Recipients (Specific Format) SAP BW Process Chain

DB Connect with Delta Mechanism

Step by Step Guide to Creating a Process Type to Close an Open Request in a Cube in BI 7.0

SAP BI Analysis Authorization (Customer Exit Variables)

Creation of Sets in SAP-ABAP, How to Read them INI SAP-ABAP Reports

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Procedure to Trigger Events in Remote System Using an ABAP Program

Reporting Duplicate Entries

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

Generate Export Data Source

Step-By-Step guide to Virtual InfoCube Implementation

Database Statistics During ODS Activation

Standalone BW System Refresh

Step By Step: the Process of Selective Deletion from a DSO

ABAP Code - Read SAP BW Infoprovider (Infocube, DSO, Multiprovider) Data using ABAP Code

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

Step by Step Procedure for DSO Creation

How to Write Inverse Routine with Expert Routine

Triggering the Process Chains at Particular Date using Events

Easy Lookup in Process Integration 7.1

Using Radio Buttons in Web Template

Reading Enhanced DataSource fields for the Remote Cube

Custom Process types Remote Trigger and End Time

Customized Transaction to Trigger Process Chain from Failed Step

Using Query Extract to Export Data from Business warehouse, With Pros and Cons Analyzed

Open Hub Destination - Make use of Navigational Attributes

Load Info Cube in SCM 5.0 (BI 7.0)

How to Display Result Row in One Line While Reporting On Multiproviderer

Data Extraction & DS Enhancement in SAP BI Step by Step

Recreating BIA Indexes to Address the Growth of Fact Index Table

Data Mining: Scoring (Linear Regression)

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

Restricting F4 (Input Help) Values While Running a SAP BW Query

Process Chain Log Deletion

Steps to Activate ALE Delta for Custom Master Datasource Created on ZTable

Step by Step Method for File Archival in BW

Linking Documents with Web Templates

Data Mining: Decision Trees

Program to Find Where used List of a Query for Web Template (3.5), Work Books and RRI

How to Work with F4 Input Help Effectively in BEX

Explore to the Update Tab of Data Transfer Process in SAP BI 7.0

Routines in SAP BI 7.0 Transformations

Using Rule Group in SAP-BI. Part - 1

POWL: Infoset Generation with Web Dynpro ABAP

Material Master Archiving in Simple Method

Implementing Customer Exit Reporting Variables as Methods

Role and Scope of ABAP in SAP BI

Step by Step Guide to Enhance a Data Source

SDN Community Contribution

Validity Table in SAP BW/BI

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

Table Row Popup in Web Dynpro Component

Replacement Path: Explained with an Illustrated Example

Step by Step Guide on How to Use Cell Definition in BEx Query

Step by Step Guide How to Use BI Queries in Visual Composer

A Simple Web Dynpro Application to Locate Employee s Location into Google Map

Customizing Characteristic Relationships in BW-BPS with Function Modules

SDN Community Contribution

Graphical Mapping Technique in SAP NetWeaver Process Integration

Analysis Process Designer (APD) Step by Step Business Intelligence

Financial Statement Version into PDF Reader

How to Default Variant Created for Report Developed In Report Painter/Writer

Using Customer Exit Variables in BW/BI Reports: Part - 14

Data Source Replication and Activation of Transfer Structures

SAP Net Weaver 400s BI 7.0For more information, visit the Business Intelligence homepage.

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

BW Reconciliation. Applies to: Summary. Author Bio

Currency Translation in SAP BI Step by step Guide

Creation of Key Figures with Higher Decimal Place Precision

Server Connectivity and Data Load from Non SAP System to BW

MDM Syndicator: Custom Items Tab

Loading the Data for Time Dependent Hierarchy in SAP BI

Changing the Source System Assignments in SAP BW Objects without Affecting the Data Modeling

How to Broadcast BEx Workbooks using BW Pre-calculation Server and through Process Chains

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

Using Nested Exception Aggregation in BEx Reports- Scenario

Data Flow During Different Update Mode in LO Cockpit

Custom BADI Using Function Module UJQ_RUN_AXIS_QUERY

SAP BI Global Report Variable user exit modularization

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

Material Listing and Exclusion

RRI: Parameters Not Transferred to R/3 Transaction

Dynamically Enable / Disable Fields in Table Maintenance Generator

SMT (Service Mapping Tool)

Planning Functions and Characteristic Relationship in Integrated Planning

How to Configure User Status in mysap SRM

Working with Tabstrip in Webdynpro for ABAP

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

Freely Programmed Help- Web Dynpro

Implementation and Usage of Transformation End Routine in SAP BI 7.0

Add /Remove Links on ESS Home Page in Business Package 1.5

Limitation in BAPI Scheduling Agreement (SA) Create or Change

Displaying SAP Transaction as Internet Application in Portal

SAP BW - PSA/Change Log Deletion Governance

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Performance Tuning in SAP BI 7.0

Performance Management in Data Loading: an Overview

Transcription:

SAP BW Copy Existing DTP for Data Targets Applies to: SAP BI Consultants with ABAP Knowledge. For more information, visit the EDW HomePage. Summary Copy existing DTP to a new one in not possible in SAP BI 7.0, to make it workable created a CLASS (ABAP) to copy DTP to a new one. Author: Suraj Tigga Company: Capgemini Consulting Created on: 08 November 2010 Author Bio Suraj Tigga is a Senior SAP BI / ABAP consultant at Capgemini Consulting. Suraj joined Capgemini Consulting in 2008 and has worked on multiple SAP BI implementation and support projects. 2010 SAP AG 1

Table of Contents Scenario... 3 Step-by-Step Solution... 3 Class (ABAP)... 3 Method (COPY_DTP)... 5 ABAP - Z_COPY_DTP_ABAP... 6 Execute Class (ABAP)... 7 Related Content... 9 Disclaimer and Liability Notice... 10 2010 SAP AG 2

Scenario Copying existing DTP is not possible in SAP BI 7.0, so every time we want to copy a existing DTP, we have to create a new one. Here in this article developed Class (ABAP), which would help us copy the existing DTP for different data targets (Infocubes, DSO, Infoobject Attributes, Infoobject Text and Infoobject Hierarchies) Step-by-Step Solution Below are the steps mentioned to copy the DTP based on existing DTP (Built on DSO): Class (ABAP): ABAP class would be created with required Definition and Implementation. Method: ABAP code which copies the existing DTP definition to a new one. Execute Class (ABAP): Executes the Class (ABAP) to copy the DTP in M version and then activate it. Class (ABAP) Copy the existing DTP (Full Update) on DSO (ZQMNTST): Step1: Go to transaction SE24 and create a Class Z_DTP_COPY : 2010 SAP AG 3

Step2: Create a Method COPY_DTP : Maintain the Importing and Exporting parameters for the Method: Maintain Exception (Error): 2010 SAP AG 4

Method (COPY_DTP) Write the ABAP Code to copy the existing DTP Activate the Class (ABAP): 2010 SAP AG 5

ABAP - Z_COPY_DTP_ABAP Step1: ABAP Code Z_COPY_DTP_ABAP to call the Class Z_DTP_COPY : REPORT z_copy_dtp_abap. ******* DATA DECLARATION *********** DATA : BEGIN OF p_tab OCCURS 0, dtp(30) TYPE c, END OF p_tab, lt_return TYPE STANDARD TABLE OF ddshretval, wl_return TYPE ddshretval, e_dtp_copy TYPE rsbkdtpnm, zc_dtp_copy TYPE REF TO z_dtp_copy. DATA: valu_flds TYPE dfies OCCURS 0, valu_flds_wa TYPE dfies, w_dtp TYPE rsbkdtpnm. ******* SELECTION SCREEN ***************** * DTP entered PARAMETERS : p_dtp TYPE rsbkdtpnm. ******* AT SELECTION SCREEN ON VALUE ****** AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dtp. * Retreive the values from DB table RSBKDTP SELECT dtp FROM rsbkdtp INTO TABLE p_tab WHERE objvers EQ 'A'. IF sy-subrc EQ 0. * Sort the internal table with DTP SORT p_tab BY dtp. * Pass the Field definition of DTP valu_flds_wa-tabname = 'RSBKDTP'. valu_flds_wa-fieldname = 'DTP'. APPEND valu_flds_wa TO valu_flds. * Call the FM to retrieve the values in F4 help CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'DTP' dynpprog = sy-repid dynpnr = sy-dynnr dynprofield = 'P_DTP' window_title = 'DTP Selection' TABLES value_tab = p_tab field_tab = valu_flds return_tab = lt_return. IF sy-subrc EQ 0. READ TABLE lt_return INTO wl_return INDEX 1. IF sy-subrc EQ 0. w_dtp = wl_return-fieldval. ENDIF. ENDIF. ENDIF. 2010 SAP AG 6

***** START -OF-SELECTION ************* START-OF-SELECTION. * Call method to copy DTP CALL METHOD z_dtp_copy=>copy_dtp EXPORTING i_dtp = w_dtp i_dtp_txt = 'Test' i_dtp_prefix = ' ' IMPORTING e_dtp_copy = e_dtp_copy. IF sy-subrc EQ 0. WRITE : 'DTP Copied ', e_dtp_copy. ENDIF. Execute Class (ABAP) This is an example of a code sample: Step1: Execute (F8) the ABAP Code Z_COPY_DTP_ABAP and enter the DTP which has to be copied: Step2: Execute the ABAP code which copied the DTP to a new one: 2010 SAP AG 7

Step3: Check the newly created DTP: Activate the DTP DTP_4JRXZZHDYPBZF0QICXJ13QASR 2010 SAP AG 8

Related Content For more information, visit the EDW HomePage. 2010 SAP AG 9

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2010 SAP AG 10