One to many and many to one transformation

I want to transform a field one to many form and many to one.
EXP: One to MAny
Name and Address.
Tanvir Ahmad Mughal
i want to transfor it as first name=tanvir, M_name=Ahmad, Last name=Mughal
similer with address. So tell me how i will do in oracle warehouse builder 10G.
exp: many to one
the address is stored in 4 attributes in source and i want to store in one field or 2 fields in oracle
warehouse builder. tell me about it.
i shall be thankful to you for this kind

Hi
Use expressions!
Select an expression and connect the sorce fiedl to it. Create 3 output filed and define the expressions for them:
- substr( source_field, 1, instr(source_field, ' '))
- substr( source_field, instr(source_field, ' '), instr(source_field, ' ', 2))
- substr( source_field, instr(source_field, ' ', 2)).
For many to one concatenate them in an expression. Create an expression, connect the source fileds, create an output filed and in the expression use this:
- field1 || ' ' || field2 || ' ' || field3 || ' ' || field4.
Ott Karesz
http://www.trendo-kft.hu

Similar Messages

  • Doing one transform on a shape after another...

    Hi - I am writing a program to create computer artwork and have run into a problem. If I start with a shape (such as a square) and then do a rotation on it I get a diamond... fine... but now what I want to do is stretch the diamond in the x and y directions. For this I'd use scale, but, my problem is that, because the coordinate system was shiftted by the first transform, when I scale in y (for example) the diamond doesn't become stretched, but instead stretches along the old co-ordinate system, so in fact you can see that it is in fact stretching the original square, rather than the new diamond.
    I thought about creating a buffered image from the shape and then stretching that but it's not really great to do that in terms of the rest of my program. Is there any way of doing one transform and then resetting the co-ordinate system so that any further transform I do will apply to the new shape rather than the old one?
    Thanks in advance for any help - I'm really stuck here and I can't believe that you can't do this in Java!
    Olly

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.AffineTransform;
    import javax.swing.*;
    public class TransformTest extends JPanel
        Shape shape;
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            if(shape == null)
                initShape();
            g2.draw(shape);
            double theta = -Math.PI/4.0;
            Rectangle r = shape.getBounds();
            AffineTransform at =
                AffineTransform.getRotateInstance(theta, r.getCenterX(), r.getCenterY());
            Shape diamond = at.createTransformedShape(shape);
            g2.setPaint(Color.red);
            g2.draw(diamond);
            double xScale = 1.5;
            double yScale = 1.0;
            r = diamond.getBounds();
            double x = (1.0 - xScale) * r.getCenterX();
            double y = (1.0 - yScale) * r.getCenterY();
            at.setToTranslation(x, y);
            at.scale(xScale, yScale);
            diamond = at.createTransformedShape(diamond);
            g2.setPaint(Color.blue);
            g2.draw(diamond);
        private void initShape()
            int w = getWidth();
            int h = getHeight();
            int s = Math.min(w,h)/3;
            int x = (w - s)/2;
            int y = (h - s)/2;
            shape = new Rectangle(x, y, s, s);
        public static void main(String[] args)
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(new TransformTest());
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    }

  • Difference between Start Routine  and End Routine in Transformations

    Hi  Friends,
      I'm using BI 7.0... here in Transformations step  we have two options..that is START ROUTINE... and END ROUTINE... What is the Difference between Start Routine  and End Routine in Transformations..
       When  we go for Start Routine.. and when we go for End Routine..
    Plz clarrify... points will be rearded..
    thanks
    babu

    Hi,
    One real time scenario for End Routine.
    We have a scenario where in a datasource field is mapped to three infoobjects on the datatarget side. There are 2 key figures which need to get data after these these Infoobjects are filled. The best place for this to happen would be in a End Routine, where in we would loop through the results package and using the values of the infoobjects from the data target ( Cube in this case).
    Hope this helps,
    HD

  • Data quality and error messages during transformation

    I've read [Maintaining Data Quality in BW using Error Stack|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20ebeb43-9e8a-2d10-b28e-825c0142ad4f] with great interest and hope this will become standard in the company, right now we have too many complex transformations which have been developed without logging and messaging.
    One thing is unclear, the error message described in the example
    monitor_rec-msgid = 'ZMESSAGE'
    seems to refer to a ZMESSAGE defined in another step.
    Could you please tell me how (transaction?) to define this message to be called during transformation?
    Thanks in advance

    se91

  • Duplicating a SymbolItem's Rotation and Scale "Properties" (Previous Transformations)

    So, I have a script that runs through a document and replaces SymbolItem Objects with "new SymbolItem Objects of updated symbols."
    My problem is that I need to replicate any transformations that were made on the original SymbolItem Objects (rotation, scale, ect.) and put these transformations on the replacement.
    The new symbols are not the same height and width as the original symbols (many symbols contain only text which has been updated).  So, scaling will need to be transferred as a ratio between the SymbolItem's original size (the size of the Symbol) and it's current size.
    Sorry if this is a common question.  I can't seem to find the answere anywhere.
    Thanks!
    ~ Clint G.

    I answered this one myself.  Rather than make a new SymbolItem of the "updated symbol", I simply needed to set the "symbol" property of my original SymbolItem Object to the my new "UpdatedSymbol".  The transformation properties stay intact. 

  • How to Import xsd and use it in transformation for mapping

    I have constructed an xsd and want to use it in BPEL Process.I imported the xsd into development.But I am unable to understand how to further proceed.Can anybody suggest me how to import xsd and use it as it has to be defined in wsdl before using right.Is there any way we can use xsd?

    Hi',
    See in a BPEL (web service) we use XSD to define its input and output, inside this BPEL process you have input and output variable.
    Now inside the transform you can use this variables to transform data, there can be many other variables too, when you try to invoke
    some other BPEL process you again create new input and output variable.
    Inside a transform activity you have a source and a target there you can decide where all the input is coming from you could have
    one or many variables in source and only 1 in target, this is how your variables (or XSD) can go inside the transform, inside the transform.xsl
    view you can right click on the source side(left) and include any new variable there.
    -Yatan

  • ABAP Logic/Structure for a Start and Field Routine in Transformations

    My Requirment is to export data from Data Target to Application Server.
    And for that purpose i built a APD...
    In Transformations to read data from MAster Data Table i had written below Global & Field Routine.
    Start Routine:
    Glodal Declaration
    DATA: it_dep   type standard table of /BI0/MDEPT,
          is_dep   type /BI0/MDEPT.
    LOOP AT SOURCE_PACKAGE ASSIGNING <source_fields>.
    if not SOURCE_PACKAGE[] is initial.
    SELECT * FROM /BI0/MDEPT INTO TABLE it_dep for all entries in
    SOURCE_PACKAGE
    WHERE depLOYEE    = SOURCE_PACKAGE-dep      AND
          OBJVERS     = 'A'                     AND
          DATETO     GE SY-DATUM.
    ENDIF.
    ENDLOOP.
    FIELD ROUTINE
    Clear:is_dep.
        Read table it_dep into is_dep with key
        depLOYEE = SOURCE_FIELDS-deployee binary search.
        if sy-subrc = 0.
          RESULT = is_dep-USERNAME.
        endif.
    Now for another field 'Manager' name.......
    My requirment
    Start Routine:
    (Sub Detp is an attribute to Dept and Sub Dept is referenced on dept)
    First it should copy all the Sub depts for the corresponding depts in the source field to a Temperoray table (TEMP1)
    For all sub depts in TEMP1 table it should copy manager names from dept master data table to a Temp2 table
    In start routine i need to first read temp1 and result from temp1 should be passed to temp2 and the result from tem2 can be passed to result field
    Please update

    Hi,
    i am providin you a sample code please modify it (field name and tables name's as per your requirement).
    Please write the code in transformation rule of field Emp_TDate.
    Map field Emp_SDATE  to the target field for Emp_TDATE .
        SELECT * FROM /BIC/AEMPPED00
                        WHERE Emp_SDATE NE ' '.
    if sy-subrc is initial.
    result = source_field-Emp_SDATE.
    else.
    result = ' '.
    endif.
    Please replace the emp_SDATE field with the source field name.
    But still i have some question...
    1. On what basis u decide the latest record ??
    Can u please explain scenarion bit mroe clearly.
    Thanks
    Dipika
    Edited by: Dipika Tyagi on Jun 24, 2008 8:47 AM

  • BPM and own container variables and their usage in transform

    Hi folks,
    I have a question about the usage of own container variables within the transform step of a BPM.
    I want to know whether I can get the actual content of such a container variable within the mapping being done in the transform step.
    I have been looking into this forum upon related topic(s) but somehow they all seemed to go about being able to get standard values like messageID etc within the transform step and NOT about getting your own variables ... It is clear that getting those standard variables will not work directly ( not without actually getting them into an XML payload before entering the BPM) ...
    So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ...  Is that supported ? 
    Regards,
    Steven

    Hi,
    >>>So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ... Is that supported ?
    no, this is not possible
    you can only compare those varabiels with some of your message tags (in a loop step for example)
    Regards,
    michal

  • ABAP Program that generates XML and calls an XSLT transformation,

    Hello,
    I am creating a program that creates some XML output, and I am using STRANS to create a transformation.
    The file created looks like below before transformation.
      <?xml version="1.0" encoding="utf-8" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    - <asx:values>
    - <EMPLOYEE_DATA>
    - <item>
         <EMPLOYEE_ID>00000010</EMPLOYEE_ID>
        <FIRSTNAME>Joe</FIRSTNAME>
        <SURNAME>Bloggs</SURNAME>
        <DOB>1940-11-10</DOB>
        <SALARY>200000.0</SALARY>
      </item>
    <item>
      <EMPLOYEE_ID>00000055</EMPLOYEE_ID>
      <FIRSTNAME>Lydia</FIRSTNAME>
      <SURNAME>Jones</SURNAME>
      <DOB>1965-03-09</DOB>
      <SALARY>90000.0</SALARY>
      </item>
      </EMPLOYEE_DATA>
      </asx:values>
      </asx:abap>
    I want to make EMPLOYEE_ID  an attribute like in the following
    and what I want to output is:
      <?xml version="1.0" encoding="utf-8" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml">
    - <asx:values>
    - <EMPLOYEE_DATA>
    - <EMPLOYEE_DETAILS EMPLOYEE_ID="00000010">
       <FIRSTNAME>Joe</FIRSTNAME>
       <SURNAME>Bloggs</SURNAME>
       <DOB>1940-11-10</DOB>
       <SALARY>200000.0</SALARY>
      </EMPLOYEE_DETAILS>
    <EMPLOYEE_DETAILS EMPLOYEE_ID="00000055">
        <FIRSTNAME>Lydia</FIRSTNAME>
        <SURNAME>Jones</SURNAME>
        <DOB>1965-03-09</DOB>
        <SALARY>90000.0</SALARY>
        </EMPLOYEE_DETAILS>
        </EMPLOYEE_DATA>
      </asx:values>
      </asx:abap>
    the XSLT I have cureently produces:
      <?xml version="1.0" encoding="utf-8" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml">
    - <asx:values>
    - <EMPLOYEE_DATA>
    - <EMPLOYEE_DETAILS EMPLOYEE_ID="00000010">
      <EMPLOYEE_ID>00000010</EMPLOYEE_ID>
      <FIRSTNAME>Joe</FIRSTNAME>
      <SURNAME>Bloggs</SURNAME>
      <DOB>1940-11-10</DOB>
      <SALARY>200000.0</SALARY>
      </EMPLOYEE_DETAILS>
    - <EMPLOYEE_DETAILS EMPLOYEE_ID="00000038">
      <EMPLOYEE_ID>00000038</EMPLOYEE_ID>
      <FIRSTNAME>Fred</FIRSTNAME>
      <SURNAME>Johnson</SURNAME>
      <DOB>1960-12-11</DOB>
      <SALARY>123450.0</SALARY>
      </EMPLOYEE_DETAILS>
    - <EMPLOYEE_DETAILS EMPLOYEE_ID="00000055">
      <EMPLOYEE_ID>00000055</EMPLOYEE_ID>
      <FIRSTNAME>Lydia</FIRSTNAME>
      <SURNAME>Jones</SURNAME>
      <DOB>1965-03-09</DOB>
      <SALARY>90000.0</SALARY>
      </EMPLOYEE_DETAILS>
      </EMPLOYEE_DATA>
      </asx:values>
      </asx:abap>
    But it is repeating the Employee_ID, I want it to start from Firstname, the XSLT I have is:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:template match="node()">
        <xsl:copy>
          <xsl:apply-templates select="node()"/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="item">
        <EMPLOYEE_DETAILS>
          <xsl:attribute name="EMPLOYEE_ID">
            <xsl:value-of select="EMPLOYEE_ID"/>
          </xsl:attribute>
          <xsl:apply-templates select="node()"/>
        </EMPLOYEE_DETAILS>
      </xsl:template>
    </xsl:transform>
    How do I get it to start from the next node?
    Thanks

    Hi
    I am also trying the similar kind of requirement.
    I am trying to convert XML file in to ABAP using transformations.
    Problem
    When I am trying to execute the Transformation (Selection is Transformation name, Source File Path) using STRANS it is giving the bellow message.
    XSLT Tester                                                                               
    Runtime Errors                                                                               
    Reason          : No valid XSLT program supplied 
    Could you please guide me how to test the Transformation using STRANS
    Thanks
    Nikhil.B

  • CS4 - Resizing both frame and content in "width" transform palete...

    We need to resize placed picture, but both frame and content at same time with writing exact dimension in "width" transform palete. Problem is that only frame is resized. If we select picture with direct selection tool, only content is resized.

    Wrong field. Select the frame and use the scale fields to change the size of frames together with the content. This behavior was introduced in CS3.
    Plain numbers in those fields are interpreted by default as percentages, but you can enter exact dimensions of your choice by specifying the measurement unit after the number.

  • Directory 6 Proxy and Virtual Data view transformations

    Hello,
    Could anyone guide me (or have an example) on how to correctly construct macro (substring(), split()) in view transformations:
    dpconf add-virtual-transformation MYVIEW mapping attr-value-mapping dn internal-value:uid=\${uid} view-value:uid=\${uid},ou=.......
    for example - I'd like to set (transform dn) a view value dn as uid=(uid from internal value), but ou=(as a substring of ou from internal value) ?
    Any example would be helpful.
    Thanks,
    /Mareks

    Hello again,
    I'm still struggling with this - if I use this syntax:
    view-value:uid=\${uid},ou=substring(\${ou}, 0, 6),dc=example,dc=com
    first - I get "syntax error near unexpected token `('" which says that I need to escape ();
    If I use then:
    view-value:uid=\${uid},ou=substring\(\${ou}, 0, 6\),dc=example,dc=com
    no transformation is done (simple ldapsearch) and if I use:
    view-value:uid=\${uid},ou=substring\(\${ou}, 0, 6\)
    ldapsearch returns uid=..., ou=substring(....... - so no macro processing.
    What then would be correct way to escape macro command itself ?
    Thanks,
    Mareks

  • BitmapData.draw() and displayobject with 3D transformations

    Hi all,
    I have a sprite with some objects in it which are transformed in 3D (positioned and rotated). The objects form a coneshape in such a way that the objects that make up the back are hidden.
    When I use that sprite as a source for the bitmapData.draw() it is drawn from another viewpoint so it seems. In my case the copy is viewed slightly from the bottom and right.
    Bottomline:
    Does anyone know of a way to duplicate the image of a sprite which contains 3D manipulated graphics?
    thanks in advance,
    Manno

    Nevermind:
    var pp:PerspectiveProjection = new PerspectiveProjection();
    pp.projectionCenter = new Point( 0, 0 );
    sphere.transform.perspectiveProjection = pp;
    Where sphere is the object to use as a source in the draw method. It seems OK now it has it's own perspectiveProjection set.

  • Using Master Data attribute and compounded IO in Transformation

    Good day
    I have the following issue in a transformation.
    I want to u201CRead Master Datau201D from IO u2018ZSIDCONTRu2019 to display data for an attribute u201CContract Durationu201D (Key Figure).
    IO u2018ZSIDVEHCNu2019 is also compounded to master data IO u2018ZSIDCONTRu2019.
    The Source field of Rule = field u201CID_CONTACTu201D
    In my transformation my Rule Type = Read Master Data and the u201CFrom Attrib. ofu201D field = ZSIDCONTR and the IO Assignment is also = u2018ZSIDCONTRu2019.
    If I test this rule then the following error message is displayed:
    Characteristic ZSIDVEHCN compounded to ZSIDCONTR is missing in
    transformation source   
    How do I add the compounded characteristic ZSIDVEHCN to the transformation rule?
    Thanks in advance.
    Cj

    Hi,
    You should add the InfoObject ZSIDVEHCN to your target and define a mapping rule to fill it up from your datasource.
    Only when both objects are available in your mapping you will be able to perform a master data selection (since they are compounded).
    If this object is not available in your source, you should define a mapping rule to fill it up (constant? ...)
    Hope this helps.
    Best regards,
    Michel Hoefkens

  • How to make a selection in one photo and move it to another photo

    I have always used Photoshop Elements, from 7 up to 12.  I just bought Photoshop CC.  I am totally confused over it.  There's not photo Bin, that is where I use to drag from the open photo down to the one I wanted the selection in.  I tried doing it
    by making the pictures smaller and dragging them down to the bottom, but then things got messed up and every time I opened another photo to use it open on top of the previous one.  To me this is important as this is what I have done
    in Elements all the time.  I can learn the other stuff about Photoshop later, but this one thing is important to me to be able to figure out.  I make pictures for people who have lost their pets or for birthdays and use a lot of digital scrapping stuff in
    them.  It's always been easy to do so, but now I am totally in a daze over how to do it.  Always wanted Photoshop, but I only have 30 days to decided if I like it and if I can't figure this one thing out I will have to return the program.  Can someone
    point me in the right direction for some tutorials on how to do this one thing?

    Oh,  and I'm not sure what you mean Load Files into Stack.  ??????
    In the menu Edit there is an item Scripts and there is an Item Load …
    If you want to rescale, rotate, … parts of your composition you should work with Smart Objects.
    So see if Photoshop > Preferences > General > Palce or Drag Raster Images as Smart Objects is checked and then use File > Place to put the elements into your layered file.
    Whenever you need to adjust one select it in the Layers Panel and invoke Edit > Free Transform (cmd-T).
    The advantages of Smart Objects are numerous:
    • multiple instances of a SO in a containing document that update simultaneously on saving an edited SO (please note that for a SO to maintain a connection to the external file one needs to use File > Place Linked instead of File > Place Embedded )
    • the possibility of placing vector content as Vector Smart Objects (though this will output as pixels)
    • non-destructive application of Filters
    • non-destructive application of transformation, warp, puppet warp (not all of these are available for Vector SO, but by converting such a one to a regular SO they become applicable)
    • combination of elements of different color spaces
    • the ability to Replace Contents of SO (for example when faking as-of-yet non-existent products by mapping packaging design elements onto images of a blank container and the design is likely to change)
    • Stack Modes for certain combinations of photographic images

  • Split one message and create N Files on target side based on FieldName

    Hi Experts
    How to split one message into N messages
    I have used BPM and I have put
    One Receiver Step
    One Transformation Step and
    One Send Step.
    In Receiver step I have used Correlation as Field2
    In Tansformation Step I have done One to One Mapping
    But In receiver Side only one File is creating.
    Message Structure is
    <Main_MT>.... 1...1
    ........<test>01</test>.... 1...1
    ...........<Sub_MT>...... 0...Unbound
    ................<Field1> </Field1>
    ................<Field2>123</Field>
    ..........</Sub_MT>
    ..........<Sub_MT>...... 0...Unbound
    ................<Field1> </Field1>
    ................<Field2>234</Field>
              </Sub_MT>
    </Main_MT>
    How to resolve this problem
    Thanks & Regards
    Sowmya

    Hey Jayson,
    I dint search the blogs using the keyword " mutiple mapping". The given two blogs I had used for creating my first 1:n mapping, so their names are by heart to me.
      I believe both the blogs provided by me help in creating the mutiple seperate messages on the target end.
    The Claus's blog covers more detailed mapping logic for message split and the Jin's blog covers the ID pieces needed to be configured when we want to create mutiple messages on the target end.
    Pardon me if I have misconstrued your point.
    Thanks,
    Pooja

Maybe you are looking for

  • Apache server + mod_python - Error 403

    Hi. I'm totally new in Apache server. As topic says, I have problems with permissions to my server directory. Here's my httpd.conf file: # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give th

  • How can I get apple to verify my AppleID so I can buy 1 App??????

    I am not a apple guy. I bought this apple mini to run 1 app to assist me at work. I have tried for two days to buy the app, BUT I cannot because my AppleID is NOT verified. I have asked for the verification e-mail about 100 times. I am definitely NOT

  • Error printing pick list from IW32

    Hi all, When trying to print pick list from transaction IW32, I get this error message: Express document "Update was terminated" received from author ... When I checked out this error message in SM13, I found this: Transaction code: IW32 Module name

  • Firefox crashes since version 10!! Nothing to do with our computer setups!

    This is not so much a question of support but just re-iterating the fact that FF has been constantly crashing on certain Flash scripts since version 10 (but NOT before) on both my machines (win7 notebook and winxp pro desktop), machines that otherwis

  • Best quality, smallest file size

    I have a 3.5 minute motion project which includes the opening credits to a video I am working on - how do I go about getting this into Final Cut Pro with the highest quality possible? I am very new to Final Cut Studio, so some input would really be a