Quantcast
Channel: SCN : All Content - SAP PowerDesigner
Viewing all 638 articles
Browse latest View live

columns projection from database inputs in DataJoin in script

$
0
0

Hi all,

 

I have a problem generating a data mouvement model using script (no problem manually). 

 

Here's an example (I show only the part where I have a problem):

data join sample.JPG

Here's the join:

Join.JPG

 

In this example, I have no problem to create transformation processes, control flows, data connections, database definitions, associate database inputs, associated data flows, join(s) and to link the final table but only fields from the first table (xtr_Shipping address in this case) are present in Data Structure Column list, no fields from xtr_client.

 

DataStructureColumn.JPG

 

Steps followed are:

- create a datatransformaiontask and all steps (joins, transformation, ...)

- associate db output and dataflow

- associate all db input and all data flows

- create join

 

I'm searching why I don't have projection of fields from xtr_client.  Have you an idea ?

 

Kr,

Thierry


Apply Model changes and Extended attributes.

$
0
0

Hi All,

 

I have been struggling with PowerDesigner for a couple of days and could use some help.

 

Here is the scenario:

 

I have added an extended attribute to the model profile in a dbms reference file. It is a binary field used to control control whether additional text is wrapped around the ddl statements.  I can see this in the model properties tab, and it works great when I'm generating a database from the model.

 

When I go to use the "apply model changes to database" functionality, PD see's my extended attribute but it always returns "FALSE" for certain commands.  For instance in the "drop" command PD always returns false for the extended attribute, but the "create" command works correctly.

 

Help!

 

Thanks

 

Tim

Source to Target Mapping Report

$
0
0

Is anyone aware of a way to generate a typical "Source to Target Mapping" report from a data movement model?

 

I am looking for something like this:

 

Source Table     Source Column     Source Datatype     Transformation     Target Table     Target Column     Target Datatype

------------------     --------------------     -----------------------     --------------------     -----------------     --------------------     ----------------------

Employee          EMP_NO               VARCHAR(10)        pass-thru              D_EMP             E_NO                    VARCHAR(10)

 

I don't see anything out of the box that comes close to this.  It seems to support listing the contents of each object, but no way to represent the logical flow of columns represented inside a DMM.

Impact and Lineage Analysis setup for a dwh

$
0
0

Hello,

 

