Graph mapping with context not in pair

Hi,
In an IDOC ORDERS05 to whatever scenario I found the following situation. I have to evaluate the value of the field NAME4 when the partner function (PARVW) is WE. The issue comes with the fact that the NAME4 tag only appears when is not empty, so the XML should look like this.
<E1EDKA1 SEGMENT="1">
   <PARVW>AG</PARVW>
   <PARTN>0000103905</PARTN>
</E1EDKA1>
<E1EDKA1 SEGMENT="1">
   <PARVW>RE</PARVW>
   <PARTN>0000103905</PARTN>
</E1EDKA1>
<E1EDKA1 SEGMENT="1">
   <PARVW>RG</PARVW>
   <PARTN>0000103905</PARTN>
</E1EDKA1>
<E1EDKA1 SEGMENT="1">
   <PARVW>WE</PARVW>
   <PARTN>0000103905</PARTN>
   <NAME4>S</NAME4>
</E1EDKA1>
The issue is that the NAME queue will have only one value (or even 0) while the PARVW queue will have 4.
The question: How can I pair both queues again (i.e: inserting blanks to the NAME4 queue wherever is empty)?
thanks in advance for help,
David R.

Hi,
You can use standard function 'exists' to chek ehther the field exist and 'createIf' to creat the node if it does not exisit
<i>If there are structuring elements in your target structure that do not exist in the source structure, insert them using this function. Using condition I you can control whether the element is inserted or not. You connect the element in the target structure using O.</i>
Regards
Vijaya

