Summing nodes with same id number....

I thought this would be simple but I'm struggling with it. I have a template called "entry" that outputs account details and after each account for a paricular customer, should sum the total balance and output that also. I can't get the summing to work and I've googled and can't find what I'm looking for. Below is a shell of the template that I have so far. All suggestions welcome...
<xsl:template match="entry">
<xsl:value-of select="StatementDate"/>
<xsl:value-of select="AccountNumber"/>
<xsl:value-of select="EndingAcctBalance"/>
<xsl:text>&#10;</xsl:text> <!-- End of Row -->
</xsl:template>
Thanks,
TI

yue42, is this to be done inside the entry template? here's more of my stylesheet (in case it helps):
This is what I'm looking to do:
Acct A 3000 BAL
Acct A 4000 BAL
Acct A 5000 BAL
Acct A 12000 TOTAL
Acct B 1000 BAL
Acct B 2000 BAL
Acct B 3000 TOTAL
Here's my stylesheet...the data is being passed from a resultset.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes"/>
<xsl:param name="date"/>
<xsl:param name="fileHeader"/>
<xsl:param name="columnHeader"/>
<xsl:param name="fileTrailer"/>
<xsl:template match="/">
<xsl:apply-templates select="result"/>
</xsl:template>
<xsl:template match="result">
<xsl:if test="$fileHeader='Y'">
<xsl:call-template name="header"/>
</xsl:if>
<xsl:if test="$columnHeader='Y'">
<xsl:call-template name="columnheader"/>
</xsl:if>
<xsl:apply-templates select="entry"/>
<xsl:if test="$fileTrailer='Y'">
<xsl:call-template name="trailer"/>
</xsl:if>
</xsl:template>
<!-- Column header definition for Balances files -->
<xsl:template name="columnheader">
<xsl:text>BANK,Date,Account Number,Account Type,Currency,Total Equity,Type</xsl:text>
<xsl:text>&#10;</xsl:text>
</xsl:template>
<xsl:template match="entry">
<xsl:text>BANK</xsl:text><xsl:text>,</xsl:text>
<xsl:value-of select="StatementDate"/><xsl:text>/</xsl:text>
<xsl:value-of select="AccountNumber"/><xsl:text>-</xsl:text>
<xsl:value-of select="AccountBalanceCurrency"/> <xsl:text>,</xsl:text>
<xsl:value-of select="EndingAcctBalanceLocal"/><xsl:text>,</xsl:text>
<xsl:text>BALANCE</xsl:text>
<xsl:text>&#10;</xsl:text> <!-- End of Row -->
</xsl:template>
</xsl:stylesheet>