My department is responsible for reporting on risk on various levels (portfolio's, industries, countries).

For this we collect on daily/weekly/monthly basis

  1. data (csv) on outstanding amounts  for all loans/facilities from all our offices,
  2. data (xml) on customer data, incl risk rating
  3. data (xml) on reference data, like countries, statusses, risk-levels, etc.
  4. market data (fx, interests, equity listing info)
  5. country risk data (csv)

 

As an info architect I'm responsible for maintaining datamodels around these data.

For a more efficient overview in case of issues we also like to achieve the Impact and Lineage possibilities.

I already made 5 conceptual models for each of these representing there initiatial loaded formats,plus one

for the datawarehouse where all is collected and cleansed, linking to the entities in the 5  loaded-file models.

So far so good.

I could continue making some new models for an extended datawarehouse and finally for the datamarts. Point is

that this collection of cdm's finally will not help me achieve the following:

  • I want to move to LDM to help my  clients (analysts) find back their FK-columns (and to enable me to
    add additional info on those relationships) and to introduce extra columns for keying and history mechanism.
  • I want to insert the processes  that glue these models together (merely as stepping stones to  documentation outside PD)
  • I want to be able to do a any  impact and Lineage Analysis

 

I stumbled upon a video demo on an airline ticket example which made it sound rather simple.But I am currently stuck with the

following questions:

  1. The data from source 1 (above) are the “real ones”, that can be cleansed, mapped into other ones and referenced to a description via the other sources (2-5) that represent master data around it. But if I draw a FK column to the  referenced entity I loose my info referencing the column back to a column in source 1 . If  I stick to the column as delivered, I can not express cases of mapping (data is changed to a internal bankwide
    code), nor that the code refers to a category of reference data ( we  probably like to drill down into in the reporting and data mart
    models). ? So in my lineage I like to be able to see e.g. A local  product code as delivered by the client in its loans-file >
    mapped to an internal product code stemming from a file mapping the clients local code to the bankwide used product code, > and
    referencing a list of products+descriptions used in yet another  file. So the lineage should forck back three ways  for the dataitem
    in this example. How should I tackle this case? Ideally I want to  solve this puzzle (for me) only using a project containing a set of
    LDM glued together by PDM. Please let me know if I have to use Data Movement Models instead to achieve this, but for what I read about these  they look too much intend for setting up ETL, which is again to much  detail.
  2. I only want to use PDM as a glue,  I rather do not want to have to put up a whole list of input items  and output items to it. Is there a way? Or does the Mapping Editor already cick in here?
  3. The lineage should help me find  out escpecially the lineage for data-items appearing in the final models (datamarts/reports). Any solution to Q1&2 that does not  fullfill this lineage requuirement, is finally not usefull I'm  afraid.

 

If people have some answers for me or
can point me in the right direction for additional info, would be
great! Thanks a lot in advance.

 

Wim de Groot

Delete button behaviour in an ER diagram

$
0
0

Is there a preference setting somewhere, where I can ask PD to default the Delete button to delete the symbol, instead of the object ?

 

I don't like the "destructive" default that Sybase choose to go with it, which is to delete the object. It should have the reverse as the normal action would be that you want to add and remove things from a diagram. Deleting the object from the entire model would be the next step that you want to take sometimes.

Partitions

$
0
0

Hi !

 

I have a question about partitions :  How to put two values in the "Ending At" for partitioning tables, every time i put tow values, when i close the window, powerD keep juste the first value !

 

Ty

reverse engineering with oracle database

$
0
0

excessive delay in the process of reverse engineering with oracle database

Implement a Database Automatically

$
0
0

Goal:

Create a OLTP and OLAP database, in SQL server 2012 ,automatically based on the database model you have created in Powerdesigner.

 

Problem:

Possible to do it? If yes, how do you do it?


Problem with Alter Script generation

$
0
0

I recently upgraded from Powerdesigner 16.0 to 16.5 and since then the generation of alter scripts for the latest changes to the data model are not running correctly.  A change to a "code" table that is referenced by many other tables fails (MS SQL Server 2008) because of the existence of a Foreign Key reference.  The tool use to generate these scripts correctly, i.e. they dropped all foreign key references and then altered the table and then recreated the foreign keys.  Not sure what has happened after the upgrade.  Does anyone else know what might have changed. 

 

I hope I have the correct forum, this is my first post under SAP (use to use Sybase often enough but the tool hasn't given me any trouble in a very long time).  I'll probably open a support case Monday, as this issue has only been noticed for the first time this last week but is a serious issue.  Still hoping it might be something simple that others already know.

 

thanks,

 

James K.

Using PowerDesignerViewer (POWERAMCOnsultation 16.5)

$
0
0

We have created  a repositery on PowerAMC 16.5, connecting the database is ok.

All are in version 16.5.0.3983 (Viewer and PowerAMC).

 

We can'use the viewer because of the message:

"The repository does not contain all the required

definitions. It cannot be used with this version of the

Viewer."

 

What is wrong ?

 

 

Regards.

Christel Charabouska

GIE SV

Extended collection values not in replicates

$
0
0

I have a bunch of extensions defining extended objects and metadata for many existing objects in my metamodel. In my EA I have a model that includes an information base for objects that are reused all over the place  - things like "networks" or 'servers", etc.

 

In order to make the creation of the Information Base a worthwhile exercise, I need to either include replicas or shortcuts in other models where I want to reuse these objects. Shortcuts are a bit of an issue as we are using Reports quite a bit and I am having issues getting at metadata when I use shortcuts. Replicas seem to be a better approach. Problem is that when I replicate, for objects where I have extended metadata that is an extended collection, the values do not show up in the replicate. Things that are defined as extended attributes make it over just fine it seems.

 

Am I missing something? Is there something I can do for this (making a copy works but that would seem to defeat the purpose of having a shareable Information Base)?

 

Thanks in advance for any advice.

 

Bruce

getting select statement from a mapping

$
0
0

Hello,

 

I have multiple valid mappings defined in a model.  Using vbscript I want to get the select statement but when I use map.selectsttement, I get an empty string.

 

Is there a solution to get the associated statement ?

 

Kr,

Thierry

Problem with extended attributes

$
0
0

Hello,

 

I'm currently working on an extended model for EAM model (technology diagram).  My goal is to build a view of a SAP BI 4.0 CMS to provide an architecture visual map.  Everything is working fine accessing all needed elements (reports, universes, ...) but I have a strange behavior using extended attributes.

 

Here's how it was done in PowerDesigner:

1. At the model level, few extended attributes and a form is defined to capture CMS connection parameters

2. I defined extended objects for a generic "BO Document" with specific stereotypes RichClient and Webi Document (to be extended later)

3. I defined also several extended objects for universes, connection, report instance

4. A specific script has been developped to connect and capture elements from the CMS

 

Problem description:

When capturing BO Document information, I use "SetExtendedAttribute" to save values but, in some cases, nothing is saved in the extended attribute.

Here's part of the script (decomposed for the demonstration):

script.JPG

 

and here's the result:

result.JPG

I really don't understand why I don't have the value in the extended attribute ?

 

Can you help ?

 

Kr,

Thierry

PowerDesigner : reverse of IBM Banking Data Warehouse (BDW)

$
0
0

Hi,

 

Is it possible to make a reverse engineering of an IBM Banking Data Warehouse (BDW) with PowerDesigner  v.15.3 ?  How can I do it?  Does someone have experience with this (type of) reverse ?

 

Thank you !

 

JDD

Adding tablespace to table

$
0
0

Hi !

 

I'm trying to assign some tablespaces to tables using scripts. For that i triyed this :

 

call TB.SetPhysicalOptionValue("<Physical Options>\<tablespace_clause>\in", TS.Name)

 

I triyed also other solutions but without any result. When i try :

output TB.GetPhysicalOptionValue("<Physical Options>")

 

I don't get anything !

 

Someone has already succeeded to do this ?

 

Thank you



How to Enable PowerDesigner Support for Analysis Services

$
0
0

When I attempt to enable the add-in for Microsoft Analysis Services I get the following error:  Add-in Microsoft Analysis Services cannot be registered. Not sure how to address this issue.Running PowerDesigner v15.2. Any assistance to resolve would be much appreciated!

Reverse Engineering - Multiples MS SQL Schemas

$
0
0

I'm working with PowerDesigner 16.5.  I am trying to reverse engineer a database that has multiple schemas.  Whenever I attempt to reverse engineer it, I find that it ignores all of the schemas, except for the dbo schema.  Can anyone give me some help on understanding how to work with multiple schemas?

PowerDesigner for Hive/HBase

$
0
0

Wondering if anyone is using PowerDesigner for modeling tables for Hive and/or HBase? I have started a custom .xdb file for Hive but it falls short when dealing with complex data types and there are additional customizations needed that I have not figured out yet. I've heard that the next version will have some sort of support for big data, but no idea what that will look like.

Reverse Engineering is Creating odd results

$
0
0

I am attempting to reverse engineer my SQL Server 2008 R2 database and have finally been able to get most of the tables created.  One of my views came across oddly.The table in the image below came over fine, but a view that is contained in the database and is just doing a simple select on that table seems to have been created in PowerDesigner with each character in one it's columns being translated into seperate individual fields in PowerDesigner.  Has anyone seen this before? If so, can anyone help me understand what's going on?

 

Issue with Multiple Schema Import.PNG 

Switching from VBS to VBA

$
0
0

I found the following in the PD Documentation and it is so essential that i need to share it !

 

Differences between scripting and OLE automation

VBScript programs and OLE Automation programs are very similar. You can easily create VB or VBA programs, if you know how to use VBScript. However, some differences remain. The following example program highlights what differentiates OLE Automation from VBScript.

VBScript program

The following VBScript program allows you to count the number of classes defined in an OOM and display that number in PowerDesigner Output window, then create a new OOM and display its name in the same Output window.

To do so, the following steps are necessary:

  • Get the current active model using the ActiveModel global function

  • Check the existence of an active model and if the active model is an OOM

 

  • Count the number of classes in the active OOM and display a message in the Output window

  • Create a new OOM and display its name in the Output window

 

'* Purpose:  This script displays the number of classes defined in an OOM in the output window.  
Option Explicit 
' Main function 
' Get the current active model 
Dim model 
Set model = ActiveModel 
If model Is Nothing Then 
      MsgBox "There is no current model." 
ElsIf Not Model.IsKindOf(PdOOM.cls_Model) Then 
      MsgBox "The current model is not an OOM model." 
Else  ' Display the number of classes 
      Dim nbClass 
      nbClass = model.Classes.Count 
      Output "The model '" + model.Name + "' contains " + CStr(nbClass) + " classes." 
' Create a new OOM 
      Dim model2 
      set model2 = CreateModel(PdOOM.cls_Model) 
      If Not model2 Is Nothing Then 
           ' Copy the author name 
           model2.author = model.author 
           ' Display a message in the output window 
           Output "Successfully created the model '" + model2.Name + "'." 
      Else 
           MsgBox "Cannot create an OOM." 
      End If 
End If

OLE Automation program

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To do the same with OLE Automation program, you should modify it as follows:

  • Add the definition of the PowerDesigner application

  • Call the CreateObject function to create an instance of the PowerDesigner Application object

 

  • Prefix all the global functions (ActiveModel, Output, CreateModel) by the PowerDesigner Application object
   

  • Release the PowerDesigner Application object

 

     
  • Use specific types for the variables "model" and "model2"

 

 

Viewing all 638 articles
Browse latest View live