Mapping: split different nodes into several occurence of a single one

Hello experts,
I would like to do the following mapping :
Source message :
<Employee1>
<P0000>
</P0000>
<P0001>
</P0001>
<Pxxxx>
</Pxxxx>
</Employee1>
And get this result in an Idoc :
<E1PITYP>
<P0000>
</P0000>
</E1PITYP>
<E1PITYP>
<P0001>
</P0001>
</E1PITYP>
<E1PITYP>
<Pxxxx>
</Pxxxx>
</E1PITYP>
I have tried to duplicate subtrees in my Idoc definition to map each node Pxxxx with a duplicate of field E1PITYP, but the Idoc definition is so big that I am lacking of java memory.
Do you have any other clue ?
Many thanks,
Best regards,
Guislain

For graphical mapping, there's no clue.
That's the proper way to do it (duplicate subtree in the target node).
With XSLT/Java mapping, maybe you could accomplish it with something more simple.
Something like:
<xsl:template match="/Employee">
   <IDOC_ROOT_TAG>
      <xsl:for-each select="child::node()">
         <E1PITYP>
            <xsl:copy-of select="."/>
         </E1PITYP>
      </xsl:for-each>
   </IDOC_ROOT_TAG>
</xsl:template>
Regards,
Henrique.

Similar Messages

  • Splitting HTML forms into several files

    I have an HTML form that has a lot of text inputs. I want to split this form into several pages using JSTL and Struts tags in the following manner:
    main file
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="h" %>
    <h:form action = ...>
    <c:import url=' file1' />
    <c:import url=' file2' />
    </h:form>
    file 1
    <h:text name=' ...' />
    <h:text name= '...' />
    file2
    <h:text name=' ...' />
    <h:text name= '...' />
    The problem here is that the <h:form> is on the "main file" and therefore I get an error in file1 and file2. Is there a way to pass the "prefix=h" variable from the main file to file1 and file2?
    Can anyone help find a solution for this problem?
    thanks,
    sgs.

    Instead of
    <c:import url=' file1' />
    <c:import url=' file2' />
    Can you test with ..
    <%@ include file="file1.jsp" %>
    <%@ include file="file2.jsp" %>
    My guess is that it should work since your stuts form tags in the 2 files will be ultimately compiled as one jsp [in the main one].
    -Rohit

  • Export splits 1 cell into several

    hi
    I would like to export the results of the query:
    select * from user_views;
    when i run the query, the result looks ok, i.e. each row is separate
    when i export this , the content of the views gets splitted into different rows;
    how can i export so the content of each cell stays in 1 cell?
    is this possible?
    thanks in advance for any tips!
    rdgs

    hi
    thanks for your answer; however this format still splits the cell into many rows;
    however i tried one by one every single format in this export and the following one keeps the data in 1 cell:
    html
    my version: 3.0.0.4
    so my issue is solved;
    rgds

  • Split table record into several lines - pdf forms

    hello experts
    im trying to split a table record into several lines in order to present the whole table record in the form.
    for example:
    table T has 4 fields F1 F2 F3 F4
    if the tables has 2 records - R1 and R2 (every record contains 4 data fields) then i want to present my table in the following way:
    R1-F1 R1-F2
    R1-F3 R1-F4
    R2-F1 R2-F2
    R2-F3 R2-F4
    please do not refer me to links - i really need a specific procedure
    thanks ahead to all
    Eyal
    P.S i am using the adobe lifecycle - SFP tran.

    hey everyone
    it has been solved
    for the record:
    subform table (flowed content) contains 2 positioned subforms
    subforn header
    subform lines contains 2 flowed subforms 1 for the first two fields and 1 for the ladt two fields
    thank anyway
    Eyal

  • Split Edge document into several folders.

    I need tio upload to Skura Platform my Edge Project, but the requirements of Skura are stricts. Each HTML into his html folder, the same with JS (js folder), etc. In spite I tried to change the roots in right way, the main HTML doesn´t recognize the links, What can I do? Thank you for for support.

    Thanks for reply, this big XML document is generated from Oracle by JDBC, I found OracleXMLQuery class is very useful, there are two methods
    like : setSkipRows(int rows) and setMaxRows(int num), using these two methods I can split the OracleXMLQuery into some small OracleXMLQuery, the use getXMLDOM() to get the corresponding XML documents.
    Regards

  • Transformation rule routine to split a record into several

    Dear Experts
    I have a small requirement but I am not good in programs.
    I have a DSO with data at year level.
    I want to transfer this data to a second DSO but split the yearly data into Quarters evenly  by copying the source KF value (PRICE) into the Quarters where each quarter value equals the yearly value of the first DSO.
    This is because the KF value is valid for the whole year. Thus, I need to copy this value into each quarter.
    So, I have an Additional field in the 2nd DSO for the Quarter.
    I have mapped the fields in the transformation but not sure how to write the Rule routine to for this additional field in the 2nd DSO.
    Is this possible using a Routine Rule?  Or must use an Start routine?
    Source: FY2010  KF $100
    Target DSO :
    FY 2010   QTR1 KF $100
    FY 2010   QTR2 KF $100
    FY 2010   QTR3 KF $100
    FY 2010   QTR4 KF $100
    Please point me to a suitable routine or kindly give me some code structure to follow.
    Thank you very much.
    Best regards
    Pascal

    Dear Durgesh
    I am unable to find 'Time Distribution' radio button in the transformation mapping screen.
    I tried writting a start routine but not sure which stage in the code structure to insert the following :
    The error message is : tyt_sc_1 is unknown.  But i have checked this forum that this is how its declared. I inserted this data declaration in different places in the code but the error or other error persists.
    Data : wa_source_package type tyt_sc_1,
               i_fq  like /BIC/ZFQ.
    Loop at source_package into wa_source_package.
    i_fq = '1'.
    concatenate wa_source_package-/bi0/fiscyear i_fq into wa_source_package-/bic/ZFQ.
    append wa_source_package  to  Source_package.
    i_fq = '2'.
    concatenate wa_source_package-/bi0/fiscyear i_fq into wa_source_package-/bic/ZFQ.
    append wa_source_package  to  Source_package.
    i_fq = '3'.
    concatenate wa_source_package-/bi0/fiscyear i_fq into wa_source_package-/bic/ZFQ.
    append wa_source_package  to  Source_package.
    i_fq = '4'.
    concatenate wa_source_package-/bi0/fiscyear i_fq into wa_source_package-/bic/ZFQ.
    append wa_source_package  to  Source_package.
    ENDLOOP.
    Please help . Thanks.
    regards
    Pascal

  • Can separate apple ids be set up for individual family members that use different devices?  Several iPads are tied to one Apple ID (email address). Thank you.

    Can separate apple ids be set up for individual family members that use different devices (iPads & iPhones)?  Several family members are tied to one apple id (email address).  Thanks.

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • Editing a message, splitting into several parts, adding attachment to a part

    I feel stupid.
    I just started a discussion with the intention of splitting my post into several parts, but it seems that I can't do that unless I "comment" on my first post. This would be OK, except that I cannot seem to be able to insert anything to these comments but images and urls. I want to attach a zip file, but I have no button to do so. The "Add Attachment" button at the bottom of the message window is appearing only for NEW POSTS (such as this one)!
    Third, I can't seem to be able to edit my post which was submitted a minute ago.
    Help, Help, Help!
    Thanks,
    X. 
    Solved!
    Go to Solution.

    X-) wrote:
    - No attachment for comments
    This is a very recent change and hopefully we get that functionality back.
    X-) wrote:
    - Ridiculously short Edit window
    I would recommend composing and refining the idea/reply offline.
    Personally, I think the edit time window should be extended, but I am not sure how long it should be. It probably should not be infinite to avoid race conditions. For example if there is already an extensive discussion of the current versiont and then the idea suddenly changes 180 degrees, none of the replies would make sense anymore and people even might want to revoke their kudos. Note that I often quote the existing post (as above!) to (1) make it clear what I am replying to and (2) to keep the answer clear even if you would have edited the above sentences into something completely different in the meantime.
    Historically, I think the edit window was forced to be very short to allow reasonable syncing with the newsgroup mirrors (e.g. LabVIEW forum vs. comp.lang.labview), but this is no longer an issue. What would be reasonable? 1 hour? 1 day?
    Should existing repliers be notified of edit changes?
    For longer edit windows, we might also need an versioning control mechanism (e.g. like in wikipedia). where older version can be inspected by the public.
    Minor edits can be done by the moderator at any time. This should be reserved for simple mistakes (e.g. forgetting a "not", inverting the actual meaning, or changes in the title to make it clearer.)
    In general, I agree that things can be improved. We just need to find the sweet spot.
    LabVIEW Champion . Do more with less code and in less time .

  • Invoice A/R Payment Split Transaction into Several GL Accounts

    Hi,
    I got following message from SAP Support:
    The SplitTransaction property is not included in product develop plan by now.
    By SAP Note 1028874, we would like to ask you to post your requirement in our SAP Business One Product Development Collaboration forum and not via message:
    /community [original link is broken]
    Please refer to Note 1028874 for more information.
    ISSUE
    Sample 2, Bank transaction:
    I have build a Payment routine in Invoice A/R.
    I am doing a Bank transfer in Payments regarding payment with Interact (direct Payment from Bank
    account)
    Here in Canada you have the possibility to withdraw money: Sample invoice cost $100, you can pay
    $200 and receive $100 in cash.
    Sample I like to do:
    GL Account A $200 (Account Number, Debit )
    GL Account B $100 (Account Number, Credit)
    GL Account C $100 (Business Partner, Credit)
    Any suggestion?
    In the Payment describtion I can do a  vPay.SplitTransaction = 0; but this is not working according to SAP Support.
    SUMMARY
    I like to do a payment and Split the Transaction into several accounts; like Journal Entry with reconciliation of the Journal Entry and the Invoice.
    Thank you,
    Rune

    Hi Peter,
    I do not want you to promote the future code; but the code in SDK as today.
    Sample, it would look something like the code below from SDK help code; but please change the code to work as your sample.
    Thank you,
    Rune
    vPay.Invoices.AppliedFC = 0
    vPay.Invoices.AppliedSys = 0
    vPay.Invoices.DocEntry = 8
    vPay.Invoices.DocLine = 0
    vPay.Invoices.DocRate = 0
    vPay.Invoices.InvoiceType = 13
    vPay.Invoices.LineNum = 0
    vPay.Invoices.SumApplied = 5031.2
    Call vPay.Invoices.Add
    vPay.CardCode = vmp_CardCode_string;
    vPay.DocDate = DateTime.Now;
    vPay.JournalRemarks = "Incoming - Payment Bank Transfer";
    vPay.TaxDate = DateTime.Now;
    vPay.TransferAccount = vmp_BankAccount_string;// "_SYS00000000343";
    vPay.TransferDate = DateTime.Now;
    vPay.TransferReference = vmp_CardCode_string;
    vPay.TransferSum = vmp_Amount_double;
    vc_Message_Result_Int32 = vPay.Add();

  • How to transfer data between different nodes of the same context.

    Hi experts,
       I am working on an application in ABAP webdynpro in which i want to copy data from one node to another node in the same context of a view and both the nodes are mapped with different nodes of context of component controller. How to code this. Please help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Hi Vaibhav,
    you are in the wrong forum.
    BTW: Copying value of nodes is done automaticcally if you connect the nodes.
    Regards Mario

  • Copy one company code (existing one) into several target company codes (

    All,
    is there a easy method available to copy one company code (existing one) into several target company codes (new ones). The SAP standard functionality does not support this task.
    Kind regards
    Juergen Merwa

    Hi,
    Copy company codes can be done in two ways.
    1. To copy basic data i.e, through transaction ox02
    2. To copy company code relevant parameters (global) & GL accounts through EC01.
    If your option is point 1. then the best thing i suggest is go for transaction scat and create a test case and record the transaction ox02.Then afte that download the variant and fill the necessary fields accordingly and try to upload.

  • Split a Shipment costs document into several MM document by carrier

    Hi gurus,
    I am trying to split a Shipment costs document into several MM document by carrier. We need the system to search for an existing MM order if not found create a new one (the system is set to do it by V_TVFT-BESER value “A”).
    I have a route with different stages. These stages/steps have associated different carriers (or partners).
    When these data is transferred to MM purchase order the system gives an error with the message no. M7107:
    Enter goods receipts for vendor 103962 only
    Message no. M7107
    The system does the purchase orders but not the 101 movement.
    Does someone met this problem before?
    I am in 700 SAP version with package 12
    Regards.
    Mikel

    Hi,
    Check out BADI BADI_SCD_PO_SELECT. This allows you to control which purchase order is used for shipment costing.

  • Mapping, splitting linen in several lines

    Hi,
    I have the following situation.
    The source structure contains a field that can be up to 4000 characters long,
    The target structure contains a field than has a length of 132.
    These fields have to be mapped with each other but how can I split the field of 4000 characters
    into several lines of 132 characters long?
    kind regards Maarten

    Hi,
    You can do this with a UDF.
    Create a advanced UDF of type Context and use the following code.
    while(a[0].length() >132)
    String tem = a[0].substring(0,132);
    a[0] = a[0].substring(132,a[0].length());
    result.addValue(tem);
    Note that this UDF splits only for the first occurance of the source field i.e. a[0] if you require for all the occurance loop through the source field and also the single target field should have a unbounded occurance.
    Thanks
    SaNv...

  • ITunes splits songs from the same album into several albums, all sort fields appear to match. Any suggestions on how to put them in one album?

    iTunes sometimes splits songs from the same album into several albums, all sort fields appear to match. Any suggestions on how to return them to the proper album?

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    N.B. Giving different things the same sort value (or indeed vice versa) tends to lead to trouble.
    tt2

  • I have an old Frank Sinatra CD called duets which I have imported but it has separated into several different albums one per track?How can I merge into the one album?s

    Can somebody advise how to remerge what has been imported as several different tracks into the original Album format?

    If you select the tracks all together in iTunes/ Songs then go to File/Get info you will be asked "Are you sure you want to edit information for multiple items?" Go ahead and you can make them into an album, putting in the artist name, etc.

Maybe you are looking for

  • Color correction canon D7

    I just shot a commercial  on a Canon D7 1920x1080 24p. I have a Panasonic BT1700W. My colors on the monitor differs more with my apple screen than when I use my Varicam2700. What color bar settings do I have to use in FCP to correct as best as possib

  • Purchase requisition's Workflow :

    Hi all, i must implement the standard workflow for purchase requisition, i use the number 20000077 - Workflow for overall release of requisition. I would like to know if it's possible to have many responsibles for a code release in release strategy o

  • Can't start oracle wiki and blog application right after installation

    I've been setting up the wiki and blog application 10.1.3.4.0 on weblogic server 10gR3, windows 2003 server SP2 and on trying to launch the application using the url format http://host_name:port/owc_wiki I get the following error Error 404--Not Found

  • Reversal Indicator field

    Hi, I have added Reversal Indicator(BKPF-XREVERSAL) field to my layout in FBL3N, but this field is not populating the values by default whenever I execute the report. It is populating the values only when I go the change layout option. Why system is

  • Account trouble   help!!!

    I got a new ipod nano for christmas. when I tried to redeem a gift card on itunes I needed to create an account. I made it to the point where you enter a credit card. Heres where the problem arrises I don't have a credit card to enter. So I need to k