How to map different fields to same repeating/Same field in XSD

Hi,
I am using the Transform activity in a BPEL Process, my source is a Database table and the target is the and XSD file.
Now the requirement is to map 3 different fields from source to a single field in the XSD.
In the final xml file the tag name would be the same and will repeat 3 times but with different value for attribute and values with 3 diiferent columns/fields from database.
How can achive this kind of mapping. Do i need to use some functions etc for that? please guide
regards

To answer "What does "<ns1:Code>" and "<ns1:Id>" indicate? are they fields in the DB table or XSD Schema?".
The transformation is from Source(database) to target(an XML file).
"<ns1:Code>" and "<ns1:Id>" are tags/fields in the outbound XML.
<dbcolumn1>,<dbcolumn2> and <dbcolumn3> are database columns.
I have removed the "ns1:" and also the Condition to make the code easy to read. Hope it helps. You could remove the condition and see how it goes when trying out in your project.
<xmltag1_non repeating>
<xsl:choose>
     <xsl:when test="SOME CONDITION" >
     <xml_tag2_repeating>
          <xsl:if test="SOME CONDITION">
               <Code>
               <xsl:value-of select="string(&quot;SOME VALUE 1 &quot;)"/>
               </Code>
          </xsl:if>
          <xsl:if test="SOME CONDITION">
               <Id>
               <xsl:value-of select="dbcolumn1"/>
               </Id>
          </xsl:if>
     </xml_tag2_repeating>
     </xsl:when>
</xsl:choose>
<xsl:choose>
     <xsl:when test="SOME CONDITION" >
     <xml_tag2_repeating>
          <xsl:if test="SOME CONDITION">
               <Code>
               <xsl:value-of select="string(&quot;SOME VALUE 2 &quot;)"/>
               </Code>
          </xsl:if>
          <xsl:if test="SOME CONDITION">
               <Id>
               <xsl:value-of select="dbcolumn2"/>
               </Id>
          </xsl:if>
     </xml_tag2_repeating>
     </xsl:when>
</xsl:choose>
<xsl:choose>
     <xsl:when test="SOME CONDITION" >
     <xml_tag2_repeating>
          <xsl:if test="SOME CONDITION">
               <Code>
               <xsl:value-of select="string(&quot;SOME VALUE 3 &quot;)"/>
               </Code>
          </xsl:if>
          <xsl:if test="SOME CONDITION">
               <Id>
               <xsl:value-of select="dbcolumn3"/>
               </Id>
          </xsl:if>
     </xml_tag2_repeating>
     </xsl:when>
</xsl:choose>
</xmltag1_non repeating>

