How to map one element to multiple target nodes? Kindly help!

Hi Experts,
   I have a source XML:
   <Inventory>
         <MaterialNo>Z001</MaterialNo>
         <InventoryLineItem>
           <BatchNo>B001</BatchNo>
           <Quantity>100</Quantity>
         </InventoryLineItem>
         <InventoryLineItem>
           <BatchNo>B002</BatchNo>
           <Quantity>120</Quantity>
         </InventoryLineItem>
         <InventoryLineItem>
           <BatchNo>B003</BatchNo>
           <Quantity>50</Quantity>
         </InventoryLineItem>
   </Inventory>
I want the target output as: This is a RFC function module which has an internal table ITAB_STOCK as the input parameter.
   YGET_STOCK
       ITAB_STOCK
         Item
             MM - Z001
             Batch - B001
             Qty - 100
         Item
             MM - Z001
             Batch - B002
             Qty - 120
         Item
             MM - Z001
             Batch - B003
             Qty - 50
   What I am getting is:
        YGET_STOCK
       ITAB_STOCK
         Item
             MM - Z001
             Batch - B001
             Qty - 100
         Item
             Batch - B002
             Qty - 120
         Item
             Batch - B003
             Qty - 50
      The MaterialNo (MM) is not coming in all the items. What could be the problem in my graphical mapping? How to achieve the expected target uisng graphical mapping?
      Kindly help!
Thanks
Gopal

Hello,
  Just do the below mapping you will get it...
Map InventoryLineItem to Item in your table.
Then MaterialNo--->CopyValue---->MM
                                   [0]
You will get it let me know if not.
Regards,

