Adding up of amount fields in the xml payload

HI ,
I have a issue on hand in mapping .
I am using message mapping to map the source to the target.
The issue is I have a item data in the source message which contains the Amount field . also it has some charge nodes also under it which also has a amount field.
what i need to do is to add all the amount fields from the charge item into the amount of the item field and then map it to the target.
the Source struct is some what as below
Item
  |->Amount
  |-> ChargeItem
        |-> Amount
  |-> ChargeItem
        |-> Amount
Item(2)
  |->Amount
  |-> ChargeItem
        |-> Amount
  |-> ChargeItem
        |-> Amount
The target required is somewhat like below
Item
|-> Amount (item(amount) + charge (amount))
Item (2)
|-> Amount (item(amount) + charge (amount))
Hope u can get the issue
Thanks
Nikhil

Hi Bhavesh,
Thanks for the reply. but i have a question.
this will deal with the amount of the charge item but what about the amount of the amount field in item.
how can we take care of that too. as cannot map more than 1 field to the target.
and more over we have to add that field too to the sum of charge item
Thanks
Nikhil

Similar Messages

  • Any way to validate the Mandatory field in the XML file

    Hi,
    Is there any way to validate the Mandatory field in the XML file. I created an xml type table xml_validate based on the schema and insert the XML files with statement.
    INSERT INTO xml_validate(warehouse_id,xml_file_name,warehouse_spec)
    Values (agreementid,p_filename,XMLTYPE.createXML(l_clob));
    It is validating the data types, extra tags etc but not validating the missing of the manadatory tag/value.
    Thanks in advance
    Rizly

    Hi Ants,
    Yes, I was not doing the strict validation, after searching the forum i understood that was the reason. So i did this way,
    begin
    for x in (select myColumn from myTable where WAREHOUSE_ID=41) loop
    x.myColumn .schemaValidate();
    end loop;
    end;
    The out put is:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00011: internal error: LsxvPushCandidate array overflow
    ORA-06512: at "SYS.XMLTYPE", line 345
    ORA-06512: at line 3
    My i know more information about this error, especially
    LSX-00011: internal error: LsxvPushCandidate array overflow
    Thanks in advance
    Rizly

  • How to club the amount field for the particular customer from file

    Hi ,
    In my BDC i am getting the Amount field which is need to be put in the Header data . For 1 Customer there are more than 5 line in amount field in the Excel file.
    For the Particular Customer , I need to club all the amount ffield and put it into the Heade data for the customer.
    How to do this .
    Thanks

    got answer

  • Oracle BI Administration Tool 11g - Fields have the XML data type

    I'm using Oracle BI Administration Tool 11.1.1.3.0 and I need to import Metadata an Oracle table where same fields have the XML data type.
    Please, there is someone can tell me what I must do to define these fields in Administration Tool?
    Regards.

    Hi,
    in u r RPD -->Try to select import Connection Type as : XMLA then give it the URL of u r analysis services 2000 then u can able to import it.
    refer:
    http://www.biblogs.com/2008/02/01/obiee-hybrid-olap-reporting-using-ms-analysis-services-oracle/
    http://www.rittmanmead.com/2007/11/essbase-integration-with-obiee-101331/
    Thanks
    Deva

  • Sum of amount field in the Query

    Hello folks,
    I have a amount field in the query, along with the amount field I also need to show sum of all the rows for this amount fields, can some one guide which is best way of doing it?
    Thanks,
    KK

    Thanks for the response's...Rama, Prasad and Sandesh!
    I have changed the Property of the Amount field (SAP Standard Infoobject) to Calculated Result as 'Summation' but when I tried to save the changes in Query designer I am getting following error
    runtime error '91'
    Object variable or with block variable not set
    runtime error '4XX'
    ActiveX component can't create object
    And its disconnecting from BEX Server...how can I resolve this error?
    Thanks,
    KK
    Edited by: kumar K on Aug 21, 2008 10:46 AM

  • To the Adobe MUSE team....Have you considered adding an "Upload File" field for the contact forms?

    To the Adobe MUSE team....Have you considered adding an "Upload File" field for the contact forms?

    But seriously...
    Is there any development being done for this?  I have a careers section on our website that I have been asked to "make easier for applicants" (right now, there is a link that just opens an email).  I'm going to make a full version of an application, but I would really like a way to upload resumes and CV's. 
    I'm going to have to look into some kind of service if this isnt something on the Muse radar.  A reply of some kind would be fantastic! 

  • Getting BAM Error: BAM-06008: The XML payload is invalid; extra contents we

    Hi All,
    Version: 11.1.1.4
    We are getting the BAM Error: "BAM-06008: The XML payload is invalid; extra contents were found" after I added a another field to a BAM Object. I can see the new field in BAM and I can also see it when I pull up and map to a BAM adapter in my SOA composite. However, when I have the process send a payload with the newly added field it fails with the above error. However, if I add a new data object in BAM with the field it works fine. What would be causing BAM to think that the newly added field should be in payload?
    Any suggestions would be greatly appreciated.
    --S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    If the layout of the data object changes then you need to restart BAM server for changes to take effect. Also make sure, your mapper file isn't adding extra elements than expected.
    Thanks
    Jahangir Pasha

  • BAM-06008: The XML payload is invalid; extra contents were found.

    Hi All,
    Version:11.1.1.6
    We are getting the BAM Error: "BAM-06008: The XML payload is invalid; extra contents were found" after I added a another field to a BAM Object.I have added that extra field to corresponding data objects .wsdl file as well as in the .xsd. I can see the new field in the BAM DO. However, when I used to send a payload with the newly added field it fails with the above error. However, if I add a new data object in BAM with the field it works fine.
    Why  am  I getting this error?
    Thanks,
    Rahul

    I have followed the following steps:-
    1.Make entry of new field in ".wsdl" file which is in the BAM folder.
    2.Make entry of new filed in ".xsd" file.
    3.Make appropriate mappings in ".xsl" file corresponding to the sensor's action.
    Initially i was only restarting BAM and was facing above mentioned error. After restarting SOA as well as BAM server, it started working.

  • In PI how do I convert the XML payload (input) to a text file and send out

    I am extracting data from SAP and sending thru XI / PI to a file (non-sap system).
    On the receiving end, I need the file to be a text file, with one row for each "FTZ_Row concatenated_data" tag in the input.  It needs to be just a plain text file with no XML tags.
    Currently the file gets one record which matches exactly to the XML payload below.
    I want it to create a file that looks like this :
               CONCATENATED DATA 1
               CONCATENATED DATA 2
                012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12
    here is the payload going thru XI
      <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
      <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
      <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
      <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
      </n0:FTZ_Concatenated_Row>
    thanks
    jay

    thanks for the input but I am still having issues - I get an empty file when I use the content conversion option.
    My payload coming into XI is :
            <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
    <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
    <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
    </n0:FTZ_Concatenated_Row>
    Here is the layout of my data type - I am using the same for input & output
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" targetNamespace="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone">
       <xsd:complexType name="FTZ_Concatenated_Row">
          <xsd:sequence>
             <xsd:element name="FTZ_Row" maxOccurs="unbounded">
                <xsd:complexType>
                   <xsd:attribute name="concatenated_data" type="xsd:string" />
                </xsd:complexType>
             </xsd:element>
          </xsd:sequence>
       </xsd:complexType>
    </xsd:schema>
    I mapped these items :  FTZ_Concatenated_Row & FTZ_Row & concatenated_data
    I set up my content convesion with :
      recordset structure   FTZ_Row
    FTZ_Row.fieldSeparator     #
    FTZ_Row.endSeparator     'nl'
    I am not sure why the following row looks like this ??
        <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    I thought FTZ_Row would be one tag and "concatenated_data" would be another one.
    any help would be appreciated.
    I have read many entries/blogs/etc in SDN but and tried many different setups, but nothing is working.
    thanks

  • Logging the XML payload in Oracle Sales Cloud

    How can xml payloads for inbound and outbound web service call be logged in Oracle Sales Cloud?
    We need to capture the xml payloads as part of web service calls (inbound/outbound) and store it on server/objects.
    Is it possible to achieve this and if so how can this be done?
    Thanks,
    Abhishek

    For outbound invocations from Sales Cloud, how are you invoking the web services today?
    If you are using groovy scripts to invoke, you can using a println after the invocation and view the messages through the "Runtime logging" feature.
    This should work if you want to view the payload for debugging purposes
    However, I also see that you need to store the response. Are you trying to implement auditing?

  • Splitting the XML Payload in BPEL

    Hi
    <Sales order>
    <order>
    <orderno>1200</orderno>
    <ordered details>testing</ordered details>
    </order>
    <order>
    <orderno>1201</orderno>
    <ordered details>testing2</ordered details>
    </order>
    </sales order>
    i need to split the XML payload and send the different request.
    Example 5 sales order details are there in the XML payload. i need to send 5 different request.
    Can you anyone guide me using BPEL.
    Thanks Rahul

    http://clemensblog.blogspot.com/2006/03/bpel-looping-over-arrays-collections.html
    http://oraclebpelindepth.blogspot.com/2008/09/arrays-in-bpel_21.html
    with the while loop you can loop over your orders in the array, and for every order do for example the invoke to your other service

  • How to get the XML Payload of called process from calling process?

    I have two SOA processes say process A and process B.
    Process B is called by process A.In process A I, am using the getRequestMessage() method in Java code to get the XML payload of process A.
    But i want the XML payload of process B in process A.How can i achieve it?

    Doug,
              I used the property loader method but I could not load the limits of any sub sequence call calling an external sequence file.
    I took the FlowRate_test.seq example from the NI Example folder "C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2.1\Examples\PropertyLoader\LoadingLimits\LimitsFromExcelFile\UsingCVI". I created a sequence called PumpTest.seq in the same folder path. I then moved the Pump Test step from the FlowRate_test.seq to the PumpTest.seq. Now created a sequence call in the FlowRate_test.seq and called the PumpTest.Seq as the module path. When I execute the FlowRate_test.seq , I get the error as shown below:
    Attached is the Flowrate_Test.seq and the PumpTest.seq which should be there in the folder path "C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2.1\Examples\PropertyLoader\LoadingLimits\LimitsFromExcelFile\UsingCVI".
    Let me know whether I am doing something wrong in this method. 
    My idea is to alter the runstate variable High and Low of Pump Test in the PumpTest.seq and then run the Flowrate_Test.seq.
    Attachments:
    PumpTest.seq ‏6 KB
    FlowRate_test.seq ‏11 KB

  • Values are generating in the prepopulated fields from the XML data sourece I binded to the fields

    Hello,
    Fairly new here.
    I am trying to insert the payrate and name values in a pdf document on LiveCycle.  I created the XML file from our access database (about 1100 names), created the text fields using the same field names in the XML file, connected the XML file in liveCycle, binded  the fields but when I convert to PDF nothing is there.  I think my issue is the script in the XML file.  Has anyone else come across this issue. Please help me with what I am doing incorrectly.
    I am hoping to just hit a button and 1100 documents will generate with the two fields prefilled. Am I dreaming?
    Thank you in advance for your time.

    Are the data values wildy different? i.e. Completely wrong, or are they off due to rounding?
    I would start with member formulas and make sure that any in the BSO cube have been re-created in the ASO cube.
    I guess, also double check that the level 0 export loaded, with no rejects.

  • Importing XML file to InDesign : making a bloc clickable using an url field from the XML

    Greetings, here is what I want to do, I want to know if it is possible and possibly how.
    The idea is to make one big InDesign document in which I would import multiple xml flies such as the code sample given below
    Then apply some InDesign styles to display certain fields in a certain way.
    The document is eventually rendered into a PDF file that will be clickable.
    The trick is I want every block to be clickable and target the URL given in the XML <url> </url>
    Can you help me ?
    XML sample :
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><Root><bloc-texte><num-conf>1270</num-conf><url>http://www.cndp.fr/crdp-nancy-metz/index.php?id=3905</url>
    <liste-logos>Nathan  CDDP57  DSDEN </liste-logos>
