Which mapping pattern would work for this?

Hi,
i been trying to create a mapping program.
the source structure is as
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
  <ns0:Message1>
    <ns:MT_SOURCE xmlns:ns="http://test.bsa.demo">
      <GT_ABC>
        <field1>6</field1>
        <keyfield>1001</keyfield>
        <field2>2</field2>
      </GT_ABC>
      <GT_ABC>
        <field1>6</field1>
        <keyfield>1002</keyfield>
        <field2>2</field2>
      </GT_ABC>
      <GT_XYZ>
        <field1>7</field1>
        <keyfield>1002</keyfield>
        <field2>3</field2>
      </GT_XYZ>
      <GT_XYZ>
        <field1>12</field1>
        <keyfield>1003</keyfield>
        <field2>3</field2>
      </GT_XYZ>
      <GT_XYZ>
        <field1>15</field1>
        <keyfield>1004</keyfield>
        <field2>4</field2>
      </GT_XYZ>
    </ns:MT_SOURCE>
  </ns0:Message1>
</ns0:Messages>
and the desired target structure to be generated is based on the total no. of keyfield entries.
suppose that keyfied entry has values,
1002 for substructures GT_ABC and GT_XYZ
1001 for substructures GT_ABC.
then there should be 2 occurences of target structure for keyfields 1001 and 1002 respectively.
for the occurence of 1001 the structure MT_KEYFIELD should have substructure GT_ABC
for the occurence of 1002 the structure MT_KEYFIELD should have substructures GT_ABC and GT_XYZ since both of them have keyfield value as 1002
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
  <ns0:Message1>
    <MT_KEYFIELD> 0..unbounded
      <GT_ABC>   0..unbounded
        </field1>
        </keyfield>
        </field2>
      </GT_ABC>
      <GT_XYZ>   0..unbounded
        </field1>
        </keyfield>
        </field2>
      </GT_XYZ>
    </MT_KEYFIELD>
  </ns0:Message1>
</ns0:Messages>
after mapping is executed the target strucuture should be as shown below
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
  <ns0:Message1>
    <MT_KEYFIELD>
      <GT_ABC>
        <field1>6</field1>
        <keyfield>1001</keyfield>
        <field2>2</field2>
      </GT_ABC>
    </MT_KEYFIELD>
    <MT_KEYFIELD>
      <GT_ABC>
        <field1>6</field1>
        <keyfield>1002</keyfield>
        <field2>2</field2>
      </GT_ABC>
      <GT_XYZ>
        <field1>7</field1>
        <keyfield>1002</keyfield>
        <field2>3</field2>
      </GT_XYZ>
    </MT_KEYFIELD>
      <GT_XYZ>
        <field1>12</field1>
        <keyfield>1003</keyfield>
        <field2>3</field2>
      </GT_XYZ>
    </MT_KEYFIELD>
    <MT_KEYFIELD>
      <GT_XYZ>
        <field1>15</field1>
        <keyfield>1004</keyfield>
        <field2>4</field2>
      </GT_XYZ>
    </MT_KEYFIELD>
  </ns0:Message1>
</ns0:Messages>
which mapping pattern would helpful for this?????
Thanks & Regards,
Bibinu

I am an independent web designer/developer and have separate
clients with non-related websites each of which is hosted remotely.
Would I be able to set up a client as a Contribute user (assuming
they bought the software) and allow them to edit areas of their
site?
Yes, that is possible. Each client would have his own license
though. You could then administer the sites from your own copy of
Contribute.
This may seem like a dumb question, but in going through
several tutorials it isn't clear to me whether Contribute is
intended for content editors all of whom work within one
organization and who all access a web server within their
organization's IT network to do this editing. I can't quite
understand how the software on the desktop on my client's computer
interfaces at all with settings that I set on my own installation.
Is some server technology needed here?
The editors don't have to be working in the same organization.
The connection is made through ftp-like connections from the users
computer to the server, and the administration of the site is
maintained at the server and kept up to date at the clients
computer. I suggest you download the trial version of Contribute
CS3 to check it out.

