Parent node showing in schema when child nodes not present

I had several folks answer my questions on mapping from a flat file to an EDI 835 schema and I am down to just a couple of issues before I finish up. I have a conditional mapping issue that I have to solve before I can map the rest of the document. I am
mapping three fields in a single non-repeating line in the flat file to a repeating segment in the 835. Basically I need to create a separate AMT_ClaimSupplementalInformation segment for each field in the flat file line. As you can see in the picture
below I want to create a AMT_ClaimSupplementalInformation segment for CDISCOUNT, CINELIGIBLE and CALLOWED.
You can see I have quite a bit of conditional logic attached to the three fields, but I have all three connected via a loop to the AMT_ClaimSupplementalInformation parent. I cannot attach the loop to the parent of the three fields because it only appears
once in the file. And if I leave the loop out the AMT segments get stacked funny, like this:
<AMT_ClaimSupplementalInformation>
AMT1
AMT1
AMT2
AMT2
</AMT_ClaimSupplementalInformation>
You can see how they should be stacked in the next pic.
In some cases however, one of those fields may be blank so I will not need to create a AMT_ClaimSupplementalInformation segment for it. I was able to use some conditional mapping ideas you guys gave me using the Not-Equal and Value Mapping functoids, and
that works great to keep blank child nodes from being created. However, Since I have a loop attached to the AMT_ClaimSupplementalInformation parent node it still creates an empty parent node even when the child nodes are not created. See the empty parent
node in the pic below.
Since looping functoids can only be attached to links I don't know how to make the parent node conditional.
Any suggestions?
Thanks.

Boatseller, thanks for the tip. I did end up going the XSLT direction. It's a bit of a hack, but I'm using the following XSLT to eliminate empty nodes :
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="@*|node()">
        <xsl:if test=". != ''">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:if>
    </xsl:template>
</xsl:stylesheet>
I created a new map with the 835 schema on each side. I then created an XSLT file and pointed to it in the Custom XSLT Path property. It seems to work well. I call this map right after my FlatFile_To_835 map.
I was hoping to use the scripting functoid with inline XSLT in the map so that I didn't have to worry about deploying the XSLT file(just another thing to keep up with in the future), but when I compile it I get the following error:
The "Scripting" functoid has 1 input parameter(s), but 2 parameter(s) are expected.
I'm wondering if I'm connecting the schemas incorrectly in the map:
In any case, I'm past the empty nodes issue for now, which was a big roadblock. Now I have to deal with the CAS segments which are, as you said, a real pain. 
Thanks for all of your input.