Similar Messages

  • Vendor Invoice with Same Reference Number in two fiscal years.

    Vendor Invoice entered in SAP.
    DocumentNum 1600000612  Reference "47026723WA" Vendor Number "637278" Year "2008"
    DocumentNum 1600000667  Reference "47026723WA" Vendor Number "637278" Year "2009"
    We are thinking SAP will not allow/generate invoice with same Reference number. How can we restrict from entering Vendor invoices with Same Reference Number from same Vendor.
    Thanks
    Raghuram

    Restrict it through message control
    Transaction code OBA5
    Message NO.121
    Make it error for batch and online.
    Thanks,
    Ravi

  • Two idocs with same idoc number in idx5

    We are using an idoc to file scenario where idocs are bundled using bpm and posted to ftp. here the issue is we are getting two idocs with same idoc number in idx5. due to which the file in ftp is getting overwritten.
    Could anyone suggest me what to do in this regard.

    Hi,
    >>>check your sender system is sending same IDoc twice ?
    if you send the same IDOC twice they both get different numbers as IDOC number is taken from the IDOC num range
    unless you're able to send the same IDOC twice with the same IDOC num somehow
    Regards,
    Michal Krawczyk

  • Unbale to create new document part with same document number

    Number range assigned to the X Document Type is internal. I have created new document (0001) with Document Part 000 & Version 00. For same Document Number when i tried to create New Document part by mentioning Document Numner 0001, Document Part 001 and Version 00, it says Document Type X can be assigned to internal number range only.
    Even I tried with following selection....
    Document Number = Blank
    Document Part = 001
    Document Version = 00
    Template:
    Document = 0001
    Document Part = 000
    Document Version = 00
    Now system is creating document with new number i.e. 0002.  But we want to create another document part with same Document Number. What is the problem with internal number range for Document Number?

    Hi Pradeep,
    Following are the config parameter of the document type.
    CM Relevnce = blank
    Number assignmt= 01
    Internal Number Range =02
    External Number Range= blank
    Number Exit =MCDOKZNR
    Vers. No. Incr. =0
    Version Sequence = blank
    AlternativeScreen = blank
    Let me know if you need anything more.
    Edited by: JJSingh76 on Dec 7, 2010 7:25 PM

  • Reprinting check with same check number

    How to reprint the check with same check number. In transaction FCH7, I am able to reprint the check but it gives another check number. Is there another transaction code to reprint the same check with the same check number
    thankyou

    Hello Sheena,
    please disregard the last answer, that works for SAP Business One...
    For your situation:
    If you reprint checks with transaction FCH7, you need to void the
    previous check (with a void reason) and afterwards the system would
    assign a new check number.
    However, if you do it through transaction FBZ5 (print form for Payment
    Document), the system will ask you, if you would like to print an
    existing check number or would like to get a new check number assigned
    (Check -> print->"Check information already exists.
    Reprint old check number or assign new check number?" => print with old
    check number).
    As per you comments, I assume that the second option (via transaction
    FBZ5), is the way you should use to reprint checks without getting
    a new check number assigned.
    Sorry for the confusion...
    Cheers,
    Jon

  • CS4 & CS5 Indy with same serial number

    Can CS4 & CS5 Indy with same serial number both be open on the same machine?
    Thanks!

    I'm wondering how you have two versions with the same serial number? Volume license maybe?
    In the world of single licenses an upgrade from CS4 to CS5 would get a new new number, at least in my experience. As far as installing multiple versions (but not differnt localizations, like US and ME, of the same version) no problem, and I often have multiple versions open at the same time for testing and answereing questions here on the forum.

  • I got both a PC version and a mac version in my purchase but once i loaded to my PC it will not allow me to load to my Mac with same redemption number. Is there a way to do that?

    i got both a PC version and a mac version in my purchase but once i loaded to my PC it will not allow me to load to my Mac with same redemption number. Is there a way to do that?

    I was going to ask a similar question - we bought the boxed version of PSE11 with mac and pc disc - can we install the program on our mac as well as our PC? It's already on the PC but would be very handy to have it on Mac also. Thanks

  • Source XML Structure-Two Nodes with same names

    Hi All,
    I have a strange situation. I am doing a Webservice to RFC scenario. The Third party vendor provided me with the Source XML fro me to create the datatype.
    <?xml version="1.0" encoding="UTF-8"?>
    <Envelope version="01.00">
           <Sender>
                 <Id></Id>
                 <Credential></Credential>
           </Sender>
           <Recipient>
                 <Id></Id>
           </Recipient>
           <TransactInfo transactType="data">
                 <TransactId></TransactId>
                 <TimeStamp></TimeStamp>
           </TransactInfo>
           <Packet>
                 <PacketInfo packetType="data">
                        <PacketId>1</PacketId>
                        <Action></Action>
                        <Manifest></Manifest>
                 </PacketInfo>
                 <Payload><![CDATA[<?xml version="1.0"?>
    <DATA_1>
           <FIELD1></FIELD1>
           <FIELD2></FIELD2>
           <FIELD3></FIELD3>
           <FIELD4></FIELD4>
           <FIELD5></FIELD5>
    </DATA_1>]]></Payload>
           </Packet>
           <Packet>
                 <PacketInfo packetType="data">
                        <PacketId>2</PacketId>
                        <Action></Action>
                        <Manifest></Manifest>
                 </PacketInfo>
                 <Payload><![CDATA[<DATA_2 language="en">
         <FIELD1></FIELD1>
            <FIELD2></FIELD2>
            <FIELD3></FIELD3>
            <FIELD4></FIELD4>
            <FIELD5></FIELD5>
    </DATA_2>]]></Payload>
           </Packet>
    </Envelope>
    As We see Above, There are 2 Nodes named "Packet" at the Same level.
    So When I try to create my datatype in XI based on this XML, XI wont allow to create 2 nodes with same names at the same level.
    We asked the vendor to change the name of the second Packet to Packet_1, they told they cant change it.
    Is there a way in XI to handle this issue??. ie to create 2 nodes with the same name at the same level??
    Thanks,
    Harsh

    Hi,
    Thats's funy, web service is exposed by PI... but it's the thirdparty (client of our web service server) who imposes their choice for structure !! Inversed world.
    Either in Data Type, you define the "Packet" node with an occurence 0..N (or at least 0..2). That will allow you to have the 2 desired nodes by your third-party !
    Or... as your third-party does not want to chance something in their side, that means they probably already have such a web service and so a WSDL file or an XSD of this structure... So ask to them to provide you this WSDL, and you, you will use it as an External Def.
    regards.
    mickael

  • Re-issue voided checks with same check number

    Hi All,
    We accidentally voided a check which has already been received by the vendor. We want to re-issue the check in our system, but it wont reconcile as the check numbers are different. Is it possible to change the check number?
    Regards,
    Pooja

    Hi Pooja
    Lets assume that the cheque numbers that were voided were from 10001 to 10521. So create a payment document against the same bank account which was used earlier and assign the document numbers 10001 to 10521. Now again create a new payment batch with the same set of parameters as provided previously. Ensure that the same invoices are selected by the batch (no less or more). Now submit the batch. This way the system should assign the same cheque number to the supplier sites which were issued previously. So if a supplier was issued 10002 cheque number with an amount of $1000 previosuly, then this batch should also issue the same cheque number for the same amount against that supplier. Please ensure that the system is bahving in the same way as thought. Else you might have to generate manual payments for each of these 521 payments :(.
    In this way, you will not be required to do any swapping or run any custom script. While reconciling, you will match the bank payments with this new payments.
    Hope this clarifies.
    Vinit

  • 2 Shopping Cart items with same item number

    Hi experts,
    We are facing a problem I never heared before : a shopping cart has been created with total of 51 items in SRM but some of them have the same item number in BBP_PD (2 items nr 16, 17...).
    For example, the 2 items nr 16 have a different Guid, only 1 entry in status section (I113 => OK), 2 entries in Partner section (vendor, requester, receiver, ship-to & site => OK), 2 entries in organization section, only 1 entry in item link section, 2 entries in concract section, 2 entries in account assignment section.
    Functionnally, these 2 items are not on the same article (even product categories are different).
    The problem now is that only one of the 2 items has been transfered to the backend, the other item has status "approved" but no "follow-on document created".
    The only thing diffrent from another SC is that this SC has been put on hold before being ordered (status I1009 is inactive).
    I didn't found any note on this problem, we are user SRM5.5 SP6 with classical scenario.
    I heared about a maximum item number in SC but I think in SRM5 there is no limitation, at least not less than 99 items.
    Thanks in advance for your help!
    Best regards,
    Benjamin

    Hi,
    please try to process the Held SB ,backend document will be created. since Creation of Shopping cart is in WEB processing of time take more normally .I think you can create a line item of
    999 line in SB because in backend SAP R/3 it will allow only 999 line items
    G.Ganesh Kumar

  • Multipages with same check number

    While printing check, I have 100line items for same vendor. going to give single check . while printing with standard program and layout,it is printing 3pages and printing 3checks in each page.it is creating first 2 voided check and 3rd one is original.but issue is, it is creating 3 checks in different numbers.if it is 100001,100002,100003 three check, 100001,100002 is voided and 100003 is original check. but for my requirement all the page should have same check number and 2pages voided and 3rd page is original check.100001(voided),100001(voided),100001(original)like this has to print.can any1 help on this ?

    Hi ,
    See whether this will be useful to u .....
    The print program is RFFOUS_C, see if the checkbox "Do not Void any Checks" is off or on.
    This setting has influence on the check numbers being consumed for multi-page check printing.
    Is it multiple pages due to a long remittance advice (item list)?

  • Issue Related to Billing Document F2 with same Invoice Number.

    Hi All,
    I have 3 Sales Order with 2 Sales Order belonging to Sales Org A and one belonging to Sales Org B. The Invoice generated for all the deliveries for Sales Order has the same Invoice Number. As per the standard functinality it is not possible to generate same Invoice Number for Sales Order belonging to different Sales Organisation. I have chekced the Table VBFA the preceding document for the Invoice Number I am getting 3 entries. Please could you help me out in analysing his issue. Where the possible error could be ?.
    Thanks & Regards,
    Sam.

    Kindly check as it could be due to the Single Invoice generated for collective three Deliveries.
    As per the standard functinality it is not possible to generate same Invoice Number for Sales Order belonging to different Sales Organisation
    This is not a standard Functionality.But if you have made a Logic in the Copy Control Routine then it could be possible.
    Single Invoice Number can be generated for one or more Deliveries if you process it through VF04.
    Best Regards,
    Ankur

  • Two eigrp clientes with same AS number

    Hi,
    I have one vrf with Protocol PE-CE Eigrp and AS number 100,
    but another new client with protocol PE-CE eigrp wish same AS number.
    This is a problem?
    Regards
    Rodrigo Prieto

    As long as they are on separate VRF tables there is no issue.

  • Lightroom reinstallation on different mac with same serial number.

    im using lightroom on my mac air.
    and im planning to buy a mac pro soon.
    in that case, is it possible to use lightroom on my new mac pro with the same serial numbers that im using now on mac air?
    (im not going to use lightroom on mac air)

    Adobe allows two installations of Lightroom on different computers with the proviso that only one can be used at any one time. (There is no on-line activation/de-activation process, only your honesty.)
    Just install on the new mac pro with the same serial number.
    Note: If the Mac Air has an "update" version installed (for example -you upgraded from LR3 to LR5) then you will need both Serial Numbers for LR3 & the LR5-update, to install on the new Mac pro.

  • MIRO: two invoices were posted with same Reference Number?

    Hi all!
    Using the MIRO user posted two invoices with the same Reference number without any warning.
    Is it normal?
    Invoices looks exactly identical, the only difference is "Specl G/L assgt" which one of them has and another doesn't.
    Regards.

    Hi Harish,
    I checked:
    1) "Duplicate invoice number" : SPRO/Materials Management/Logistics Invoice Verification/Incoming Invoice/Set Check for Duplicate Invoices - set up for Company Code correctly
    2) "Duplicate invoice number" setup for Vendor (FK03) (tick is set up)
    3) OBMSG M8 108 set up as IE (not 100% sure it's exactly the same message I'm looking for)
    Seems everything is fine.
    But I posted 2 invoices in MIRO with the same reference - no warning or error.
    Any advices?

