Content Conversion- Same keyfield value for two different sub structure

Hi,
I have a scenario where the key field value for the 2 substructure of record structure is same.
MY XML structure is like this :
<documentName>
   <recordset>
<Header>
    <field-nameA1>
    <field-nameA2>
    <field-nameA3>
<ITM1>
   <field-nameB1>
   <field-nameB2>
   <field-nameB3>
<ROW1>
   <field-nameB1>
   <field-nameB2>
   <field-nameB3>
<ITM2>
   <field-nameB1>
   <field-nameB2>
   <field-nameB3>
<ROW2>
   <field-nameB1>
   <field-nameB2>
   <field-nameB3>
The sample text file is given below where line no. 3 and 5 are different substructure(For ROW1 and ROW2 respectively) with same keyfield value.
"HDR",399,"file",20050302,100642,3289
"ITM1",2,3,4,5,6,7,8,9,10
"ROW",3,4,5,6
"ITM2",2,3,4,5,6,7,8,9,10
"ROW",7,8,9,10
After content conversion I get a XML structure in which there is no ROW2 and all data within the fields of ROW2 are put under ROW1 as the key field values are identical.
In the records only the first field is constant (e.g. ROW).
How to handle such a scenario?
Regards
Satish Chauhan

Unless you can somehow expand the key, I don't know that this is possible.  The key implies uniqueness - and in your case, unfortunately, it isn't.  Is there any way to edit the structure to make it more unique for you?  Do you have any control or ability to change that?
Maybe if you add unique keys in your mapping, you can strip them off with content conversion on the way out using the parameter keyFieldInStructure=ignore?