Similar Messages

  • How to set Different applications running on the same computer to use different Gateways?

    Dear All,
    I would like to have different applications running on the same computer to use different Gateways (both gateways are in the same subnet).
    Is it possible in Windows7 with / without a third-party utility?
    Current scenario & requirements:
    I have two internet connections. Both are in the same subnet (192.168.1.0/24) and connected to the same LAN switch
    Gateway for the first connection is 192.168.1.1
    Gateway for the second connection is 192.168.1.2
    I need to set my chrome browser & google talk to use the gateway 192.168.1.1
    I need to set my IE & skype to use the gateway 192.168.1.2
    Is it possible? Answers are appreciated!!
    Regards,
    Anees

    Hi,
    I agree with Bill. Gateway is essentially an IP address for one network to other networks. For example, you have two networks: network A and network B, to make the two networks communicate with each other, you must go through Gateway. That is, as long
    as you set Gateway, then you can make the two networks communicate with each other. The ip address for Gateway is the ip of device with routing enabled. One host machine can own multiple gateways. 
    Andy Altmann
    TechNet Community Support

  • How to map different dataset with ESB

    Hi All,
    We have an interface in which an application is exposing webservice, but the way the msg format defined at the Requestor is not as provider
    eg: wsdl of Service Requestor
    <s:element name="sample">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="SampleXML" type="s:string" />
    </s:sequence>
    </s:complexType>
    sending the entire msg data in the element SampleXML
    sample data:
    <Complaint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TestSchema.xsd">
    <Com_Source_ID>1</Com_Source_ID>
    <Address1>Test Address1</Address1>
    <Address2>Test Address2</Address2>
    <Address3>Test Address3</Address3>
    <Address4>Test Address4</Address4>
    <District>MUMBA</District>
    the wsdl of the Service Provider looks like
    <xsd:sequence>
    <xsd:element
    name="Id"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string30">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine1"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine2"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewCity"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string50">
    </xsd:element>
    </Sequence>
    How can i map these different dataset using ESB.
    Any Ideas..
    Thanks,
    Azeem.

    Hi All,
    We have an interface in which an application is exposing webservice, but the way the msg format defined at the Requestor is not as provider
    eg: wsdl of Service Requestor
    <s:element name="sample">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="SampleXML" type="s:string" />
    </s:sequence>
    </s:complexType>
    sending the entire msg data in the element SampleXML
    sample data:
    <Complaint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TestSchema.xsd">
    <Com_Source_ID>1</Com_Source_ID>
    <Address1>Test Address1</Address1>
    <Address2>Test Address2</Address2>
    <Address3>Test Address3</Address3>
    <Address4>Test Address4</Address4>
    <District>MUMBA</District>
    the wsdl of the Service Provider looks like
    <xsd:sequence>
    <xsd:element
    name="Id"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string30">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine1"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine2"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewCity"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string50">
    </xsd:element>
    </Sequence>
    How can i map these different dataset using ESB.
    Any Ideas..
    Thanks,
    Azeem.

  • How To Show Different Artwork For CD With Same Name?

    In 2002, Chris Botti released a holiday CD named December. In 2006 he also released another CD named December with the only difference being track 2 (Ave Maria) & track 7 (I Really Don't Want Much For Christmas which are not included on the 2002 release. These are not additional tracks but replace 2 songs from the original 2002 release. The album art is different for both CDs. So, how can I show these two CDs with the same name and same artist but with different artwork in Cover Flow mode? Help!
    iMac G5 1.8 Ghz iMac 1.8 GHz G5 17" Mac OS X (10.4.8) 1.5 GB RAM   Mac OS X (10.4.8)  

    If you store Album artwork the way i described using Command I (get info) - then the artwork is actually EMBEDDED in each song and is carried with that song wherever it goes.. and in this case it doesnt matter if u had 3 copies of the same album - all identical. You could even save a diff image for each tarck if u wanted.
    If there is no artwork embedded, then coverflow places the image in a separate folder that is only referenced by iTunes for the whole CD.
    You also might want to turn off coverlfow and continue doing what u had been doing in the past - add you won.
    I also think i know what may be happening. You say they are identical except for track 2 - But problem is - I don't think iTunes can handle 2 identical CD's from the same artist.
    Here's an experiment:
    Goto any of the songs.... right-click and select "Show in Finder" the Finder will open and show you the song file and its location. Do you see one album once or 1 album twice?
    If you see 2 of everything, i would recommend the following:
    Rename the first album "December (2002)" and the second "December (2006)" then iTunes will definately separate them out.

  • How to manage different supply parameters for the same item based on demand quantity?

    We are using unconstrained ASCP.  We have some products that can be produced in a 'small' machine or can be produced in a large tank.  If ASCP has created a planned order for a quantity less than 1000 it will be made on the small machine with the supply quantity = demand quantity.  For example, we have a demand of 250, we will make exactly 250 on the small machine.  But if the demand quantity is greater than 1000 we will make the supply in the tank with a fixed order quantity of 1590.  Financially it will cost us less to do this and scrap the difference because the small machine is very expensive to run compared to the tank.
    The challenge is, say we need 1200.  ASCP generates a planned order for 1200 and all the dependent demands support 1200.  Now we want to make 1590 and we are short of materials.  This assumes we have set the item with no supply parameters.  On the other hand, if we set a fixed order quantity of 1590 but only need 100 then we we have to scrap the materials for the balance due to a short shelf life.
    Any ideas how to set a supply quantity using different parameters based on the demand quantity?
    Mark Madal

    Hi Mark,
    I personally don’t see any standard solution for this requirement especially with an unconstrained plan.
    However, if it is feasible, you can try below solution with a 'constrained plan with decision rules enabled' and check if it works,
    1.   1. Define two different items – Item A and Item B
    2.   2. Item A uses small machine in its routing and can have any demand that is below 999. So, Max order quantity = 999.
    3.   3. Item B uses Large Tank in its routing and is a substitute of item A. Also, fixed order quantity = 1590.
    4.   4. Define component substitution relationship between A and B. A and B will have identical BOM.
    In a constrained  plan with decision rules enabled, optimization logic will ensure that planned orders are generated for Item A whenever there is demand below 999. And for Item A, supply will always be equal to demand quantity. When the demand is more than 999, optimization engine will select substitute item B and will generated fixed supply of 1590 for it.
    Check if this satisfies your requirement.
    Regards,
    Durgesh P
    (Please mark this post helpful or correct, if answered)

  • How to map different Retail store business processes in SAP

    Hi
    In our stores( Retail Business) there are two sales sections, In the first section we have Point  of Sales systems, here we placed our materials in racks, after confirming and creating sales order customer collects pick list and goes to the location to pick the products. Here customer Invoice will be created before delivery.
    In second sales section normally order fulfillment will take place. Customer visit this section and select products and places an order. But the delivery will be at a later date. We receive some down payment from customer and we create sales order with scheduled delivery. while delivering the products we create delivery note and it will be sent to customer, Our driver will carry the delivery note along with products to the customer and take customer signature on the delivery note. In this second process we are creating Invoice after delivery only.
    Could any body suggest me how can we map these two processes in SAP?
    Your suggestions will be highly appreciated.
    Thanks and Regards

    Hello,
    Check out these links, as they would be useful:
    1. http://www.sap.com/industries/retail/businessprocesses/index.epx
    2. http://help.sap.com/bp_retailv1500/Retail_NL/documentation/RET_Solution_Scope_EN_NL.doc
    3. http://204.154.71.138/pdf/8560/Serving_the_Needs_of_Food_Retailers.pdf
    Regards,
    Gauravjit.
    reward points if the links are useful

  • How to map a context attribute to an input field

    Hi,
    I am new to CRM 2007 UI.I have a table control view on my screen and records are filled in this table when an user enters a value in an input field and presses enter.My bsp page looks something like this.
    <%@page language="abap" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="uhtmlb" prefix="uhtmlb" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="crm_bsp_ic" prefix="crmic" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%
      DATA lv_xml TYPE string.
      lv_xml = controller->configuration_descr->get_config_data( ).
    %>
    <thtmlb:grid cellSpacing = "1"
                 columnSize  = "1"
                 height      = "100%"
                 rowSize     = "2"
                 width       = "100%" >
      <thtmlb:gridCell colSpan     = "1"
                       columnIndex = "1"
                       rowIndex    = "1"
                       rowSpan     = "1" >
        <thtmlb:label id   = "NAMELABEL"
                      for  = "NAMEINF"
                      text = "Enter a name" />
        <thtmlb:inputField          id                = "NAMEINF"
                                disabled          = "FALSE"
                                tooltip           = "Enter a name to see all records"
                                submitOnEnter     = "X"/>  </thtmlb:gridCell>
      <thtmlb:gridCell colSpan     = "1"
                       columnIndex = "1"
                       rowIndex    = "2"
                       rowSpan     = "1" >
        <chtmlb:configTable id              = "PaymentTable"
                            table           = "//HeaderData/Table"
                            xml             = "<%= lv_xml %>"
                            selectedRowIndex      = "<%= HeaderData->SELECTED_INDEX %>"
                            fillUpEmptyRows = "FALSE" />
      </thtmlb:gridCell>
    </thtmlb:grid>
    The problem is that I want to map this input field to my context attribute.I am from Webdynpro background and ther its pretty easy :)....
    Any suggestions will be helpful.
    Thanks
    Sourav

    Hi,
    you should add the context attribute to the html page itself, or another way of doing it is to implement the set_model method of the view controller.
    On the view controller you can find a lot of usefull attributes like the view manager which can help you understand the bsp framework
    Best regards,
    Erika

  • How do create different link attributes on the same page

    I am using CSS links for my menu. The links are white, large and bold, but I want an email link to be a different color, font and smaller in size. How can I do this?

    Yow 400 somthing views and no one to help this guy...wow you people are mean....
    Ok just use a class for the email link....
    put a span around that email link
    <span class="class_name"><a>email link</a></span>
    then in the css place the class
    .class_name{
    color:red;
    If this doesnt work then that means the class needs to be more specific example
    span .class_name{
    color:red;

  • How to package different content so that the same license can be used for all content.

    1)      If packaging all the content at the same time, use the same instance of DRMParameters every time you call MediaEncrypter.encryptContent().  All content packaged using the exact same DRMParameters object will be associated with the same license.
    2)      If packaging content at different times, but want to have all the content associated with the same license, you need to use V2KeyParameters.setContentEncryptionKey().  The first time you package a piece of content, you would use ContentEncryptionKey.generate() to generate a new key/license ID.  To use the same key/license for later content, you need to store the info in ContentEncryptionKey, so you can pass in the same values later for the new content.

    To package content at different times using the same license, you need to implement the following:
    Call ContentEncryptionKey.generate to generate a new key and license ID.
    On your V2KeyParameters, call setContentEncryptionKey and pass in the object generated in step 1.
    Call MediaEncrypter.encryptContent and pass in the V2KeyParameters (via DRMParameters), as usual.
    Store the contents of ContentEncryptionKey, so the same values can be used again later.  The key, license ID, and packaging date should all be stored.
    When you want to package additional content using this license, lookup the stored key, license ID, and packaging date and pass these into the ContentEncryptionKey constructor to create a ContentEncryptionKey instance.
    On your V2KeyParameters, call setContentEncryptionKey and pass in the object generated in step 5.
    Call MediaEncrypter.encryptContent and pass in the V2KeyParameters (via DRMParameters), as usual.
    The media packaged in steps 3 and 7 should now be protected using the same license.

  • How to use different font styles in the same boolean text?

    Hi all,
    As reported here http://digital.ni.com/public.nsf/allkb/6BD344ACA4DEE20A8625692700737E16, it is possible to change font color, size or other font properties of a subtext in a string indicator. This can be applied to a caption too.
    I'd like to apply this properties to a boolean text but it does not work. The boolean control has the Text.selectionStart and End property node but it does not appear to function.
    Can you help me?
    Thanks all

    This is a bug in the development environment (I think it showed up around LV8).
    There's a workaround, but it seems to work intermittently: Place some floating text on your front panel, then edit it's font styles.  Select and copy the floating text.  Select the boolean text (double click on it).  Paste.

  • How can I add a field to a Repeating Frame in the body of a 9i Report

    How can I add a field to a Repeating Frame in the body of an Oracle 9i Report whose source is in a higher group?
    I want to change an Oracle 9i report. The report has no header or trailer but only a body. The body has the parent frame fields & a repeating frame with four fields, A, B, C & D. They all seem to be in one group. I want to add another field E to the repeating frame whose source is from the 'header'.
    I added the field & created a boiler plate & then added the new field, E to the original group A, B, C & D. In the Property Inspector for the field, I pointed the source to the source column in the main query. However, when I run the report, I receive the error "Invalid body size". Some notes on Metalink indicate that this could be due to margins being out of the printable area.
    Moreover, after making the changes & after having unsuccessfully run the report, when I try to open the Page Layout for the report, I get no details.
    Thanks,

    Hi,
    i also got same query can u pls tell me elaborately, if u can can u pls send some code.
    Thanks & Regards
    Jagadeeshwar.B

  • How can I edit multiple clips with different frame rates on the same timeline

    how can I edit multiple clips with different frame rates on the same timeline

    You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
    Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
    You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
    The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
    Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
    Have fun.
    x

  • How can i export a series of images in different aspect ratios to the same height

    How can i export a series of images in different aspect ratios to the same height?
    I wish to make a slider callery for my website. all the images need to be 750 Pixels high, the width does not matter.  I have a mixture of square pandscap and protraite images can i do thing as one export or do i have to do it twice?  Once for long edge and once for shot edge?
    Thanks

    Yes, you can but there is a trick to it.
    In the Export Dialog under <Image Sizing> select Widdth & Height.
    Then enter 750 pixels for Height.
    Put your cursor into the Width field behind all the numbers that appear there and with the backspace key delete the numbers. If you enter "0" it will not accept that. But it accepts when you just delete the field for Width with the backspace key. The Width field will now be just blank.
    When you then export all image will  have a height of 750 pixels and the width will fall variously according to thne height / width ratio.
    Or alternatively you can enter 7.5" for height at a resolution of 100 ppi.

  • How to map lookup main table field in another main table using MDM 7.1?

    We created a new SAP MDM 7.1 repository with multiple main tables.  The first main table is called ProductMaster table which contains Products information.  The ProductCode is the primary key and the only display field for the table during data loading process. The second main table is ProductByRegion table which has a main table lookup field ProductCode and a RegionId field.  These two fields (ProductCode and RegionId) combine as the PK for this main table.  Both main tables have key mapping enabled. 
    I was able to load ProductMaster table using Import Manager.  But Iu2019m having trouble to load data into ProductByRegion table using MDM Import Manager.  Although I have met all the 5 requirements below (excerpted from MDM Import Manager Reference Guide P.222), the ProductCode wonu2019t show up on the destination value pane.  If I mapped all productCode to NULL field, ProductCode wonu2019t load.  If I u2018Addu2019 all ProductCode to Destination Value pane, the Import Manager added duplicated rows to Product Master table while only loading 1 record to ProductByRegion table.  I canu2019t get ProductCode show up in Matching Destination Field list.  When I checked ProductMaster records in MDM Data Manager, I right-clicked on one of records, chose Edit Key Mappings, it didnu2019t show anything.  However, if I right-clicked on one of those duplicated rows, Edit Key Mapping shows remote system and key correctly.
    Where did I do wrong?  How can I fix the problem?
    Thank you for help in advance.
    From: SAP MDM Import Manager Reference Guide:
    Mapping to Main Table Lookup Destination Fields
    Import Manager handles main table lookup fields (Lookup [Main])
    differently than other MDM lookup fields. Specifically, Import Manager
    does not display the complete set of display field values of the records
    of the underlying lookup table. Instead, the values it displays for a main
    table lookup field are limited by both the key mappings for the lookup
    table and the values in the source file.
    Also, Import Manager does not automatically display the values of a
    Lookup [Main] destination field in the Destination Values grid when you
    select the field in the Destination Fields grid. Instead, for a main table
    lookup field value to appear in the Destination Values grid, all of the
    following conditions must be met:
    u2022 The lookup table must have key mapping enabled
    u2022 The lookup field must be mapped to a source field
    u2022 The source field must contain key values for the lookup table
    u2022 The destination value must have a key on the current remote system
    u2022 The destination valueu2019s key must match a source field value
    NOTE ►► The current remote system is the remote system that was
    selected in Import Manageru2019s Connect to Source dialog (see
    u201CConnecting to a Remote Systemu201D on page 416 for more information).
    Vicky

    Hi Michael,
    Thank you very much for your response.  I'm new to SAP MDM, I need some clarification and help regarding your solution. 
    I did use two maps to load ProductMaster and ProductByRegion separately.  Here were my steps:
    1. create main table ProductMaster with key mapping enabled at the table level and set ProductCode as unique and writable once (primary key).
    2. create a map to load ProductMaster record from a staging table located an oracle database.  But Key mapping didn't show anything when I looked at them using Data Manager.
    3. create main table ProductByRegion with a lookup field looking at ProductMaster table.  This field and RegionId combines as a unique field for ProductByRegion table. 
    4. create a map to load ProductByRegion table.  But ProductCode records only shows on the source pane not destination pane and can't be mapped properly.
    My questions:
    1. How can I "Ensure that you add key mapping info for all ProductMaster records" besides enabling Key Mapping on the table level?
    2. How can I define a concatenation of ProductCode and RegionId as a REMOTE KEY"?
    Thanks a lot for your help!
    Vicky

  • How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style.

    How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style. It should decide at run time means at run time it will come to know the type of address style and based on that only the fields which belong to address details mapped to calling hr_location_api.create_location.
    Thanks in advance.

    You can create a wrapper package on top of the API (hr_location_api.create_location)
    In the wrapper package you set all the values dynamically based on your requirements(say the style and add_line columns are populated on your conditions) and then you call the API.
    Does that not work ?

Maybe you are looking for

  • BAP_SALES_ORDER_CREATE_WITH_REFERENCE - Document flow

    Hi, I have a problem with the bapi for create sales order with reference, When the line items be created, the Update indicator for flow table(VBAP-UPFLU) be created whit the value 'X'(Create document flow records). If the sales order is manual, the v

  • Error 4002 every time I open iTunes

    Every time I open iTunes up I get an error box stating; "We could not complete your iTunes store request. An unknown error occurred (4002). There was an error in the iTunes store" This box comes up every time I open the application, whether it's been

  • Anyone know where I can buy the power cord for intel imac

    i lost the power wire to my imac and i don't know  where to buy it anyone know where can I get it  and how much it costs?

  • What's the fastest way to switch between different email accounts?

    I use at least 3 different e-mail accounts (Corp, Yahoo and Gmail)... Is there a way to get back to the account list rather than having to click on the little 'button' on the top left? It seems a bit ridiculous to have to click about 6 times to get t

  • Forms - Needed help in disabling/hiding a field

    Hi I'm working on a "Order management - Quick sales order" sutomization. This is specifically for a set of users in the company. At the line level attribute we have a DFF. This is common to this form ( quick sales order) and Also the main Sales order