Similar Messages

  • Regarding which design pattern to use for this scenario???

    hi guys
    I am working on a J2EE application where I need to do translations for 3 different scenarios. It is basically a conversion from service order objects to invoices.
    First from a service order object to an invoice.
    Second a conversion from a transaction table.
    Third a conversion from a remote system.
    Finally the product is an invoice..
    What design pattern can i use ....is strategy pattern a good idea??
    Thanks
    J

    Hi,
    I think your problem is in result state. You can you sequencial block but for approve or reject you need to set target for each result state. Here I am providing a link. I think you will get your solution here please go through it.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/429bbd709914bce10000000a155369/frameset.htm
    if you have any query please let me know.
    Thanks
    Chandan

  • I have a Mac Pro 4,1 quad core intel Xeon running mac OSX 10.6.8 and I have just moved studios and now need to use the Internet wirelessly but there's no airport facilities on this model can anyone tell me what model of airport card I would need for this

    I have a Mac Pro 4,1 quad core intel Xeon running mac OSX 10.6.8 and I have just moved studios and now need to use the Internet wirelessly but there's no airport facilities on this model can anyone tell me what model of airport card I would need for this mac

    Instead of getting a wireless card for the Mac Pro, you might want to consider getting an 802.11ac wireless bridge device that would enable you to connect more than one device to it by Ethernet cable and to eventually take advantage of the faster 802.11ac wireless standard.

  • I have brought a 17'' MacBook Pro 2.5ghz core 2 duo 2gb. Model A1261. It seems I can upgrade to either 8gb or 16gb ram! But since It's 2006'ish, I just want some advice on the best ram that would work for a good price. Thanks :)

    I have brought a 17'' MacBook Pro 2.5ghz core 2 duo 2gb. Model A1261. It seems I can upgrade to either 8gb or 16gb ram! But since It's 2006'ish, I just want some advice on the best ram that would work for a good price. Thanks :)

    Keiran420 wrote:
    8 gb will do I guess
    Based on the information that you have supplied, you have a Early or Late 2008 MBP.  Maximum RAM that it will accept is 6 GB with the following specifications:   200-pin PC2-5300 (667MHz) DDR2 SO-DIMM.
    The best sources for Mac compatible RAM are OWC and Crucial.
    Ciao.

  • The vga adapter (for a Benq projector, for example) is only for Ipod touch 4g? I have an 2g. Doesn't work for this?

    The vga adapter (for a Benq projector, for example) is only for Ipod touch 4g? I have an 2g. Doesn't work for this?
    Thanks in advance.

    The VGA is for the 4G iPod only. The 2G can use the composite and component cables.
    http://support.apple.com/kb/HT1454

  • Can any one find a solution to this problem [ID CC 2014 has stopped working] for this file{link included}

    Hi all,
    Can any one find a solution to this problem [ID CC 2014 has stopped working] for this file{Dropbox - Questions CH-5 .indd}
    Note: I could open it, but suddenly I have faced this issue with just this file no any other of my files.
    Thanks for your help.

    try the blind export to .idml script at Adobe Community: InDesign 6 is crashing when attempting to open a particular document. All others are opening OK.

  • I started the OS system from a backup hard drive. Now My Adobe products doesnt work. "the licensing does not work for this product" Error code 150:30. Help me please!!

    I started the OS system from a backup hard drive. Now My Adobe products doesnt work. "the licensing does not work for this product" Error code 150:30. Help me please!!

    Reinstall the software properly. migration/ backups do not work due to the specific requirements of the activation system.
    Mylenium

  • I had a Tascam US 122 usb interface, but it didn't work with OSX Mavericks. What model would work with this? Would the US-144 mkii work with my system?

    I had a Tascam US 122 usb interface, but it didn't work with OSX Mavericks. What model would work with this? Would the US-144 mkii work with my system?
    Thanks!

    You didn't mention the kind of track in GB you are trying to create, but if you are connecting the keyboard with a guitar chord to the Tascam, you will need to set up a Real Instrument Track in GB to hear anything. If your keyboard has a midi out, use a midi cable to the midi input of the Tascam, create Software Instrument Track, and you will hear something. But with a guitar chord, it won't send the right signal to a Software Instrument Track. The headphone jack in the Tascam monitors the signal coming back to it out of GB (if you choose the US-122 as your monitor in GB's preferences), so you wouldn't hear your keyboard if the track is not set up correctly. It could be the drivers, but since you didn't mention the type of keyboard or the type of GB track, I thought that might be a possible answer as well.
    eMac   Mac OS X (10.3.8)  

  • "this accessory is not optimized to work for this iphone"

    "this accessory is not optimized to work for this iphone. You may expirience noise caused by cellular interferance and a decrease in cellular signal Strength.{dismiss button}"
    So I get this message non stop on my 3GS since upgrading to 4.1. My phone isn't plugged into anything and there's no dust build up at the port at the bottom. Any ideas?

    http://discussions.info.apple.com/thread.jspa?threadID=2475631&start=0&tstart=45
    Heres another thread abouth this topic. Was having same problem. Went to Genius Bar and they cleaned the port for me with static free brush and compressed air. Message went away......for a bit. Still pops up from time to time. Sometimes frequently , sometimes not. A real annoying problem. Also this started after the update to 4.0. Didnt go away with 4.01 or 4.1. Phone has been used in same conditions pre and post 4.xx. Another trip to Apple store is on the horizon.

  • I have a new iMac and want to use my HP 7300 All in One and to use the "Fax"feature I need a phone port on computer and of course, this computer does not have one.  Are there any aftermarket devices for USB to phone that would work in this case?

    I have a new iMac and want to use my HP 7300 "All in One and cannot use the fax feature because there is no phone port is there a solution for this?BACellli

    You don't need a phone port on the iMac. The HP 7300 DeskJet Pro has an internal modem, you connect the printer's modem connection directly to your phone line. Please re-read the install directions that came with the printer.

  • Will Airport Express work for this?

    Hi. I've got multiple Macs, but only my 2 laptops are wireless. I've currently got an Airport Express hooked up to my router which supplies the laptops with their connection. I would like to stream my iTunes - which resides on an external drive connected to my 17" FP iMac - to my stereo system in a different room.
    Now...if I pick up another Airport Express, will the fact that the iMac that the iTunes is set up is not wireless and instead basically physically connected to the main Epress cause a problem with it being recognised? I can see that one in Airport Utilitiy as it stands now. Or would I also have to get an Airport card for the iMac for it to see the second Express? I don't feel like paying $100 to find out that it won't work or this setup and all I've really done is extend the range of my network, which is not a problem.

    Now...if I pick up another Airport Express, will the fact that the iMac that the iTunes is set up is not wireless and instead basically physically connected to the main Epress cause a problem with it being recognised?
    No it will not cause a problem.

  • Will an iMac work for this?

    I just found a working iMac G4 on Craigslist, and I am considering it as computer for my aunt. It is an 800Mhz with 512Mb ram. It has 10.2.8 on it, but I'm planning on installing Tiger. I have A 1GB set of ram from an iMac DV, which I'm almost certain will work on this model. She has a digital camera and wants to use iPhoto for the pictures. She also wants to be able to use their DSL connection to get on the web and check e-mail. What I really want to know is, will iPhoto '08 run smoothly with 800Mhz and 1GB of ram? will it be able to play videos on YouTube without freezing? Any advice would be great. Thanks!

    The iLife versions have limitations on what they will work in;
    given that iDVD and iMovie presupposes you have certain
    hardware in place and a bus speed of a fast enough rate
    to support this software set. iLife 06 may be fine enough.
    There is some information on hardware and software in
    MacTracker; your RAM information appears essentially
    correct to a point, There may be faster (in rated n/s) speed
    PC133 chips. I recall some of the older ones also had a
    rating of 2-2-2, or 2-3-3, etc that meant speed. In the older
    iMac400DV I had, matching RAM of high spec helped.
    Some of the non-supported items, even in an earlier version
    of iLife, won't be installed if the hardware is not available.
    With Tiger 10.4.11 installed, the limits would be in bus speed,
    available RAM, free space on hard disk drive for Virtual Memory;
    and a few other bottlenecks. A CDRW drive omits iDVD unless an
    external FW unit could be adapted for use.
    There should be some specifications listed for old versions of iLife
    or their component software parts, in the Support database. I had
    been looking for a suitable version of iLife for use in iMac G4 1.25
    computers since the bits I have are from Panther via upgrade. And
    one of my computers has the correct iLife stuff for Tiger's era. If I
    edit images in iPhoto in one, they may act differently in the other.
    {So, having an installer for iLife versions is handy and saves wondering
    what will work; and you can update from one to the other if a newer one
    appears to be capable of working in that older iMac G4 800. I just gave
    away a nice iMac G4 17" 800 with superdrive, 80GB HDD, AirPort, Tiger,
    speakers and a few other nearly new accessories. Didn't have iLife...}
    In any event...
    Good luck & happy computing!

  • Need help- trying to figure out if Spotify would work for my senior living community

    We are a senior community that has activity programs running in like 7-10 areas in the building.  Music is a big part of our day.  CD's for all these areas is getting crazy.  There has got to be a better way.  We want to be able to pick music genre, a song even to hear and have playlists.  What we have currently:  We have some laptops and desktop computer using windows.  We also have a few MP3 players, boomboxes and IPODS.  We also have Wifi.  But sometimes of course we have Wifi issues.  We have access to usually a laptop or boombox.  We could use the MP3 players/ipods.    I like the idea of playlists that we share, pulling music that is alike.  These are my quesitons or issues below: Things are my questions:1.   Can we have 1 account be made for different appliances and be on spotify at the same time?  Premium said 3 but you can't be both logged in under each account.  Is this still true?  Postings were old. 2.  With even the Spotify family can you be on to the account at the same time?  3.  What would be our best solution for this for accounts- would we have to set up different account for each device if we want to play at the same time?  Any ideas - I just really need suggestions4.  If we did our laptops, we would need speakers?  Also for boomboxes- is this possible?  I am assuming using like an MP3 player or IPOD.  Spotify work through them?  Is it certain type of MP3 players and IPODS.  I believe a few of ours are older ones. 5.  If we have tons of accounts, can I start all accounts on same computer?    Would I set them up by each device we have?6.  Can you run ipod/mp3 through large TV speakers?  or laptop music through big screen tv speakers?7. For the music itself, can you pick what exact songs in playlist?  Can you make lots of playlist per account?  I saw 3,300 songs but can you name the playlist and stay forever?  Sorry for all the questions.  I am trying to figure out if this is even possible or worth doing.  If we have seperate accounts - how much monthly is that?  Is there a deal for that many devices?  Thanks  

    Spotify has 2 different account types. You can see the difference between the two at the bottom of the homepage: http://spotify.com
    1: Each Spotify account can only play on one device at a time. You can have the account logged into as many devices as you want, but you can only play on one device at a time.
    2: With Spotify family, there are several Spotify accounts under one plan. Each account is able to play on one device at a time.
    Check out the family help guide here:
    https://support.spotify.com/learn-more/guides/#!/article/spotify-family
    Also check out this thread for information:
    https://community.spotify.com/t5/Help-Accounts-and-Subscriptions/Spotify-Family-Q-amp-A/td-p/988520
    3: Yes, as stated above
    4: You wouldn't necessarily have to have speakers hooked up to the laptop. If the laptop has speakers or you input headphones, that should work. Spotify doesn't work with MP3 players/iPods. To use Spotify you have to have the Spotify app.
    You can find a list of compatible devices here:
    https://support.spotify.com/learn-more/guides/#!/article/spotify-system-requirements
    7: Yes you can search Spotify and add any song you want to a playlist. And you can also make lots of playlists. Each playlist has a limit of 10,000 songs. The 3,333 limit you saw is for the offline limit on premium accounts. Up to 3,333 songs can be downloaded for offline listening.
    Hopefully this information helps. The family plan can have up to 5 accounts. It might end up being too expensive for what you need. The free plan has ads, but it still might be worth looking into.
     

  • Can I possibly get Premiere to work for this project?

    Hi. I am working on a time lapse scanner photography project. I scan flowers a few times an hour and then make videos of them drying out. I'm currently making a movie of it all. The thing is, the scans can be thousands of pixels high/wide. The problem arises when I make sequences with 20 or more of these videos (scaled down to around 10% in Premiere) moving together. It becomes almost unusable on my older Macbook Pro. Doing the more complex parts of it is also very inconvenient on a new iMac. Because I'm working with so many files, I tried out After Effects. Its proxying feature excited me, but it soon became clear that AE is meant mostly for shorter projects, and not for clips that can get 40 GB + in size. For example, in trying to make tiny proxies of clips last night, only four succeeded. It seems that the rendering is centered on your available RAM, and when it runs out (a few seconds into the first clip) rendering becomes very slow. This might work for ads or something, but not for this project. Maybe I'm not using it correctly though.
    So I don't know what to do. I've tried a proxy workaround for Premiere, but that seems to involve working with clips at the resolution you made the proxy at, unlike AE where you can work with a now-more-blurry version of your main file. I tried making a tiny proxy manually, and then upscaling it in Quicktime Pro 7, but that seems to also be slow for Premiere, leading me to think that multiplying the one clip in my test sequence by 20 or more wouldn't be that different.
    Does anyone have any ideas as to how do edit a project like this with a reasonably responsive UI? I don't care if I have to spend hours rendering proxies, or rendering the final copy afterwards, I just want to be able to edit without waiting for minutes when I click on a 20 layer part of the movie. I understand that this is probably an abnormal way of using Premiere, as normally one only uses a few layers at a time.
    Another idea I had was to do the parts of the movie with 20+ layers in AE, and import them in Premiere to get around AE's focus on shorter lengths. But this doesn't get around the issue that its proxying feature, and rendering engine in general seems to be tailoured towards shorter projects. If you are confused, that's okay, I can elaborate more and provide pictures.
    Here's some single videos from the project:
    http://www.momentaryvitality.ca/
    Thanks!

    ATI cards will not work for GPU acceleration of the Mercury Playback Engine and only Nvidia cards with at least 1 GB or RAM and at least 96 CUDA cores will allow for a good experience when using the GPU enable Mercury Playback Engine.  I have a mediocre GT 240 with 1GB of RAM and it rocks. It is much better than using the software only mode. Software only mode is not bad but GPU enabled is so much better. You will have to trust me on that. A new Macbook Pro would not be wise. In fact $900.00 Dell or HP with at least 96 CUDA cores and 1 GB of RAM would be a much better option. You could in theory get a mediocre $600.00 Quad Core from Best Buy and then buy either a $70.00 Nvidia GT 240 graphics card or even a $135.00 GTX 550 graphics card to put in the system. That would work just as well.

  • Adobe AIR for Android as3 codes not working for this one project

    I'm trying to use Accelerometer in my flash game, which works for every other project I'm working on, but for some reason on this one project if I try using it I get errors, using the same code i've used before, such as this. 
    1046: Type was not found or was not a compile-time constant: Accelerometer.
    1180: Call to a possibly undefined method Accelerometer. 
    This is a fairly old file, not that old, so are there files I need to add to it to get it to work, or settings I need to change? This is very frustrating, I don't know what the problem possibly could be. Can anybody help me?

    The error message is indicating it cannot find the class.  Make sure you are importing it:
         import flash.sensors.Accelerometer;

Maybe you are looking for

  • WHY more Event-Dispatching threads in Applet ?

    When an applet is running, I find there are more than one Event-Dispatching Thread (EDT). I observed this through the Java Plug-in debug option -- attaching jdb. Swing Applications requires, access to any GUI object strictly on an Event-Dispatching T

  • A question about string.trim()

    I got a fragment of code as follows: String s = "abcd "; boolean a = (s.trim()=="abcd"); boolean b = (s =="abcd "); Why a is false, b is true?

  • Exporting to Camera from Canopus ADVC 110

    My saga so far: I bought a brand new Canopus ADVC110 Advanced Digital Video Converter for use with iMovie 3.0.3 on my Macintosh G4. I can't understand hardly A WORD of the instruction manual, but with detailed questions and careful coaching from the

  • Screen capture on 5800 XpressMusic

    I'm currently using the ubiquitous "Best ScreenSnap" on my 5800XM. However, this only works properly as long as your screen is in portrait mode. Switch it to landscape mode and you only get part of the screen in the resulting screen capture, like thi

  • I have placed adsense ads on my blog, I can't see them but others can

    I run a small blog for my local writers group, I use wordpress and all my work is carried out via Firefox. The site is supported by adding Adsense. ads. Today all the ads disappeared from my computer. I've check with a friend and they are showing up