Mapping: Element in Subnode / not regularly provided

Hello,
I am searching for more understanding about mapping functions. This is what I am astonished about in a scenario I am working on:
Source file has such structure:
Node1
  - SubNode2
       -SubNode3
          - Subnode4
            - Elements
(so subnode3 is a subnode of subnode2, 4 is a subnode of 3, elements are in subnode 4)
Target is an IDOC DELFOR02
Per Subnode2 existing one IDOC has to be generated.
Here we are fine!
But: Subnode 3 possible is not provided in the source.
So in DELFOR02 in E1EDP10 in E1EDP16 we have to fill field EDATUV and other fields by that rule:
Subnode3 exists -> use fields from Subnode4-Elements area.
Subnode3 is missing -> fill EDATUV with fct. current date.
So we generate E1EDP16 with a check "if exists" for subnode4:
Yes -> subnode4 mapped to E1EDP16
No -> constant mapped to E1EDP16
EDATUV is mapped like that:
If subnode4 exists map an element from subnode4 to EDATUV else map current date.
The segment under E1EDP16 is provided with a constant.
Then we started a test where we duplicated Subnode2.
Second Subnode 2 has no Subnode3 as described before.
Node1
  - SubNode2
       -SubNode3
          - Subnode4
            - Elements
  - SubNode2
      (not provided)
  - SubNode2
       -SubNode3
          - Subnode4
            - Elements
(remember: subnode3 is a subnode of subnode2, 4 is a subnode of 3, elements are in subnode 4)
Result:
3 DELFOR02 are generated (one for each subnode2) -> OK
E1EDP16 is generated in each DELFOR02 under E1EDP10 -> OK
The first E1EDP16 is provided as expected! -> OK
The second w/o subnode3 is generated as expected (so with the current date for EDATUV).
The 3rd E1EDP16 is generated, with one element in it, the segment. The rest is missing.
The queue says that here e.g. the result for EDATUV is suppressed (If I understand that right).
In another test we had 4 subnodes2, where the two ones in the middle had no subnode3.
Again, everything is fine, except the last DELFOR02 which again is missing the entries in the E1EDP16 segment (only segment is generated in E1EDP16).
Made one more test. result is that generated elements in E1EDP16 is always working when we have no subnode3, for source subnode 2 with subnode3 it is only working fine when it is provided first in the source , on all other places in the source the result is that the queue shows "suppress" .
What´s going on there?
Do you have an idea what we are doing wrong?
Best regards
Dirk
Message was edited by: Dirk Meinhard

Hi Bhavesh,
thank you for this hint. I had never before a look at this function and will check it now.
But I got the solution right now.
The context of the element providing EDATUV was set to the subnode3 which is not regularly provided. I changed it to subnode2 which always exists.
After that EDATUV is provided as expected in all cases.
Simple but the mapping we have here is so complex that we lost the overview.!
Best regards
Dirk