Similar Messages

  • How to Map one key to multiple values

    Hello Everyone
    Let's say I have a System. to access this system, one needs a username and a password. Now i have a Hashtable that maps passwords to their usernames. Now what if i want to store the Firstname and lastname of the person, in case he/she forgets the password or username? Is there a way to associate a key (Password) to multiple values(username, password, lastname)? if so, can you show me how to go about it?
    Edited by: Tonata on Apr 27, 2009 8:09 AM

    M.Murat wrote:
    Hello
    My suggestion is that you can create a map in which value is a list(for example Arraylist).
    You can store the items in that list and match that list to proper key.
    M.MuratCode smell: Object Denial+_                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to create one TO for multiple TRs

    Dear All,
    how to create one TO for multiple TRs, kindly suggest me
    Regards,
    balu

    As for your question: it is discussed in sAP online help:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f841f24afa11d182b90000e829fbfe/frameset.htm
    Sorry I misunderstood your question.
    The above mentioned solution won't create one single TO from multiple TR.
    Edited by: Csaba Szommer on Aug 11, 2010 9:46 AM

  • How to map one modbus register to another modbus register in labview?

    How to map one modbus register to another modbus register in labview? For example, let 40001 equal to 30001. Thank you.
    Steven

    Hello Steven,
    Sorry, I was under the impression that you were using the complete Lookout development software (as opposed to just the Lookout Protocol Drivers). You cannot do any development (connections, mapping, etc.) with the Lookout Protocol Drivers (LPD). So, you were right. We have to do this in LabVIEW.
    I ain't sure how exactly the Modicon floats work, but assuming what you're saying is correct, in your LabVIEW VI(s) you would read the DataSocket item corresponding to 40yyy+1 first, and then write this value back to the DataSocket item corresponding to 40xxx. Similarly, you would read the DataSocket item corresponding to 40yyy and then write the value read back to the DataSocket item corresponding to 40xxx+1.
    A tip: I wou
    ld at first make sure I have the OPC communication between LabVIEW and LPD working. Make sure you can read and write to the LPD registers via their DataSocket/OPC equivalents in LabVIEW. You can then implement the mapping as described above.
    Hope this helps,
    Khalid

  • Single source to create multiple target nodes

    Hi Guys,
    I need to create multiple target node as many occurrence of source node. how should i achieve it?
    Source node (1...999999)  to Target node(1..1)
    please suggest.
    Regards
    Swapnil

    Hi Nutan,
    Sorry formatting got messed up so posting again.
    Sorry for the confusion. Target structure is 0..unbounded.
    Source structure ...................................... Target structure
    Message 1 ...................................................Message 1
    ZHRMD_A07 (1...1)..........................................MT_EMPLOYEE (0....unbounded)
         E1PLOG1(1...unbounded)................................ Field1
                                                                                    I need to create MT_EMPLOYEE multiple times depend upon occurences of E1PLOG1.
    Regards
    Swapnil
    Edited by: Swapnil Bhalerao on Mar 3, 2010 12:41 PM
    Edited by: Swapnil Bhalerao on Mar 3, 2010 12:47 PM

  • How does RFC adapter with EO/EOIO work? Kindly help!

    Hi Experts,
            How does a sender or receiver RFC adapter works when QOS is EO or EOIO (Async)? In other words, for EOIO, are the messages are queued? How does this queueing work? Does it use FIFO logic? where do we specify the max limit of messages that can be queued?
    Also what is the significance of 'Initial connection' and 'maximum connections' in communication channel? I have given the default value 1 for both. What should be the ideal value and why?
    In my Async RFC - XI scenario sometimes XI is able to receive the messages but sometimes it doesnot even though the sender system is UP and running.
    I cannot see any messages in SXMB_MONI even though the sender has sent the messade.
    Why RFC adapter is behaving like this? What could be the issue?
    Kindly help!

    EOIO: How does this queueing work? Does it use FIFO logic?
    >> yes it uses FIFO logic in EOIO.
    Also what is the significance of 'Initial connection' and 'maximum connections' in communication channel? I have given the default value 1 for both. What should be the ideal value and why?
    >>>noof rfc connections we are using for connecting to XI to RFC minmum is 1 maximum is 50 bydefault. you increase this value by changing the default setting.
    How does RFC adapter with EO/EOIO work? Kindly help!
    Posted: Mar 21, 2007 4:15 AM 
    Hi Experts,
    How does a sender or receiver RFC adapter works when QOS is EO or EOIO (Async)? In other words, for EOIO, are the messages are queued? How does this queueing work? Does it use FIFO logic? where do we specify the max limit of messages that can be queued?
    Also what is the significance of 'Initial connection' and 'maximum connections' in communication channel? I have given the default value 1 for both. What should be the ideal value and why?
    Why RFC adapter is behaving like this? What could be the issue?
    >>check ur sender RFC adapter. chekc whether data is sent from RFC . see logs in R/3.

  • How to get multiple elements into one element as multiple occurences

    I can't figure out how to do this. I have an input message that has multiple elements and I need to take those elements and copy them into one element with each new element going in as a new occurence or instance. For example
    I have this input under one parent node.
    element1
    element2
    element3
    element4
    and this is the output I need
    Node
    Element1[0]
    Element2[1]
    Element3[2]
    Element4[3]
    The input XML looks like this
    Payload
    Element1
    Element2
    Element3
    and the output XML needs to look like this
    Payload
    Element.
    Thanks in advance

    How about this.
    Input XML:
    <Row>
              <Column1>TOTAL</Column1>
              <Column_9_2_2008>900</Column_9_2_2008>
              <Column_9_2_20082>890</Column_9_2_20082>
              <Column_9_3_2008>52</Column_9_3_2008>
              <Column_9_4_2008>0</Column_9_4_2008>
              <Column_9_4_20082>0</Column_9_4_20082>
              <Column_9_5_2008>0</Column_9_5_2008>
              <Column_9_5_20082>0</Column_9_5_20082>
              <Column_9_8_2008>0</Column_9_8_2008>
              <Column_9_8_20082>0</Column_9_8_20082>
              <Column_9_9_2008>0</Column_9_9_2008>
              <Column_9_9_20082>0</Column_9_9_20082>
              <Column_9_10_2008>0</Column_9_10_2008>
              <Column_9_10_20082>0</Column_9_10_20082>
              <Column_9_11_2008>0</Column_9_11_2008>
              <Column_9_11_20082>0</Column_9_11_20082>
              <Column_9_12_2008>0</Column_9_12_2008>
              <Column_9_12_20082>0</Column_9_12_20082>
              <Column_9_15_2008>0</Column_9_15_2008>
              <Column_9_15_20082>0</Column_9_15_20082>
              <Column_9_16_2008>0</Column_9_16_2008>
              <Column_9_16_20082>0</Column_9_16_20082>
              <Column_9_17_2008>0</Column_9_17_2008>
              <Column_9_17_20082>0</Column_9_17_20082>
              <Column_9_18_2008>0</Column_9_18_2008>
              <Column_9_18_20082>0</Column_9_18_20082>
              <Column_9_19_2008>0</Column_9_19_2008>
              <Column_9_19_20082>0</Column_9_19_20082>
              <Column_9_22_2008>0</Column_9_22_2008>
              <Column_9_22_20082>0</Column_9_22_20082>
              <Column_9_23_2008>0</Column_9_23_2008>
              <Column_9_23_20082>0</Column_9_23_20082>
              <Column_9_24_2008>0</Column_9_24_2008>
              <Column_9_24_20082>0</Column_9_24_20082>
              <Column_9_25_2008>0</Column_9_25_2008>
              <Column_9_25_20082>0</Column_9_25_20082>
              <Column_9_26_2008>0</Column_9_26_2008>
              <Column_9_26_20082>0</Column_9_26_20082>
              <Column_9_29_2008>0</Column_9_29_2008>
              <Column_9_29_20082>0</Column_9_29_20082>
              <Column_9_30_2008>0</Column_9_30_2008>
         </Row>
    Output XML:
    <Total>
              <Payload>900</Payload>
         </Total>
         <Total>
                   <Payload>890</Payload>
         </Total>
         <Total>
                   <Payload>52</Payload>
         </Total>

  • How to map idoc segments to multiple output structures

    Dear experts,
    On Pi I need to map segments from an Idoc to 2 different outputstructures. My scenario is as follows:
    incoming Idoc on PI -> if segment eq 'X' then map to outputstructure '1'; if segment eq 'Y' then map to outputstructure '2'
    Idoc structure is as follows:
    - 1 header segment
    - 1..n detail segments (which I need to map to outputstructure 1)
    - 1 summarisation segment (which I need to map to outputstructure 2)
    Output needs to be a .txt file.
    I would like to use the graphical message mapping on PI, how can I map the Idoc to multiple output structures?
    Thanks in advance,
    William

    Hi
    You can do 1:n multimapping
    in message mapping in messages tab ..add both the structures in target tab and do the mapping
    and in operation mapping add both the message interface on the target side
    PLease go through this blog
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

  • JAX-WS mapping one servlet to multiple URLs

    Hi. I have a JAX WS web service define like this:
    package yohoo;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService
    public class Foo
      @WebMethod
      public String doSomething()
        return "done";
    }And I attempted to map the web service multiple time on web.xml:
    <servlet>
      <servlet-name>FooWS</servlet-name>
      <servlet-class>yohoo.Foo</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>FooWS</servlet-name>
      <url-pattern>/one/FooWS</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>FooWS</servlet-name>
      <url-pattern>/two/FooWS</url-pattern>
    </servlet-mapping>However when I tried to request the WSDL via the second mapping I got an exception (JBoss 7). Is this a feature that should be supported or am I doing something totally wrong?
    javax.servlet.ServletException: Cannot obtain destination for: /TestWS/two/FooWS
         org.jboss.wsf.stack.cxf.RequestHandlerImpl.findDestination(RequestHandlerImpl.java:164)
         org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:81)
         org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)
         org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
         org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)
         org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:113)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
         org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
         org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    Just to close the loop on this (and for the next person trying to figure out how to do it), I was able to [extend X509KeyManager as described in Alexandre Saudate's blog|http://alesaudate.com/2010/08/09/how-to-dynamically-select-a-certificate-alias-when-invoking-web-services/] . I was then able to set the com.sun.xml.ws.developer.JAXWSProperties.SSL_SOCKET_FACTORY on my JAX-WS request context to use my custom SSLSocketFactory, and it works like a charm!
    Thanks,
    Bill

  • How to concat one element with 0..4 occurence?

    Hello! I need to concat occurences of one element to one element like this
    <a>
    <element>1</element>
    <element>2</element>
    <element>3</element>
    <element>4</element>
    </a>
    to:
    <b>
    <elementB>1234</elementB>
    </b>
    How can I do this? Occurence of element is 0..4
    Thanks!

    Hello! I have some errors while executing this UDF:
    Function Concat_city, Line 2:
    cannot find symbol symbol  : variable length location: class com.sap.aii.mapping.api.TransformationInput for(int a=0;a<input.length;a++){                    ^
    Function Concat_city, Line 3:
    array required, but com.sap.aii.mapping.api.TransformationInput found  sb = sb.append(input[a]);
    Note: /usr/sap/SPD/DVEBMGS22/j2ee/cluster/server0/./temp/classpath_resolver/Map8aa9d039226b11e1869e00000d43ca76/source/com/sap/xi/tf/_MM_Delvry_2_OrderImport_line_old_.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /usr/sap/SPD/DVEBMGS22/j2ee/cluster/server0/./temp/classpath_resolver/Map8aa9d039226b11e1869e00000d43ca76/source/com/sap/xi/tf/_MM_Delvry_2_OrderImport_line_old_.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors
    What does it means?
    Edited by: Andrey Bolshakov on Dec 9, 2011 2:44 PM
    Sorry, I forgot about input parameter
    Edited by: Andrey Bolshakov on Dec 9, 2011 2:49 PM

  • How to get one value from multiple duplication for a key figure field

    Hi expert,
          I have a infoprovider, with following format:
            employee     hourly_rate   action_type  count of action
         there are multiple rows for each employee, I want to create query as follows:
            employee     hourly_rate   action_type  count of action
         in which hourly_rate is constant , only retriving one value from multiple rows for one employee, count of action should be summarized. 
    how to get this hourly_rate.
    Many Thanks,

    Hi,
    put the employee in rows panel -> reaming object put it in free char panel.
    suppress the all result rows for the all object except employee .
    select the object -> go to query properties -> select display tab -> select result rows -> select suppress.
    select the employee -> go to query properties -> select display tab -> select result rows -> select always display. - now it will give employee wise hourly rate summarize data.
    Thanks,
    Phani.

  • How to have one provider with multiple portlets in JDev 11g

    Hi,
    I am trying to create Oracle PDK Portlets using JDeveloper 11g but for each portlet JDeveloper is creating a provider. As In JDeveloper 10.1.3.4 we can have one provider with multiple portlets in it. But JDev 11g creates provider for each portlet. How can we have one provider with multiple portlets in JDev 11g. Is it something changed in 11g version or am I doing it wrong. As the Help says we can have multiple portlets in one provider but when creating portlets it does not do that. Any help is appreciated.
    Thanks

    Hi,
    I am trying to create Oracle PDK Portlets using JDeveloper 11g but for each portlet JDeveloper is creating a provider. As In JDeveloper 10.1.3.4 we can have one provider with multiple portlets in it. But JDev 11g creates provider for each portlet. How can we have one provider with multiple portlets in JDev 11g. Is it something changed in 11g version or am I doing it wrong. As the Help says we can have multiple portlets in one provider but when creating portlets it does not do that. Any help is appreciated.
    Thanks

  • How to map secondry elements with main if have same ids for both?

    I need to map secondry elements with its matching primary elements if they both have same id.
    How can this be achieved in xslt.
    If ids are not matching then not a single element of secondry sholud be shown.
    If ids matching, then other fields of secondry elements, should be mapped to similar fields of primary elements.
    Eg: Its like some program running and in between some add on programs started (may be trailor or advertisement).
    the add on program is not always shown (optional), and whenever shown it has its own data information etc etc.
    Please provide me some input, how to map and proceed.
    Not sure what this code is really doing.
    <xsl:template match="SECONDARY_EVENT_LIST">
              <xsl:variable name="secondaryElements" select="ancestor::SCHEDULE/SECONDARY_ELEMENT_LIST"/>
              <xsl:for-each select="SCHEDULE_ELEMENT_ID">
                   <xsl:variable name="id" select="."/>
                   <xsl:apply-templates select="$secondaryElements/SCHEDULE_ELEMENT[(@ID=$id)]"/>
              </xsl:for-each>
         </xsl:template>
    Is this having any relation with what my requirement is all about?

    Hi,
    You can use XPATH command to get the exact tag.
    You can access each tag with it location like “/Report_Name/Group_Tag/Element_ID”.
    I think this will remove the ambiguity of Tags with same ID.

  • How to get one element of a database with database toolkit

    I am working with an access database in which I want to store information about all the computers that recide in a network. The information that I will store in this database is computer's IP address, computer name, etc. Now I want to look in my database the ip address of the computers and get the ip of every one as a string. What I'm trying to do is to convert the output variant of the block "get" to a two dimensional array for then convert it to a matrix in which I can get the elements one by one. Attached is the vi in which I'm working. If you can help me to figure out how to solve my problem I'll be very happy and if I am not in the indicated discussion forum please guide me to find the correct one.
    Attachments:
    Getting just one element.vi ‏11 KB

    Well I found this post that answered my question
    http://forums.ni.com/t5/LabVIEW/how-to-get-records​et-from-database/m-p/1471374?requireLogin=False

  • How to schedule one report for multiple company code?

    How you can schedule reports in BW 3.5? Suppose I need to schedule one report for multiple company code, how can you do that and notify the users? I do not want to send multiple emails to the same user if the report runs for 20 times (for 20 different companies).
    points are given for ASAP replies.
    Thanks in advance
    Peter

    Dear Peter,
    Try to restrict the Company Code with  those 20 values and schedule.
    Regards,
    Ramkumar.

Maybe you are looking for