<aff-type>Salon</aff-type>
<aff-titre>Salon des ressources éducatives de Moselle</aff-titre>
<aff-ss-titre>conférence de Françoise Picot: production d'écrits C2,C3</aff-ss-titre>
<aff-intervenant>Françoise Picot</aff-intervenant>
<aff-qual-intervenant>IEN auteur Nathan</aff-qual-intervenant>
<aff-intervenant></aff-intervenant>
<aff-qual-intervenant></aff-qual-intervenant>
<aff-intervenant></aff-intervenant>
<aff-qual-intervenant></aff-qual-intervenant>
<aff-ville>Montigny lès Metz</aff-ville>
<aff-lieu>ESPE de Lorraine</aff-lieu>
<aff-salle>des fêtes et Gymnase</aff-salle>
<aff-date>mercredi 26 février 2014</aff-date>
<aff-heure-debut>14&#8201;h</aff-heure-debut> – <aff-heure-fin>17&#8201;h</aff-heure-fin>
<aff-url>http://www.cndp.fr/crdp-nancy-metz/index.php?id=3905</aff-url>
<chem-type>Salon</chem-type>
<chem-titre>Salon des ressources éducatives de Moselle</chem-titre>
        <chem-ss-titre>conférence de Françoise Picot: production d'écrits C2,C3</chem-ss-titre>