Similar Messages

  • Getting Mandatory import element 'TRACE' is not (explicitly)provided in BPM

    SCenerio>file to multiple RFC using BPM
    the above error getting at transformation step.
    getting Mandatory import element 'TRACE' is not (explicitly) provided

    Hi Hymavati,
    Check the below thread:
    Re: "Import" element allowed in XSD?
    Thanks,

  • A mapped elements relationship with other elements cannot be preserved

    Hi,
    I am trying to create an XML file from an XSD using excel macros and data from excel worksheet. The mapping takes place fine. However, when I try to save the mapped items into an XML file using SaveAsXML function, it gives me the following reason why the
    XML is not exportable:
    A mapped elements relationship with other elements cannot be preserved
    Could someone please help is resolving this issue?
    Thanks

    Preamble: I am not a specialist, on the contrary. I discovered xml a few days ago trying to submit returns based on two quite different compulsory xsd schemas established by local authorities. So this note has no other pretention than
    to try to help others starting from same level.
    The plus: I discovered I could do it (with limitations) from Excel 2010 by attaching the provided xsd and mapping the relevant fields to excel data cells. This is reasonably described on MS sites & elsewhere, although the MS tutorials
    do not focus on this particular objective, which is important as authorities are using more and more XML to expect returns.
    The minus: I stumbled across stupid issues (in fact pulling my hair...), which could be better highlighted in MS doc for the newbies like me, because at that stage of knowledge and on your own, all seems unsurmountable. When Excel gives
    the error messages, there is little indication on why and where the error occurs. My two common errors difficult to debug:
    1. Denormalized data error
    2. Relationship cannot be preserved error
    What I was doing wrong for the first xsd then even for the second by accident:
    1. In error, I was mapping an element occurring max once in the XSD schema to an element in an "Excel Table" (the “new” table formatting available in Excel 2010). I solved this by de-mapping the culprit element, converting the "Excel Table"
    to ordinary ranges using the button provided in the ribbon for this, and re-mapping. From there, (nearly) each time I was mapping a new element / attribute to a cell in the worksheet, I used the button "Verify map for Export" giving me debugging message soon
    enough before mapping the whole data set and finding it was wrong a bit late and not knowing exactly where it started to go wrong. Also, for the repeating component, I had set manually the Excel table for the whole recursive element beforehand as I found out
    that when using the dragging process, the results could be random (some attributes in the table, others in other tables resulting in errors type 2 relationship).
    2. Relationship error is a more nagging issue as it seems to relate to a structural limitation of this Excel 2010 export mechanism. Flattening a database with several depth levels (list of lists) is not trivial, so Microsoft stipulates
    a bit buried in notes while it should be in bold at the top that Excel (which version? also 2013?) "does not support recursive structures that are more than one level deep". Happily, while the xml schemas I had to follow where providing for several levels
    deep (3 in my case), I needed only one for both xml files.  So, I copied the “too complex” xsd schema, updated it manually to suppress 2 levels. I remapped and tested. The error messages had gone. I exported. Then, I had to simply add the
    previously deleted opening & closing tags manually using a free editor (Vim with thanks to that author).  
    But unless my understanding is wrong, which is quite possible, readers should understand that this documented limitation can become a structural stumbling block if they need absolutely recursivity with more than one level depth (list of lists). So, if
    I can do it in Access from a DB (I still need to find out how & forum guidance is more than welcomed), this will be my future way to explore.
    To finish, I validated the exported xml against the compulsory xsd schema using the online tool provided free by CoreFiling to ensure basic formatting mistakes had not been committed before submitting the returns for online validation
    by Authorities application. I have MS Visual Studio Express installed which may help as well but I don’t know how to use it for this.
    NB: I found also easier to copy (dragging top of the xsd tree) all the xsd elements /attributes in bulk from the xsd schema from the box on the right to a worksheet. While results would not be useable “as is” to map (it would most probably
    give errors), at least, it provides a good initial template with the right headings for all the elements / attributes facilitating restructuring (occurring once, elements part of a recursive table) then map properly and reasonably fast. Before doing this,
    I was copying manually the xml headings from the Word documentation provided by Authorities, which worked but was more cumbersome and risky.
    Conclusion
    I had never read about xml before (just heard often about it). It took me around 6-7 hours to learn some critical basics about it and about these specific xsd schemas. With a few trials & errors, I could use Excel 2010 to produce the
    xml files required for the two schemas I needed. The great advantage compared to an online submission of data to Authorities is that it a process easy to repeat quietly at work (or at home) and enabling to check peacefully and thoroughly the xml data files
    before submitting them.  If wrong submissions have been made, it enables automated corrections much easier as well. It is within reach for users with reasonable but not outstanding Excel / Xml knowledge but it requires some initial time investment.  
    Hope this saves time for others.
    acontrario
    Brussels

  • Win8.1 - Error when using traceview "PDB file does not contain provider information"

    We have been attempting to manage a Windows 8.1 machine by using the Enterprise Device Management Protocol.
    We are encountering a failure during the process and would like to inspect what is going wrong on the Client Side. Used the “Windows 8.1 Enterprise device Management Protocol” guide that was published by Microsoft.
    The guide suggests that for capturing and viewing logs generated by the built-in management agent and its components you will need access to the traceview.exe utility and the debug symbol files (.pdb) for the Windows build running on the device.It says that
    we can enable advanced logging by adding the following keyvalue to the registry.
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MDM\Debug Settings]
    "EnableSyncmlLogging"=dword:00000001
    Start the traceview.exe utility from an elevated command prompt and add the following providers:
    mdmagent.pdb
    mdmappprov.pdb
    mdmsettingsprov.pdb
    Start the log capture and execute the scenario.
    We have been having problems with adding the providers. We tried both downloading the symbol files from
    http://msdn.microsoft.com/en-in/windows/hardware/gg463028.aspx#Download_windows as well as pointing traceview to the Microsoft symbol server. All our attempts to add providers result in “PDB file does not contain provider information”
    Machine specs:  Windows 8.1 Pro – 64 bit operating System
    We would be grateful if someone could help us set up logging for this scenario using traceview or any other tool/mechanism.

    Hi,
    About traceview issue, better to post your question to the forum for Windows WDK forum:
    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=wdk
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn
    from your interaction with us. Thank you for your understandin
    Karen Hu
    TechNet Community Support

  • Google map widget markup did not show up?

    Hi guys,
    I am using Zizzer Zazzer version for Google map widget. When I click the checkmark on for "Show Marker". The marker pin did not show up on the map, I even tested with regular Google Map - it did show the markup pin. Do you know how to fix this issue?
    Thanks!
    Christie

    Hi guys,
    I am using Zizzer Zazzer version for Google map widget. When I click the checkmark on for "Show Marker". The marker pin did not show up on the map, I even tested with regular Google Map - it did show the markup pin. Do you know how to fix this issue?
    Thanks!
    Christie

  • Adobe premier elements 12 will not open.

    Hi
    My Adobe Premier Elements 12 will not open.
    It did open about 12 hours ago when I was busy working on video edits. Then I closed it, went to sleep and got up in the morning to carry on editing - bt it wont open anymore. There are no error messages coming up.
    I double clicked on the icon on my desks top, as well as tried oeping it from the start menu - same responce - nothing happens.
    what can the problem be ?
    If I uninstall and then reinstall - will this affect any of my videos that I am editing but have not rendered or saved yet ?
    thanks - I need help urgently.
    LorenzoChetty

    Lorenzochetty,
    Welcome to the forum.
    As one of the main reasons for PrE to not launch is the video driver (more on that in a moment), can you provide us with some details, please?
    What OS version are you running PrE 12 on?
    What is the make and model of your video card/chip (GPU)?
    What is the installed version of the video driver?
    Is that the latest from the nVidia, or AMD/ATI Web site?
    Also, what anti-virus, anti-malware, anti-anything software are you running?
    If you are on Windows, and have Windows updates set to Automatic (the default), then a simple OS Update can render the video driver obsolete.
    Good luck, and let us know more please.
    Hunt

  • URGENT! SimpleDeserializer encountered a child element, which is NOT expect

    Hi all,
    I am very new to web services.
    I am calling a web service which is developed in .Net
    Please help me out to solve the error as
    "*SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize*"
    My code is as below
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ParameterMode;
    public class CallingWebServiceClient
         public static void main(String [] args)
              try
                   String endpointURL =
                        "http://10.40.4.76/InSiteWebServices/WSNamedMaint.asmx";
                   String name = "ABC";
                   //Object serviceData = new Object();
                   //Object resultStatus = new Object();
                   Service service = new Service();
                   Call call = (Call) service.createCall();
                   call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
                   call.setOperationName("RequestAllValues");
                   call.addParameter( name, XMLType.XSD_STRING, ParameterMode.IN);
                   //call.addParameter( "serviceData", XMLType.XSD_ANY, ParameterMode.OUT);
                   //call.addParameter( "resultStatus", XMLType.XSD_ANY, ParameterMode.OUT);
                   call.setProperty(call.SOAPACTION_USE_PROPERTY, new Boolean(true));
                   call.setProperty(call.SOAPACTION_URI_PROPERTY, "http://www.xyz.com/WebService/WSNamedMaint/RequestAllValues");
                   call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING );
                   String ret = (String) call.invoke( new Object[] { name } );
                   System.out.println("Value is : " + ret);
              catch (Exception e)
                   System.err.println(e.toString());
    }Please let me know the solution as soon as possible.
    Thanks

    Hi,
    Regarding to the query which I have posted may have following possibility.
    This error may be due to the arguments which it gives as the output, as some of those arguments are the object of some other class.
    As the web service which I am trying to access is developed in .Net and requires three parameters, out of which one parameter named as "name" is input parameter while the other two are the output parameters, which web service provide as output. And may be the output which it provides may also be developed in .Net only and thats why while passing the input variable, it is not able to convert its output variable into the String.
    Please provide your valuable comments and solution to that.
    Thanks

  • Elements 10 canvas not working with tiff images; works fine with jpegs. What to do?

    Elements 10 canvas not working with tiff images; works fine with jpegs. What to do? It does not allow me to add a colored canvas, only a blank canvas.

    Perhaps some of the tiffs are already layers.
    In other words, since jpegs don't support layers, they all ways open with one locked background layer, but the tiff format does
    support layers so the tiffs don't have to have a locked background layer and can already be a regular layer that supports transparency.
    For the tiffs you could add a new color fill layer below and use the color you want the enlarged canvas to be.
    On pse 10 look at the bottom of the layers panel for the new adjustment of fill layer icon

  • Elements 12 will not install on my computer

    Elements 12 will not install on my computer.  It says it was not acitvated at the place where it was purchased.  Place where purchased would not take as a return because it shows it has already been activated.

    Hi R. Haynes
    Welcome to Adobe Forums.
    Please provide the serial number through private message so that i can decode it.
    Thanks

  • Can only imessage and not regular text.

    Upgraded from an iphone 4 to iphone 6. I can only send and recieve imessage (blue text) and not regular text (green text). I have sms/imessages toggle switched on. and i'm signed into my apple id. any help?

    iOS: Troubleshooting Messages - Apple Support  if the link doesn't help then contact your cell phone provider as SMS is a carrier feature.

  • Supplier shall not be provided for the purchasing organization

    Hi all,
    I've got a problem with the SRM7 in the assignment of the suppliers for the SC I get the error message: Supplier shall not be provided for the purchasing organization. The latest information I have already incorporated. Can anyone help?
    Thank you for your help
    Olaf

    Hi,
    If SC is created for one purchase organization; vendor must assigned to that purchase organization.
    First check have you maintained R/3 PurOrg & SRM PurOrg properly. When you transfer vendors R/3 PurOrg is assigned to corresponding SRM PurOrg.
    Use tcode: BBPGETVD to transfer vendors initially then use report BBP_VENDOR_SYNC to update all vendors.
    You will find where all the customizing can be done on this report.
    Path: SPRO->Tecnical Basic Settings->Make Settings for vendor synchronization
    Else you can check table: BBPM_BUT_FRG0061 for PurOrg & Vendor mapping. Don't forget to get BP of vendor from table: BUT000.
    You can refer SAP Note: 1298544-  Input of supplier data leads to an error message in 2nd step.
    Regards,
    yaniVy
    reward if helps

  • Photoshop Elements 10 will not open.  I get Error message that says "Runtime Error!" and closes.  What do I do?

    Help.  Photoshop Elements 10 will not open.  I get Error message that says "Runtime Error!" and closes. What do I do?  What does it mean?  I bought Elements 10 at a retail store.  It did work for a while.

    Hi,
    Can you post back with the following.
    1.  The full Model No. and Product No. of the notebook ( from the service tag underneath your notebook ) - see Here for a further explanation.
    2.  The full version of the operating system you are using ( ie Windows 7 32bit ).
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • When I click on a picture, Photoshop Elements 12 does not automatically open.

    When I click on a picture, Photoshop Elements 12 does not automatically open (as it did when I used previous versions Photoshop Elements 4 and 9).  I can't even right-click (Windows) on the picture and choose Open With and specifiy Photoshop Elements 12.  I have called Adobe several times (Case No. 185140584) and they keep saying it has been sent up to senior management and they will call me back with a solution - but to no avail!  No return calls and I still can't really use the Product I paid for and downloaded.  The only way I can open up a picture to edit it is to open Photoshop Elements 12 and then then click "Open" and then search for the picture on my hard drive (which takes a lot more time!  I did not experience this difficulty at all with versions 4 or 9!

    Hi,
    You failed to say which Windows system you have - I can get the "Open With" to work on my Windows 7 64bit system.
    When you try to set up the "Open With", are you setting the correct target program?
    It's the green one (not the red one) in the above image.
    Once you have selected that program, make sure you set it as default so that a double click will open the photo in the editor.
    Good luck
    Brian

  • How to get the name and value of an attribute on a node/element that is not a child

    Hello,
    Can someone shed some wisdom on how I can compare 2 xml nodes for differences.
    My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in
    another doc with the same layout, but different content.
    I am having trouble getting the name of the attribute on the node, 'ProductDescription' and 'Features'.  I can only seem to get the node names, but not the attributes on the node.  I need the name, because it can be different from doc to doc, so
    I can't hardcode this.
    Can someone please help with how to retrieve an attribute name/value on a node that is not a child.  Here's an example of what
    my xml looks like:
    DECLARE
    @myDoc1 xml
    ,@mydoc2 xml
    DECLARE
    @ProdID int
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    SET @myDoc2 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>2 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "wheel">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    I need to compare the attributes of 'ProductDescription' and 'Features' from @mydoc1 against @mydoc2 to see if they are the same based on those 2 nodes first.  If they are, then i want to show the difference in the child elements. 
    This will eventually be an outer join to give me the differences betw the 2 docs based on those key values (node attributes).
    I used node('//*') for the path, and value('local-name(../.)', 'varchar(50)') as element
    ,value('.[not(@xsi:nil = "true")]','VARCHAR(255)') AS new_value
    ...etc...
    but that only gives me the node names, and the child elements.  It does not give me back the attribute names and values from the node itself.
    Thanks in advance for your help.
    cee

    Are you looking for something like this:
    DECLARE @myDoc1 xml
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <Features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>'
    SELECT T.c.value('local-name(.)', 'nvarchar(50)') AS name,
           T.c.value('.', 'nvarchar(50)')  AS value
    FROM   @myDoc1.nodes('ProductDescription/@*') AS T(c)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Adobe premiere Elements 12 will not open editor

    I had Adobe Premiere Elements 11 on my laptop and worked fine. Decided to upgrade to Elements 12 and did but version 12 will not open editor, says sign in, I sign in but no editor. Organizer opens and loaded my Photos and videos. I purchased full retail version for download. My laptop runs windows 8.1 and has an Intel Core i5 dual core processor and 4GB ram.

    actll
    Have you gone to Computer/Manager/Event Viewer/Windows Logs/Applications and looked for error entries that appear to be associated with this problem?
    Did you purchase Photoshop Elements 12 as well as Premiere Elements 12, and does Photoshop Elements 12 Full Editor open whereas Premiere Elements 12 will not open to its Expert or Quick workspaces?
    You have probably tried it, but can you open to the Premiere Elements workspaces from the Elements Organizer workspace?
    More later.
    ATR

Maybe you are looking for

  • Transfer iTunes music to a new mac

    I've just received my new iMac. I have 80 GB of music on an external drive that worked fine with my previous Mac Mini. I have copied this into the music folder on my new mac. When I open itunes in the new mac, I can only see 47 GB of music. However i

  • BRFPlus and WF Method

    Hi Gurus, I am facing an issue with the BRFPlus and Worklfow, Can anyone please tell me how to integrate a workflow task with BRF Plus application>? I want to put condition in a step using BRFPlus. Regards, Sarip

  • How to modify primary key column?

    I want to modify one primary key column, But TT reported error. How do I modify primary key column? Thanks first.

  • Album Starter Edition 3.0  has my pictures locked

    First time poster, new to on-line photos.  Recently we recieved blakcberry phones at work.  My pictures that I have been storing and backing up go automatically into Adobe Photoshop Album Starter Edition 3.0   I have been doing this for a about 6 mon

  • Is there any benefit updating OS 10.6.8 too Lion and Mountain Lion before Maverick?

    is there any benefit updating OS 10.6.8 too Lion and Mountain Lion etc. before updating to Maverick?