Maybe you are looking for

  • DVD Studio will not encode my quick time files!!

    Okay, so I know that I can run my files through compressor and make MPEG2's to burn in DVD Studio Pro. But it is just an extra step for what I do because usually we need a quick time file also to post to our website. When I drop any .mov file into DV

  • Fixed Epson Stylus Photo RX580 - Unable to print from AirPort in 10.5.x

    After upgrading 1st Gen MBP 17" to 10.5.4 I could not print from the Airport, unless I used Bonjour through one of my 10.4.11 Macs. Much sadness. Found this thread: http://discussions.apple.com/thread.jspa?messageID=6170067 - near the bottom was "big

  • Macbook crashes after Snow Leopard install

    I've just upgraded to snow leopard, but now the macbook crashes about 3 seconds after the desktop appears. How do I getout of this? Any advice gratefully received. Thanks

  • Darkening layer in Channels?

    Using CS5 I do the following: - apply a layer mask to a layer - make new channel - image > adjustments > invert - turn on RGB, but have alpha1 active - apply shading over parts of the image - hold down command double-click on icon for alpha channel t

  • Invoice Against Delivery Challan

    Against the material in PO(GRN based), if the invoice has been parked twice against the GRN, then system allows to post the invoice twice. How we can restrict it. Also if against one GRN, the invoice has been parked, then second time how i can restri