Similar Messages

  • SAP XI - Mapping with Contexts

    Hi Guys,
    We have a problem when mapping with contexts. Couldyou please help.
    What we are trying to achieve is if PARVW = X then map name2 to name2. We have done this all the way down the DT_Address. The context on both input values are set to IDOC.
    The problem is that when all the fields are in a particular segment occurence then it maps perfectly. But on numerous occurrences of E1EDKA1 various fields are missing i.e.name2 or pstl2 etc. What we want to happen is if the field doesn’t exist in that particular occurrence then just leave blank and don’t map. What is happening instead is XI keeps looking for this field and maps the first occurrence it can find of it. So we end up with like 6 occurrences of the same thing.
    Is their a way to specify that only map the fields if it is within the same occurrence as the qualifier. So basically Name2 follows PARVW to the same occurrence.
    Also is their a way of making it so we don’t get
    Name
    Name
    Name
    Id
    Id
    Id
    Address
    Address
    Address
    And instead get
    Name
    Id
    Address
    Name
    Id
    Address
    Name
    Id
    Address
    Thanks people

    Hi Thanks for your input.
    It was a little to do with the context but in the end I had to put another element in the target structure. So it went
    Customer 0-unbounded
            customerAddress 1-1
                       Details 0-1
                       ETC 0-1
                       ETC 0-1
    I mapped the customer to E1EDKA1
    I mapped customer address to a constant
    and the details I ampped as before but with no context.
    This seemed to work.... I have no idea why but it did work. If anybody could explain the why, I would appreciate it.

  • Error with context mapping

    Dear All,
    I am a novice to webdynpro. I have tried to create a program using MVC concept. Here is the below components that I have created while
    I was referring to an example mentioned in WEBDYNPRO ABAP by U Hoffmann.
    I have encountered a run time error which I am not able to resolve. Can anyone please help me out in this regard.
    Below is the error description I have received.
    Node UNITS Is Already Mapped.
    Below is the description of the components that I have created.
    Component 1- Model Component Contains the ROADMAP context node and 'UNITS' context node. This Units context node further has a tree structure with lower level node containing from and to unit nodes. I have provided a supply function for these 2 lower level nodes. Also I have declared the units context node as Interface node.
    Component 2- View Component_Sub
    This component contains the Units context context node and a view which is embedded in the window.
    Component 3- View Component_main
    This component contains the same Units context node and a roadmap node declared in component 1.
    I have created a view which uses roadmap node. Also it contains a view container UI element. In window section I have embedded the view of Component 2.
    Context node Units of component 3 is externally mapped with context node of component 2.
    Component - 4- Main Component.
    Again this contains same context nodes as mentioned in component 1 which is mapped to the context node of Model Component.
    Data from Component 1 is externally mapped with context node of Main component. Context node of Main component is again mapped with context node of Component 3.
    When I execute the program. I am the error as 'NODE IS ALREADY MAPPED'.
    Sorry If I have repeated the same problem mentioned in another thread.I have searched for this particular problem on internet and could not find any solution for this.
    It would be of great help if someone can provide me the solution for this problem.
    Thanks in advance.
    Regards,
    Girish

    Hello,
    There should be something that could correlate the Invoice_Header/Key and Invoice_Line/Key. In your example, both are the same for the first and data set. If the sample looks like the one below, it is possible to sort things by correlating the Invoice_Header key and Invoice_Line key
    <Invoice_Header>
      <Key>000<Key>
    </Invoice_Header>
    <Invoice_Line>
      <Key>000<Key>
    </Invoice_Line>
    <Invoice_Line>
      <Key>000<Key>
    </Invoice_Line>
    <Invoice_Header>
      <Key>001<Key>
    </Invoice_Header>
    <Invoice_Line>
      <Key>001<Key>
    </Invoice_Line>
    An example mapping could look like this
    For Header
    Invoice_Header --> Header_Invoice
    For Line
    /InvoiceLine/Key --> removeContext --> splitByValue:valueChanged --> Invoice_Line
    The subfields of the invoice line would also follow a similar logic, you just need to use formatByExample --> splitByValue:eachValue so that the context levels are the same.
    Hope this helps,
    Mark

  • External context mapping with CID

    I have a component interface definition CID_A and a Main-Component M.
    At runtime one child component of CID_A should get an input in its view and put this value in the context of M. so I need external (reverse) context mapping.
    the component of CID_A determines the attribut in the (global) context of M.
    but how can I declare this attribut as externally mappable? the option "isInput-element" is not available in the interface controller of cid_a and in the components which implement cid_a it is deactivated and grayed out.
    what can I do to realise external mapping from the implementing component of cid_a to the mothercomponent M?

    >So you have one interface component IF_C which has the external input node and >several components which implement IF_C which should be filled thru external mapping >thru component M, rite?
    my scenario:
    IF_A has two cid-implementating components a1 and a2 which are chosen at runtime.
    a1 or a2 should fill the context of the main-component M via external context mapping. M should hold the global context and share the attribute (from the external mapping of IF_A) to other CID´s (let´s call them IF_B - IF_C). Another IF_L handels the layout from all components.
    I think I did it that way from the following seven steps from your link but I will look tomorrow at work:
    "1. Define the interface component with context node (Input Element Externl)
    2. Create a component which defines a usage to the interface component
    3. Go to the component usages folder and open it.
    4. Right click on the usage you just created and choose Create controller
    usage.
    5. Double click the interfacecontroller_usage you just created.
    6. Here you can add a controller usage using the button at the top.
    7. Now you should be able to define the external mapping by dragging the node of
    the component controller to the interfacecontroller_usage node."
    it´s a litte bit difficult in my scenario because the at runtime chosen components from IF A-C are shown in a window in M (handelt from if_L) and the attribut which I want to use for external mapping is bound to a input field in the view from the components a1 and a2. the input to that field should modify the output in the views from the components from IF_B and IF_C. could this be the fault? that I bound the attribut for external mapping in designtime to an ui-element? I realised this so far only at a1 and when I chose a2 (without that bound ui-element) testing my component works without faults.
    thanks and until tomorrow...

  • Google Map Integration with Map Viewer is not working

    Hi Team,
    My MapViewer Version: Ver11_1_1_7_B130111
    I have created a Google Map (with Type of Map Source as "Google Maps") in Oracle Map Viewer and i could see google map in Oracle Map Viewer(using "show Map").
    I wanted to show a village map theme over the above google map in a web page and i am using Jdeveloper to integrate map viewer with Village data. I could see the google maps inside Jdeveloper however when i run the Jdeveloper code google map is not shown inside the web page.
    I tried with Oracle Maps, Bing Maps as the "map source" in map viewer and tried integrating inside Jdeveloper and got same result (blank screen). However when i tried a different mapviewer ( Base Map ELOCATION.WORLD_MAP from OracleFMW MapViewer Home ) i could see the map in the web page.
    I could get all other base maps (created with "internal" as the map source") in the web page, so there is some thing that i am missing with Google Maps, Bing Maps, Oracle Maps. Could you please help me what is that i am missing or point to a help resource?
    Thanks
    Nag

    Hi Jayanth,
    Issue is solved after creating the web page using latest JDeveloper (11.1.2.4). Thanks a lot for your help
    With Regards
    Nag

  • In context not working with Mac Safari 6.04

    Hi there just noticed
    in context not working with Mac Safari 6.04, you can edit text, and save and publish but editable marquees are no longer visible especially the repeating elements?

    Hi Vicki,
    I would suggest submitting a support case on this for further investigation. 
    Unfortunately I'm on a PC machine so I cannot confirm on my end.  Please reach out to direct support ASAP if the issue is still existing. 
    - http://helpx.adobe.com/contact.html
    Kind regards,
    -Sidney

  • 0GR_VAL_PD KF has not mapped with source in 0Pur_C01 but value comes

    HI All
    I have problem with 0GR_VAL_PD kf in 0PUR_C01 cube. 0GR_VAL_PD KF has not mapped with source in 0Pur_C01 but in report level, value is coming for purchase organisation,material group . 
    But GR value as at posting date (0GR_VAL_PD)value not coming for particular material group or purch. org. but some days before, values were coming for particular material group or purch. org..
    so need your help.
    Thanks n Regards,
    Gaurav Sekhri
    Edited by: gaurav sekhri on Aug 18, 2010 11:41 AM
    Edited by: gaurav sekhri on Aug 18, 2010 11:43 AM

    Hi Susan
    Which datasource you are using at present. Normally 0PUR_C01 gets loaded from 2LIS_02_ITM and 2LIS_02_SCL. The keyfigure that you have mentioned will come from 2LIS_02_SCL with the code that you have written.
    The code that you have written should work. Please check if the code is in the transformation from 2LIS_02_SCL.
    Share the details on why do you think the solution didn't work.
    Regards
    Karthik

  • I have a problem with FP 13 in that a Council website with a regional map viewer will not now open.

    I have a problem with FP 13 in that a Council website with a regional map viewer will not now open.  The site was designed around FP 10 and the link they have to download FP 10 nowalso directs to FP 13.  I followed the "How to revert to FP 11.7 (Chris Campbell Oct 2013)  along with the uninstall instructions link and now have both zip FP 10.3 and zip 11.7 in my downloads.  I attempted to run FP 11.7, the "winax" file for IE after unzipping it but I am blocked bya window that says I cannot do this and must install FP 13.  The only choice in this window, other than downloading is QUIT.  What is the best approach now.  The website is Auckland Council and the window concerned is "GIS Viewer".   neither Chrome or IE will open it.

    Hi 34wiki,
    There is only one uninstaller for Windows that will uninstall both 32- and 64-bit versions of the Flash Player. At one point there were two separate installers (one for 32-bit OS and another for 64-bit OS), but that has not been the case for a long time. Based on the error, it's possible you may using an older version of the uninstaller (to find out the version of the uninstaller, right-click on the file, select properties, then the 'details' tab).  The latest version is always posted to this link, and will work on both 32- and 64-bit operating systems.  If you get the same error using this uninstaller, please post the contents at the end of the FlashInstall.log file, that show the uninstall attempt.  Since you have a 64-bit OS, there will be two files at the following locations:
    32-bit: C:\Windows\System32\Macromed\Flash
    64-bit: C:\Windows\SysWOW64\Macromed\Flash
    Maria

  • How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

  • Data Associtions not enabling  while i am  trying to do data mapping with data Associtions in BPM studio what is the reson?

    Data Associtions not enabling  while i am  trying to do data mapping with data Associtions in BPM studio what is the reson?

    Shouldn't @StartDate be an input parameter to the stored procedure? @RunDate also?
    Example for sp with parameters:
    http://www.sqlusa.com/bestpractices2008/stored-procedure-parameters/
    The last error will go away upon a successful sp compile.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Im trying to find my iPhone via iCloud but i does not show a map with its last know location. It only shows the menu options. My iPad and Mac show up but the map of my iPhone does not.

    Im trying to find my iPhone via iCloud but i does not show a map with its last know location. It only shows the menu options. My iPad and Mac show up but the map of my iPhone does not. Can anyone help?

    If your phone is turned off or not connected to the Internet, you will be unable to locate it. Last known location is only stored for 24 hours.

  • Why will my I phone not connect with my IMac it pairs?

    Why will my I Phone not connect with my IMAC it pairs?

    Since you use the work "pairs", I must assume you're talking about bluetooth.
    Unless you're trying to use the personal hotspot to tether the computer to the phone, you can't do that...
    You can only use bluetooth with a computer for tethering.  Bluetooth file sharing is not supported. Neither is bluetooth sync.

  • I am Using Apple iPhone 4g 32gb and i have Updated to iOS 6.0 but in Maps i am not able to change the angle with two finger why so ?

    I am Using Apple iPhone 4g 32gb and i have Updated to iOS 6.0 but in Maps i am not able to change the angle with two finger why so ? I have also restored it but not getting

    I have an iPhone 4 also.  If you are referring to the flyover view, its unavailble for the iPhone4.  If you want to rotate the map, hold two fingers on the map for 2-3 seconds and rotate them in opposite directions.
    Hope this helps

  • HT1843 hi my bluetooth cannot see the other bluetooth devices. When it is picked up by a different device tries to pair with it but the pairing does not occur. what can I do apart from throwing this **** thing in the bin?

    hi my bluetooth cannot see the other bluetooth devices. When it is picked up by a different device tries to pair with it but the pairing does not occur. what can I do apart from throwing this **** thing in the bin?

    It isn't supposed to pair with the MacBook.  You can use WiFi to connect but not Bluetooth.  You can setup a personal HotSpot on the iPhone and connect the MacBook, or setup the MacBook AirPort to create a network and attach the iPhone, and use the USB cable to connect the iPhone to the MacBook for syncing and backup purposes.
    The communications are rather limited.

  • Parameter Mapping with RFC Callable Object not working

    Hi Folks
    Scenario
    I have a process scenario like this
    Interactive Form Callable Object A -triggers> Process [Interactive Form Callble Object B -> Interactive Form Callble Object C -> RFC Callable Object ]
    All the forms A, B, C use same form template, different sections of it lets say i, j and k are filled by different guys.
    Now my parameter mappings are as follows -
    a) Page level meeting between B & C called P Map.
    b) Process parameter mapping with Form A and appropriate section of P Map lets say section i
    c) fields of Form C are mapped to RFC callable object fields
    Problem
    The data filled in Form A [section i] disappears when I open and see the Form B.
    If I remove the mappings of fields of Form C with RFC callable objec fields, I am able to see it.
    Has anyone faced it before!

    Hi,
    This is a known issue on SP10 and it will be fixed in the next patch for SP10.
    Hope this helps!
    Best regards,
    David

Maybe you are looking for