Similar Messages

  • DMEE : how to make parent node disappear when child node is empty

    Hi Friends ,
    Currently i am working on DMEE , I have a problem . When Child node is empty I donot want the parent node to appear in the tree.Here I am uisng a field via exit function module for childnode. so not a fpay* strucutre field to write a condition.
    Is there any other way for this ?
    Please help.
    Komaravolu

    I'm not sure if this can be done in DMEE tree, but there is BADI DMEE_BADI_01 that can be implemented to perform any kind of postprocessing right before the file is created. I used it, for example, to replace separators with tabs. I believe this can also be used to eliminate the unneeded nodes.

  • WOT and Webutation is showing as disabled when they are not

    WOT and Webutation is showing as disabled when they are not .The icons show,but no color on icons. Says WOT is disabled when its not. Also the same on Webutation. Tried uninstalling then reinstalled both and the same thing happened. Tried Wot on another users account and theirs work. Can someone help me on these issues?

    capaho wrote:
    That's like saying a boat is an airplane because it's not a car.
    SMH
    In other words, how does your explanation account for ED (enhanced definition)?
    ED is generally considered to be 576p or 480p, but this is not universally accepted and these resolutions are often accepted as HD also. Additionally an ED signal uses non square pixels just as SD does so the horizontal pixel dimensions should be no more than 720. Exactly how the tv would treat these resolutions I don't know (yet).
    If you have a copy of the source code for the function that displays the HD icon, please post it so I can take a look at it.
    Why should I have such a copy and why is it relevant. The issue here is that the OP believes his video is incorrectly labelled HD which is not the case. There may or may not be anomalies in the way the tv attributes the HD label to some files (although it isn't the case for me), however the OP has incorrectly converted his source video and they are no longer SD, they are also not ED by whichever definition you wish to apply and any such anomalies should they exist are not responsible for the OP's files being labelled HD.

  • First, I've read the manual. This new Nano won't sync and won't charge. Itunes does recognize the device. When it's connected to a Windows PC, the battery indictor shows charged. When it's not connected, the indicator shows no charge. I've tried this on t

    First, I've read the manual. This new Nano won't sync and won't charge. Itunes does recognize the device. When it's connected to a Windows PC, the battery indictor shows charged. When it's not connected, the indicator shows no charge. I've tried this on two PCS without success.

    Maybe the Nano you got is defective. Have it replaced.

  • After writing an html report on a floppy disk and removing it, labview shows an error message window: disk not present

    after writing an html report on a floppy disk and removing it, labview shows an error message window: disk not present.
    My pc is based on asus motherboard. Labview 7 and Windows 2000 sp4 installed.
    The error message continue also if i stop the application that generated report on a: .
    I've got this problem only on a pc: on other machines i don't have this problem (Labview only continues to access floppy but it doesn't show any window).
    Find below an example: first press the button to create a report on a: then remove the floppy, after 30-35 sec i've got the error message
    Attachments:
    prova.vi ‏55 KB

    Hi,
    I tried your vi: I don't get any error message after removing the disk but LV7 keeps on accessing the drive at regular intervals even if you stop the vi and close it!!! This is not supposed to happen.
    The only way to stop it is exit LV7.
    If you don't use the file dialog and you wire a full path, you don't get any problem.
    I also created a very simple vi that conditionally writes a text file on a: and I got the same behaviour.
    This problem occurs only with LV7, I tried the same examples in LV6.1 and everything was fine.
    If anybody wants to try I attach this simple example,
    Alberto
    Attachments:
    salva_testo1.vi ‏22 KB

  • Syn read file adapter throwing exception when file is not present directory

    Hi Team,
    Requirment is to check for a file is present in a soa directory .If present delete the existing and write a new one.
    Syn read file adapter is throwing errors when file is not present in the directory soa local.
    Any paramter we can add to skip this exception.
    any help is appreciated.
    Thanks all
    Swetha H.

    Hi:
    An alternative is that , before u try to read it, u make a list directory, and search for ur file, if it is not in the list, then u don't read; otherwise, u do.
    The list operation is part of the file adapter.
    hope this helps
    best

  • HOw to get parent node name value through its child node?

    Hi,
    Experts,
    I am able to get child node name values but according to attribute name value i want to  get its parent name value how to achieve that. For that i have used If_Ixml_element->Get_parent. Please pass some idea on it.
    Thanks in advance,
    Shabeer ahmed.

    Hello Shabeer
    I think the coding should be straightforward:
    DATA: lo_element   TYPE REF TO if_ixml_element,
              lo_child        TYPE REF TO if_ixml_node,
              lo_parent      TYPE REF TO if_ixml_node.
    " NOTE: LO_ELEMENT holds your child node
      lo_child ?= lo_element.
      lo_parent = lo_child->get_parent( ).
    Regards
      Uwe

  • Radio interface need to be disabled when antenna is not present?

    I have been informed within a training class that the radio interface of an access point should be disabled when an antenna is not present. The reason given was that it would protect the radio from being adversely affected (potetnial for irreparable conditions). Question: 1) Is this true? 2) If so, where can I find supporting documentation on CCO? (I have not been able to find corroboratory information.)

    Hi Vincent,
    Here is a doc that speaks to this issue ( I don't see this causing irreparable damage but, better safe than sorry :)
    Q. If you operate the radio but do not attach the antenna, can you damage the radio?
    A. Some radio equipment manufacturers specifically warn against the operation of radios without the attachment of the antenna. Operation without the antenna can damage the transmitter. Most pieces of amateur or commercial radio equipment carry this warning because the equipment operates at a much higher transmitter power. A failure to use a proper antenna or load causes a reflected wave standing wave ratio (SWR) that can damage the final amplifier stage. This final amplifier stage is the power amplifier (PA).
    For Cisco Aironet equipment, the transmitter power output is 100 milliwatts (mW) for the 350 Series and 30 mW for the 340 Series. Damage is unlikely, but possible. If you need to run the devices without antennae, turn the transmitter power down to 1.5 mW. Also, you can use a 50/52 ohm dummy load (attenuator) to be safe.
    From this good Q & A doc;
    http://www.cisco.com/en/US/products/hw/wireless/ps441/products_qanda_item09186a0080094d01.shtml#aps
    Hope this helps!
    Rob

  • Strange issue in Oracle ASM on Two node RAC where in one ASM node shows all diskgroup while other node shows  missing node.

    We have Oracle datbase 11gR1 in RAC node with Oracle ASM.Recently our database server got crashed and we are trying to restore back services.
    Using Snapshot technologyBusiness copy we had synced all our disk on storage level. Post this when we are trying to start ASM instance on node 1 it is coming and showing all diskgroups but on other node it is throwing errot with missing e diskgroup.
    ORA-15032: not all alterations performed
    ORA-15040: diskgroup is incomplete
    ORA-15042: ASM disk "5" is missing
    Expert please share your views.
    Thanks,
    Tushar

    The I/O fabric layer on the other node failed to mount all storage LUNs - resulting in ASM being unable to mount a diskgroup as there are missing disks in that group.
    Rebooting is exactly what could be needed to reset the h/w and infrastructure used by that node, in order for it to see all the storage disks again. As node 1 sees all storage disks (and is working), the disk itself on the storage system is intact and usable.
    What is the o/s? What is the fabric layer? What is used on o/s for dealing with the I/O fabric layer?

  • Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled. This shows up even when I am not connected to a USB. what do you think the problem is?

    Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled. - This is what shows up sometimes even when no USB is connected. What could be the reason?

    Try a different USB cord, seen this many many times, its highly likely a damaged USB cord.
    Restart the computer to redefine Port definition.  If still a problem
    You can also resetting PRAM/NVRAM:  http://support.apple.com/kb/ht1379
    MacBook Pro (15-inch Mid 2012), OS X Mavericks (10.9), i7 500GB 16GB RAM iPhone5 iOS7.0.3

  • Security Question: showing me online when I am not

    Hello, I have a question about security. My husband could see me coming on and offline yesterday but I was not using skype and all my devices I was signed out.
    I changed the password in case I was logged in somewhere else but this has not solved the problem. It still showed me coming online & offline.
    Could you look into this for me? Can my community manager log in and see my messages?
    many thanks

    I'm also having this issue. A friend of mine told me I was online, when I wasn't, she talked to me and, most of all, I had some private conversations in there. I don't really know if someone is hacking my skype account, but I already changed my password. I don't know if it really kicks out everyone logged in, but I've tried that.
    Skype is replacing MSN and it doesn't even have all features MSN had! There should be an option to see everywhere I'm logged in at on time...

  • Security: showing me online when I am not

    Hello, I have a question about security. My husband could see me coming on and offline yesterday but I was not using skype and all my devices I was signed out.
    I changed the password in case I was logged in somewhere else but this has not solved the problem. It still showed me coming online & offline.
    Could you look into this for me? Can my community manager log in and see my messages?
    many thanks

    I'm also having this issue. A friend of mine told me I was online, when I wasn't, she talked to me and, most of all, I had some private conversations in there. I don't really know if someone is hacking my skype account, but I already changed my password. I don't know if it really kicks out everyone logged in, but I've tried that.
    Skype is replacing MSN and it doesn't even have all features MSN had! There should be an option to see everywhere I'm logged in at on time...

  • Mac Book Pro on Mountain Lion HDD shows almost full when it is not

    Hi,
    I am using a MacBook Pro End 2011, with an HDD of 500 GB.
    There is a partition on the HDD, and one side runs Mac, and the partition is for Windows 7 via Parallels (about 125 GB).
    SInce about the last 10 days, my HDD shows only 10 GB of free space, and I think it should be having much more free space.
    My data is about 105 odd GB, and the folder "Applications" shows about 7.5 GB used.
    I fail to understand how the HDD can be out of space.
    I tried using Disk Utility, and the option to "Repair".
    While it runs and repairs some permissions, it says that some permissions cannot be replaired and that they have been modified, but the problem does not resolve.
    Also , the machine feels a bit slower than before.
    Help much appreciated.
    Thanks, in advance.

    Care to share which OS you are using?
    Quick fix
    How To Quickly Free Up Hard Drive Space on Mac OS
    http://www.youtube.com/watch?v=fO-mlLApEuk
    HD Space Checkers:Disk Inventory X (FREE)
    WhatSize (SHAREWARE)
    OmniDiskSweeper (FREE)
    GrandPerspective (FREE - donation)
    Mac Performance Guide
    Slimming your hard drive
    Rule of thumb: You should never let your hard drive get to where you have only 10-15% of space left.

  • Find Control in Event Structure doesn't show the object when it is not in the frontmost Tab page [Bug Report, LabVIEW 2012]

    When you are looking for the control/indicator handled by a case in the Event structure, you can use the contextual menu item "Find Control" (doesn't distinguish between control and indicator, BTW).
    The result is that the control/indicator is highlighted on the FP. The problem is, if that control is in a Tab and specifically in a page of that Tab that happens to not be the frontmost, the only thing you'll see is marching ants, but no control:
    <=========== the wrong TAB page was shown. LV did not bother to switch to the relevant one....
    In other words, "Find Control" in the Event Structure doesn't switch the tab to the owning page. This is contrary to what happens if you right-click, say, the terminal of this control: the FP will switch to the owning Tab page.
    I'd call this a bug and this is definitely an annoyance (which most likely has been around since the creation of the Event Structure).

    I did not. Is there any better chance for it to be caught there by a NI eye than it is in the LV forum? I though these threads were deemed to gather bugs/features that had been already acknowledged by NI with a CAR number.
    I (and others!) wished there was something like this: http://bugs.sun.com/ or http://bugs.python.org/ for LabVIEW...
    I am just coming back from a short conference of scientists who quite uninamously ended up with the conclusion that LabVIEW was to be disregarded as a lab development environment because of maintenance problems (which could have been argued for any language in my opinion, although I think they meant spaghetti diagrams are the natural tendency of students who could not care less as they are not going graduate because of their LV skills or lack thereof), but I guess I could have added my grain of salt and added the complete opacity on bug and feature handling by NI.

  • Showing Booking amount when it does not equal Opportuity Revenue Total

    I there a way to create a report to easily show where the booking amount of an opportunity does not equal the sum of the products in the product revenue section? I tried Sum(Product revenue), can't quite remeber the field name, but that did not work
    Also, we would like to see any opportunity that has no predict revenue associated with it, either in the same report or a different report.
    Thanks

    David,
    The Opportunity-Product subject areas contain both Opportunity Revenue fields and Opportunit-Product Revenue fields. The Opportunity-Product Revenue field located in Columns/Opportunity-Product/Revenue/Revenue will aggregate the total amount of all products for the opportunity. There is no need to SUM this field.
    Build a report and filter it based on a field that calculates the difference between the two revenue columns and you should get your desired list of opportunities.
    Now that you know where the right fields are, you other report should be a simple filter on the appropriate revenue field = 0
    Mike

Maybe you are looking for

  • ThinkVantage: What Does It Do? How Make It Work?

    On the T400, what does the ThinkVantage button do? How can I make it work?    When I press it now, nothing happens.    The original windows operating system that came with this computer is no longer installed.   I got it without an operating system a

  • Apple Configurator and VPP for Macbook Pro?

    Hi, i was wondering how can we deploy the apps we buy from a account apple VPP on a macbook pro? not on ipad or itouch, just on a macbook pro. Because, when i want to buy some apps, they only give me the choices for Ipad or Iphone. Nothing for Macboo

  • Wheres the TechnicalError Boundary event in 7.31 SP11?

    We've just upgraded to CE 7.31 SP11 and I was very keen to try the TechnicalError boundary event ( http://help.sap.com/saphelp_nw73ehp1/helpdata/en/5b/715367d7c143e5b62d5f39d48400c6/content.htm). I've got NWDS 7.31 SP11 pat005 and have created a new

  • Music and preview box not functioning in scene selection page...

    I am working on a video in iDVD (v.7.0.4) using the Bronze Wedding "old theme" and in one of the scene selection pages the music or the preview of the movie in the box is not working.  I checked the inspector window and it says the music is there, bu

  • Need help installing WRE54G

    I am having a really hard time installing a WRE54G v3. I have connected it to a laptop with an ethernet cable and successfully entered settings. When I run Net Stumbler, I do see the WRE54G there, but the Link light is red, and I can't connect to it.