<chem-intervenant>Françoise Picot</chem-intervenant>
<chem-qual-intervenant>IEN auteur Nathan</chem-qual-intervenant>
<chem-intervenant></chem-intervenant>
<chem-qual-intervenant></chem-qual-intervenant>
<chem-intervenant></chem-intervenant>
<chem-qual-intervenant></chem-qual-intervenant>
<chem-ville>Montigny lès Metz</chem-ville>
<chem-lieu>ESPE de Lorraine</chem-lieu>
<chem-salle>des fêtes et Gymnase</chem-salle>
<chem-date>mercredi 26 février 2014</chem-date>
<chem-heure-debut>14&#8201;h</chem-heure-debut> – <chem-heure-fin>17&#8201;h</chem-heure-fin>
<chem-url>http://www.cndp.fr/crdp-nancy-metz/index.php?id=3905</chem-url>
<web-titre>Salon des ressources éducatives de Moselle</web-titre>
<web-ss-titre>conférence de Françoise Picot: production d'écrits C2,C3</web-ss-titre>
<web-intervenant>Françoise Picot</web-intervenant>
<web-qual-intervenant>IEN auteur Nathan</web-qual-intervenant>
<web-intervenant></web-intervenant>
<web-qual-intervenant></web-qual-intervenant>
<web-intervenant></web-intervenant>
<web-qual-intervenant></web-qual-intervenant>
<web-url>http://www.cndp.fr/crdp-nancy-metz/index.php?id=3905</web-url>
<web-puissance> </web-puissance>
<web-qual-puissance></web-qual-puissance>
<web-puissance> </web-puissance>
<web-qual-puissance></web-qual-puissance>
<web-puissance> </web-puissance>
<web-qual-puissance></web-qual-puissance>
<web-titre-verso>Salon des ressources éducatives de Moselle</web-titre-verso>
<web-ss-titre-verso>conférence de Françoise Picot: production d'écrits C2,C3</web-ss-titre-verso>
<web-date>mercredi 26 février 2014</web-date>
<web-heure-debut>14&#8201;h</web-heure-debut> – <web-heure-fin>17&#8201;h</web-heure-fin>
<web-ville>Montigny lès Metz</web-ville>
<web-lieu>ESPE de Lorraine</web-lieu>
<web-salle>des fêtes et Gymnase</web-salle>
<carton-titre>Salon des ressources éducatives de Moselle</carton-titre>
<carton-ss-titre>conférence de Françoise Picot: production d'écrits C2,C3</carton-ss-titre>
<carton-intervenant>Françoise Picot</carton-intervenant>
<carton-qual-intervenant>IEN auteur Nathan</carton-qual-intervenant>
<carton-intervenant></carton-intervenant>
<carton-qual-intervenant></carton-qual-intervenant>
<carton-intervenant></carton-intervenant>
<carton-qual-intervenant></carton-qual-intervenant>
Inscription en ligne sur <carton-url>http://www.cndp.fr/crdp-nancy-metz/index.php?id=3905</carton-url>
<carton-puissance> </carton-puissance>
<carton-qual-puissance></carton-qual-puissance>
<carton-puissance> </carton-puissance>
<carton-qual-puissance></carton-qual-puissance>
<carton-puissance> </carton-puissance>
<carton-qual-puissance></carton-qual-puissance>
<carton-titre-verso>Salon des ressources éducatives de Moselle</carton-titre-verso>
<carton-ss-titre-verso>conférence de Françoise Picot: production d'écrits C2,C3</carton-ss-titre-verso>
<carton-date>mercredi 26 février 2014</carton-date>
<carton-heure-debut>14&#8201;h</carton-heure-debut> – <carton-heure-fin>17&#8201;h</carton-heure-fin>
<carton-ville>Montigny lès Metz</carton-ville>
<carton-lieu>ESPE de Lorraine</carton-lieu>
<carton-salle>des fêtes et Gymnase</carton-salle>
</bloc-texte></Root>

    If you select the text you want to be clickable then go to Window>Interactive>Hyperlink you can then add a hyperlink to that entire block of text.
    Is that what you want?

  • Can a today's date be added in a date field when the submit button is pressed?

    I created a form with a submit button and the form is sent via email.  Can the date when the form is submitted show up in a date field with the button is pressed?
    Any help with this is much appreciated. Thanks.

    Hi,
    there is a preSubmit event for form objects you can use.
    Select your date field, open the script editor and add this script (language is FormCalc) into the preSubmit event.
    $ = num2date(date(), "MM/DD/YYYY")

Maybe you are looking for

  • Conversion of string to BLOB format

    Hi, Scenario is proxy to JDBC: I have a requirement where my PFD file name is maintained in one ABAP R3 table and I need to convert the PDF file name to BLOB format. Is there any function module available in R3 for converting to BLOB data type. or ja

  • Generating debug symbols from a source file in assembly

    Hi, I have a file written in the SPARC assembly language, which I can successfully assemble using the "as" command and produce an object file. However, the object file that it being produced does not have any debugging information in it. So when I li

  • Problems with sound

    after some time sound card just stops working and I have to restart computer to have it working again aby idea

  • Oracle Workflow in Oracle 8.1.7

    A customer of mine have Oracle 8.1.7 and he want to use Oracle workflow. Where can I find documentation about Oracle workflow in Oracle 8.1.7 ? Can anybody knows what diferences betwen this and Oracle workflow 2.6.2 ? Thanks in advance.

  • Toad error ORA-01026: multiple buffers of size 4000 in the bind list

    Hi All when iam running explain plan in Toad version 11.5.1.2 the below error coming, ORA-01026: multiple buffers of size > 4000 in the bind list i have checked the all possible solutions provided in forums but no luck I hav changed NLS_LANG paramete