Similar Messages

  • Same number range for two different series groups?

    Dear all,
    There are two scenarios
    1.Normal export under bond case, series group is 20 and number range maintained,running number is 300016
    2.Another scenario,where ARE1 document generation for Deemed exp customer(already customised) , series group is 30.
    But, client requirement is , for this second scenario also, system should pickup running number range of series group 20(under bond case)  as per excise legal requirement
    Ie running number is for series group 20 is 300016
    For the above deemed exp case (second scenario)it should pickup 300017
    And again when they do under bond case(first scenario), it should pick up 300018 like that
    Is it possible to maintain the same number range for two different series groups(20 and 30)?
    Even if you maintain the same number range for 30, as per running number range of 20
    Will the system update simultaneously the same number range for 20 and 30 series groups?
    Please suggest the way.

    With two different series groups, it is not possible to have the same number range. Even if you maintain it, they will be treated independently.
    Normally, you should not use different series groups if the same number range has to be used. In fact, the concept of series group has been developed to ensure that number ranges can be maintained separately.
    Regards,
    Aroop

  • How to use same RESULT SET for two different events

    hello friends,
    I need to use same result set for two different events. How to do it.
    here My code,
    private void jComboBox1ItemStateChanged(java.awt.event.ItemEvent evt) {
    // TODO add your handling code here:
    try
    String selstate,selitem;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:tourismdatasource","sa","");
    selstate="select * from tab_places where state=?";
    PreparedStatement ps=con.prepareStatement(selstate);
    ps.setString(1, jComboBox1.getSelectedItem().toString().trim());
    ResultSet rs=ps.executeQuery();
    if(rs.next())
    jTextField1.setText(rs.getString("place_ID"));
    jTextField2.setText(rs.getString("place_name"));
    jTextField3.setText(rs.getString("category"));
    byte[] ba;
    ba=rs.getBytes("image");
    ImageIcon ic = new ImageIcon(ba);
    jLabel6.setIcon(ic);
    in=true;
    catch(ClassNotFoundException cfe){JOptionPane.showMessageDialog(null, cfe.getMessage());}
    catch(SQLException sqe){JOptionPane.showMessageDialog(null,sqe.getMessage());}
    Now i need the same Result Set(rs), in another event(jButton6ActionPerformed),
    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    }  how do i get dat resultset,
    help me out

    One post wasn't enough?
    {color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5246634{color}
    db

  • Will a sequence return same value for two different sessions?

    Is there a possibility that a sequence will return same value to two different sessions when it is referred exactly at the same instance of time?

    @Justin... Thanks for your insight; indeed, we too feel this shouldn't ever happen and never heard of it either, but there it is. (No, we haven't logged a TAR yet -- whatever that is -- partly because it didn't occur to us and partly because we only recently came across the issue and sensibly want to do some testing before we cry foul.)
    However, the code is pretty straight-forward, much like this (inside a FOR EACH ROW trigger body):
    SELECT <seqname>.NEXTVAL INTO <keyvar> FROM DUAL;
    INSERT INTO <tblname> (<keyfield>, <... some other fields>)
    VALUES(<keyvar>, <... some other values> );
    (where <tblname> is NOT the table on which the trigger is fired). This is the only place where the sequence is ever accessed. The sequence state is way below its limits (either MAXVALUE or <keyfield>/<keyvar> datatype size).
    In this setup, end users sometimes got an out-of-the-blue SQL error to the effect that uniqueness constraint has been violated -- as I said, we used to have a unique index on <keyfield> -- which leads us to assume that the sequence generated a duplicate key (only way for the constraint to be violated, AFAIK). We released the constraint and indeed, using a simple SELECT <keyfield>, COUNT(*) FROM <tblname> GROUP BY <keyfield> HAVING COUNT(*)>1 got us some results.
    Unfortunately, the <tblname> table gets regularly purged by a consumer process so it's hard to trace; now we created a logger trigger, on <tblname> this time, which tracks cases of duplicate <keyfield> inserts... We'll see how it goes.
    @Laurent... winks at the CYCLE thing Our sequence is (needless to say) declared as NOCYCLE and the datatype is large enough to hold MAXVALUE.

  • How can I define same Price Conditions for two different Sales Deals ??

    I need to define for the same price condition, lets say ZPMP, two different values or condition records, for two different sales deals and the same valid dates
    For example, Sales deal 1, ZPMP equal to USD 15 and valid dates from 04/15/08 to 04/30/08.
    Another condition record for Sales deal 2, ZPMP equal to USD 20 and valid dates from 04/15/08 to 04/30/08
    How can I do this.
    Thanks in advance.

    While creating condition tables, you have the option to create different key combinations. So if you want the system to take different condition records for different sales deals, there has to be a point of differentiation between those 2 sales deals.
    This can be done in one of the following ways:
    by giving customer specific prices
    by giving material specific prices for a particular customer etc
    All this can be defined as different key combinations while creating the condition tables. For each key combination, you can specify different condition records, so that the system is able to pull prices according to the requirement.
    But if the sales deals are entirely similar (that is even the validity dates, delivery dates etc are also same), and there is no differentiating factor, then you will have to manually input the prices.
    Do get back if you require more clarification. Please reward points if useful.
    Regards,
    Swapna

  • How to link the same horizontal page for two different vertical pages without duplicate them?

    Hey guys,
    Is there a way to link the same horizontal page on two different vertical pages without duplicate the horizontal page?
    I have a doublepage of a book splitted in two parts in different vertical pages but i want link the fullsized image in the horizontal page for both of them. Got that? hahaha
    Thank you all

    Confusing But interesing.
    I think it's possible. I have a idea. It will need one advanced trick.
    To explain it, I need test simply haha.

  • Using Same Bank Account for two different company code

    Can we use the same bank account number and ABA key for two different company codes? Both the company codes are in USA and with the same currency.
    Scenario is to separate one division of the company code to a separate company code. Client wanted to know if we can use the same bank account so that they dont have to open another bank account

    The system will allow the same ABA and bank account on two different company codes.  However, if you use electronic bank statement (EBS) functionality (or plan to use it in the future), you will not be able to import bank statements for the account if it exists on two company codes.  The EBS program uses the house bank/account ID tables to assign a company code to the bank statement.  If the account exists for more than one company code, the program cannot assign a company code and it will give an error.
    Regards,
    Shannon

  • Same Apple ID for two different country accounts?

    Is it possible to use just one Apple ID for two different iTunes accounts? I've recently located to Australia from the uk and want to run an iTunes Store account in each but with just one apple id and email address. Can it be done?

    You have to be in a country to use its store (and an account can only have one billing address on it), so whilst you are in Australia you can only use the Australian store, you cannot use the UK store (including redownloading past purchases). You can either update your billing address on your existing account to have your Australian address on it, or create a new account with your Australian billing address on it
    Changing country on an account : Change the country of your iTunes Store, App Store, iBooks Store, and Mac App Store account - Apple Support.

  • Ability to set same Start date for two different discrete Job in ASCP

    We have two ATO Items and these to be built & shipped together which have different leadtimes, How we can have achieve same start date when we release from ASCP.
    E.g: ATO_Model1*24234 SO Line 1, the rolled up LT=10Days
    ATO_Model2*325325, the rolled up LT=3
    So, under normal scenario ASCP will suggest two different release dates based on LT. So, I would like to start both Job togther considering the max leadtime.
    Hoping for your expert advice.
    Thanks
    Edited by: user604737 on Nov 10, 2010 9:55 AM

    Hi,
    964188 wrote:
    It is a date
    Such as
    10/31/2012 11:55:03 PMThen, as Hoek says, you don't want TO_DATE. For example:
    WHERE   TRUNC (start_datetime) = TRUNC (SYSDATE - 7) or the more efficient
    WHERE   start_datetime >= TRUNC (SYSDATE - 7)
    AND     start_datetime <  TRUNC (SYSDATE - 6)Also, it doesn't look like the EXISTS sub-query is corelated to the main query. That's almost certainly a mistake.
    If you're still having trouble, post your revised query, a little sample data (CREATE TABLE and INSERT statements). Point out where that query is givimg the wrong results, and explain how to get te right results.
    See the forum FAQ {message:id=9360002}

  • How to Use Same Navigation Panal for two different query

    Hello,
    My requirement is I have to display three different report in same web template in three different tab.
    I have created a custom web template with tab.
    in each tab i have assigned three different analyser table and assigned three different report in each data provider. once I run the report that works fine, each tab is displying each report seperately.
    The problem I am having here with navigation panal. Navigation panal is working ok for 1st report, but when I go to the 2nd  tab for  2nd report nev attribute itself is not displying. is there any special setting that i am missing?
    If any one know about the same pls help me
    Thanks
    Samit

    Hi
    When u select the Generic navigational block to ur template. select that and right click go to properties, in the lift side of u web item will come in that last but one option is Affected data providers is there double click on the list u will get the option
    Shashi

  • Same cost booking for two different cost center

    i am facing a problem.
    the problem is that here same cost is book under two different cost center @ the ratio of 50%.
    how it is possible.

    Hi,
    What i understand from your question is that in one FI document there are 2 cost center against same cost element with 2 different line.
    If it is so then it is correct.
    User has enter same cost element twice and enter different cost center and dividing the cost equally.
    Regards,
    Shayam

  • Same error code for two different errors

    I have a simple state machine with a few states, two of which are read ini file and read GPIB data. I also have an error handling state where I would like to handle all errors. Errors are checked for on each iteration of the loop, passed by shift register. However, I can't just unbundle the error cluster and wire the error code to a case structure because if the ini file doesn't exist (error code 7) I want to exit the program. But if I get error 7 from the gpib (Nonexistent GPIB interface) I want the program to continue running. What is the best way to track where the error is coming from so I know how to handle it when two error codes for different errors have the same error code value?
    Message Edited by for(imstuck) on 01-27-2010 03:47 PM
    CLA, LabVIEW Versions 2010-2013

    Another option is to check the existence of the file before opening the config file, then exit the program if nessecary. Relying on error codes might be a bad option.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How can we use same material code for two different sales area

    Hello friendsu2026
    Hope you all doing well
    I am facing a problem and I will be thankful to all of you, for your suggestions
    Issue:
    I have a *material created in 3000/10/19 for domestic purpose *,now our company has decided to export it for that we have created a new sales are 3000/13/20 for export,we cannot create the salesa are as 3000/13/19 due to some  company issues,
    Is there any way how I can use the material already in 3000/10/19 into new sales area 3000/13/20.
    Will common distribution channel and division concept will be applicable here
    As the material is same,and we donu2019t want to go for any more new material code. *
    Thanks
    Siddharth Sharma

    Hi Sharma,
    when a material is used in domestic and exports.....i hope it should be seggreagated based on dist chnl.......but not division.
    because material is Division specific. it can be there in only one division. like mother child relation.
    that is the reason why...... it is maintained inside BASIC DATA...... but not in input screen while creating material master.[unlike dist chnl]
    because a material can be in multiple dist chnl....but not multiple division.
    I feel only alternative is creating new material if you are already decided to devide the sales by division for domestic and foriegn.
    Purpose of common dist chnl/div is to maintain pricing/condition in one common whenever you change master data.......
    hope this gives you the clarity
    regards
    Satya.SCM

  • Having the same itunes library for two different users on the same computer

    ok guys i've looked at the previous topics and replies to this subject. None of these seem to work for me with itunes 7. When I go to itunes and edit-preferences-advanced-change, the only folders that are recognized is all of my personal folders and none of my shared folders with my other user. Please tell me how to do this! i need step by step instructions please--I am new to itunes

    i seen that link on another discussion. I have tried it and that does not work. I transferred the itunes music folder (not the others per the directions) to my shared folder. When I go to preferences-change, my shared folder isn't one of the folders to pick from. When i moved the itunes music folder to the shared folder--another empty itunes music folder is created. is there another way?

  • Same BP number for two different users

    Recently we are facing an issue where user is not able to do transactions in SRM portal due to some error. We checked and found it is due to BP issue. Same BP number has been assigned to other user too.
    How is it possible? How can be this issue rectified?
    Any suggestions on the same are appreciated !!

    Hi Saurabh
    Can you check the options below to see if it helps ..This issue crops up sometimes due to some overlapping data in the HR system ..
    1. In BP go to relationships and delete the relationship which you dont want ..
    2. In Report HRZLYSYNC click on repair and see if it updates the changes ..
    Hope that helps a bit
    Regards
    Vinita

Maybe you are looking for

  • Make animated rollover in Flash for Muse buttons

    Hello. I am new to Adobe Muse, but more familliar with Flash. I am also new to HTML. I am wondering if it is possible to make a rollover animation in Flash to play as a rollover animation for buttons in Muse. I would like it so that when the mouse cu

  • Pls Help with this

    Hi, I need a help to resolve my problem.Actually i have a JSP page with a list box. When i select some value in the list box, appropriate values must list out according to the selected value.And i have a submit button to process that jsp page. I wrot

  • Trouble importing movie directly to external hard drive

    I have an externall hard drive that I purchased for the purpose of starting an iMovie project on it and then importing movies directly from my camera onto it (via my iMac). I have read on the discussion boards that other people are able to do this. W

  • Unable to cancel account!

    I am unable to cancel my plan. I keep pressing "cancel plan" and it keeps popping up with the same thing saying "contact customer care" or "see if you qualify for a refund". I am still unable to cancel my account, and I need to do so asap. Thanks!

  • Repeated Faults - 7 faults in 7 months - who arran...

    Any help appreciated !!! I've had repeated faults over the last couple of years, and these are repeating more frequently now.  The root cause is that our phone line lies in a ditch for part of it's journey to our house, and is regularly either waterl