Need help to sum up total amount in at end of.....endat!!! Please help

Hi,
There is one program need to calculat the SUB-TOTAL AMOUNT FOR SAME DOCUMENT NUMBER.
Means: Need to sumup betrg for the same belnr.
QUESTION:
How can I write the sorce cord In AT END OF...ENDAT.
TO SUMUP THE AMOUNT FOR SAME DOCUMENT NUMBER.
Please help!!
Thanks.
Here is the sourc code.
DATA: BEGIN OF t OCCURS 0,
        bukrs   LIKE knb1-bukrs,
*<<<<< CR01
        zuonr   Like bsid-zuonr,                        "sort key  "CR01
*>>>>> CR01
        belnr   LIKE bsid-belnr,
        kunnr   LIKE kna1-kunnr,
        bldat   LIKE bsid-bldat,
        budat   LIKE bsid-budat,
        netdt   LIKE bsega-netdt,
        waers   LIKE bsid-waers,
        wrbtr   LIKE bsid-wrbtr,
        shkzg   LIKE bsid-shkzg,
        xblnr   LIKE bsid-xblnr,                            "WD041005a
        sgtxt   LIKE bsid-sgtxt,
        dmbtr   LIKE bsid-dmbtr,
      END OF t.
Description of Interface-record RECON
DATA: BEGIN OF s,
        belnr(10),                     " document number
*<<<< CR01 STRAT ADD ZUONR
        zuonr(10),                     "sort key  " CR01
*>>>> CR01 END ADD ZUONR
        filler1(1),
      KUNNR(5),                      " customer no."WD290705a
        kunnr LIKE kna1-kunnr,         " customer no."WD290705a
        filler2(1),
        bldat(10),                     " date
        filler3(1),
        budat(10),
        filler4(1),
        netdt(10),                     " due date for payment
        filler5(1),
        betrg(14),                     " amount
        filler6(1),
        waers(3),                      " currency
        filler7(1),                    " document field - blank
        compcode(4),                   " company-code         "fw070905
        filler8(1),                    " comment - blank
        sgtxt(50),                     " Text             "INS MG020207
        filler9(1),
        kmmnt(30),
        filler10(1),
        vbeln(12) ,
        filler11(1),
        xblnr(16),                     "WD041005a hier Referenznr rein
        filler12(1),
        lifn2(11),
        filler13(1),                   " remark - blank
        dmbtr(14),
        filler14(1),
        twaer(3),
      END OF s.
DATA: BEGIN OF outtab OCCURS 1000,
            s LIKE s,
      END OF outtab.
*<<<<< INS MG020207
TYPES: BEGIN OF ty_outalv,
         belnr(10),                     " document number
*<<<< CR01 START ADD ZUONR
         zuonr,                         " sort key  " CR01
*>>>>CR01 END ADD AUONR
         kunnr LIKE kna1-kunnr,         " customer no."WD290705a
         bldat(10),                     " date
         budat(10),                     " posting date
         netdt(10),                     " due date for payment
         betrg(14),                     " amount
         waers(3),                      " currency
         compcode(4),                   " company-code         "fw070905
         sgtxt(30),                     " comment
         kmmnt(30),                     " comment
         vbeln(12),                     " delivery number
         xblnr(16),                     "WD041005a hier Referenznr rein
         lifn2(11),                     " customer number
         dmbtr(14),
         twaer(3),                     " currency company code
       END OF ty_outalv.
DATA: gt_outalv TYPE STANDARD TABLE OF ty_outalv.
DATA: gs_outalv TYPE ty_outalv.
*>>>>> INS MG020207
DATA: l_date TYPE sy-datum.
DATA: g_date TYPE sy-datum.
DATA: g_budat TYPE bsik-budat.
*<<<< CR01 START   ADD DATA STATEMENT
DATA: wk_belnr LIKE bsid-zuonr,
      wk_x_belnr LIKE bsid-zuonr,
      ZUONR LIKE BSID-ZUONR,
      WRBTR LIKE BSID-WRBTR,
      WK_ZUONR LIKE BSID-ZUONR,
      WK_WRBTR LIKE BSID-WRBTR.
*>>>> CR01 END  ADD DATA STATEMENT
DATA: l_it_bsik TYPE STANDARD TABLE OF bsik.               "INS MG050706
DATA: l_wa_bsik TYPE bsik.                                 "INS MG050706
TYPE-POOLS: slis.                                          "INS MG020207
DATA:                                                      "INS MG020207
gt_fieldcat TYPE slis_t_fieldcat_alv,                     "INS MG020207
gs_layout   TYPE slis_layout_alv,                         "INS MG020207
gs_fieldcat TYPE slis_fieldcat_alv.                       "INS MG020207
END-OF-SELECTION.
  SORT t.
  LOOP AT t.
    AT NEW bukrs.
      CLEAR anz_dl.
      CLEAR htext-anzahl.
      CLEAR htext-datei.
      htext-text1 = ' records writen in file '.
      CLEAR p_pfad.
      CONCATENATE
          i_pfad
          'CU_CC'
          t-bukrs
          sy-datum+6(2)
          sy-datum+4(2)
          sy-datum(4)
          sy-uzeit
          '.txt'
     INTO p_pfad.
      CLEAR outtab.
      REFRESH outtab.
      REFRESH: gt_outalv.                                  "INS MG020207
    ENDAT.
   IF t-shkzg = 'H'.
     h_betrg  = t-wrbtr * -1.
   ELSE.
    h_betrg  = t-wrbtr.
    h_dmbtr  = t-dmbtr.
   ENDIF.
    s-filler1 = s-filler2 = s-filler3 = s-filler4 = s-filler5 = ';'.
    s-filler6 = s-filler7 = s-filler8 = ';'.
    s-filler9 = s-filler10 = s-filler11 = s-filler12 = s-filler13 = ';'.
    s-filler14 = ';'.
    s-belnr = t-belnr.
    IF t-xblnr NE space.                                    "WD041005a
      s-xblnr      = t-xblnr.                               "WD041005a
    ELSE.                                                   "WD041005a
      s-xblnr      = t-belnr.                               "WD041005a
    ENDIF.                                                  "WD041005a
    WHILE s-xblnr(1) EQ '0'.                            "INS MG130606
      SHIFT s-xblnr LEFT.                               "INS MG130606
    ENDWHILE.                                            "INS MG130606
    WRITE t-kunnr TO s-kunnr NO-ZERO.
    s-lifn2 = s-kunnr.
    shift s-lifn2 RIGHT.
    s-lifn2(1) = 'R'.
  S-KUNNR = T-KUNNR+5(5).
    s-bldat+2(1) = '/'.
    s-bldat+5(1) = '/'.
    s-bldat0(2) = t-bldat4(2).
    s-bldat3(2) = t-bldat6(2).
    s-bldat6(4) = t-bldat0(4).
    s-budat+2(1) = '/'.
    s-budat+5(1) = '/'.
    s-budat0(2) = t-budat4(2).
    s-budat3(2) = t-budat6(2).
    s-budat6(4) = t-budat0(4).
    s-netdt+2(1) = '/'.
    s-netdt+5(1) = '/'.
    s-netdt0(2) = t-netdt4(2).
    s-netdt3(2) = t-netdt6(2).
    s-netdt6(4) = t-netdt0(4).
    s-waers      = t-waers.
    s-dmbtr      = t-dmbtr.
    s-sgtxt      = t-sgtxt.
    CLEAR s-twaer.
    SELECT SINGLE waers INTO s-twaer
                        FROM t001
                        WHERE bukrs = t-bukrs.
    IF h_betrg < 0.
      hs_betrg+0(1) = '-'.
    ELSE.
      hs_betrg+0(1) = ' '.
    ENDIF.
    WRITE h_betrg CURRENCY t-waers TO hs_betrg+1 NO-GROUPING
                                                    NO-SIGN
                                                    LEFT-JUSTIFIED.
    REPLACE ',' WITH '.' INTO hs_betrg.
    WRITE hs_betrg TO s-betrg.
    IF h_dmbtr < 0.
      hs_betrg+0(1) = '-'.
    ELSE.
      hs_betrg+0(1) = ' '.
    ENDIF.
    WRITE h_dmbtr CURRENCY t-waers TO hs_betrg+1 NO-GROUPING
                                                    NO-SIGN
                                                    LEFT-JUSTIFIED.
    REPLACE ',' WITH '.' INTO hs_betrg.
    WRITE hs_betrg TO s-dmbtr.
    s-compcode   = t-bukrs.                                 "fw070905
    IF p_downl = 'X'.
      MOVE s TO outtab-s.
      APPEND outtab.
      ADD 1 TO anz_dl.
    ENDIF.
    gs_outalv-belnr = s-belnr.                             "INS MG020207
*<<<< CR01 START ADD as_outalv-zuonr
    gs_outalv-zuonr = s-zuonr.                             "CR01
*>>>> CR01 EDD   ADD as_outalv-zuonr
    gs_outalv-kunnr = s-kunnr.                             "INS MG020207
    gs_outalv-bldat = s-bldat.                             "INS MG020207
    gs_outalv-netdt = s-netdt.                             "INS MG020207
    gs_outalv-betrg = s-betrg.                             "INS MG020207
    gs_outalv-waers = s-waers.                             "INS MG020207
    gs_outalv-compcode = s-compcode.                       "INS MG020207
    gs_outalv-budat = s-budat.                             "INS MG020207
    gs_outalv-sgtxt = s-sgtxt.
    gs_outalv-kmmnt = s-kmmnt.
    gs_outalv-vbeln = s-vbeln.
    gs_outalv-xblnr = s-xblnr.
    gs_outalv-lifn2 = s-lifn2.
    gs_outalv-dmbtr = s-dmbtr.
    gs_outalv-twaer = s-twaer.
    APPEND gs_outalv TO gt_outalv.                         "INS MG020207
    AT END OF bukrs.
      WRITE anz_dl  TO htext-anzahl.
      WRITE p_pfad  TO htext-datei.
      CONDENSE htext.
      IF p_downl = 'X'.
        SKIP 2.
        WRITE: / htext.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                = p_pfad
            filetype                = 'ASC'
          TABLES
            data_tab                = outtab
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6
            header_not_allowed      = 7
            separator_not_allowed   = 8
            filesize_not_allowed    = 9
            header_too_long         = 10
            dp_error_create         = 11
            dp_error_send           = 12
            dp_error_write          = 13
            unknown_dp_error        = 14
            access_denied           = 15
            dp_out_of_memory        = 16
            disk_full               = 17
            dp_timeout              = 18
            file_not_found          = 19
            dataprovider_exception  = 20
            control_flush_error     = 21
            OTHERS                  = 22.
        IF sy-subrc <> 0.
         write: / 'Error creating File:', P_Pfad, sy-subrc.
          MESSAGE e405 WITH text-002 p_pfad.
        ENDIF.
      ENDIF.
*<<<<< INS MG020207
      IF p_alvd EQ 'X'.
        PERFORM build_layout_data.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program     = sy-repid
            i_structure_name       = 'GT_OUTALV'
            is_layout              = gs_layout
            it_fieldcat            = gt_fieldcat[]
            i_callback_top_of_page = 'TOP-OF-PAGE'
          TABLES
            t_outtab               = gt_outalv.
      ENDIF.
*>>>>> INS MG020207
ENDAT.
  ENDLOOP.

HI
Have alook at below program
*& Report  ZINTERNALTABLE
REPORT  zinternaltable.
TYPES:BEGIN OF itab,
      num TYPE i,
      name(10) TYPE c,
      amt type i,
      END OF itab.
DATA : wa_itab TYPE itab,
       it_itab TYPE STANDARD TABLE OF itab.
DATA : v_lines TYPE i.
wa_itab-num = 1.
wa_itab-name = 'nag'.
wa_itab-amt = 1000.
append wa_itab TO it_itab.
wa_itab-num = 1.
wa_itab-name = 'nag'.
wa_itab-amt = 2000.
append wa_itab TO it_itab.
wa_itab-num = 1.
wa_itab-name = 'nag'.
wa_itab-amt = 1500.
append wa_itab TO it_itab.
wa_itab-num = 2.
wa_itab-name = 'sri'.
wa_itab-amt = 500.
append wa_itab tO it_itab.
wa_itab-num = 2.
wa_itab-name = 'sri'.
wa_itab-amt = 600.
append wa_itab TO it_itab.
wa_itab-num = 2.
wa_itab-name = 'sri'.
wa_itab-amt = 700.
append wa_itab TO it_itab.
wa_itab-num = 3.
wa_itab-name = 'ganesh'.
wa_itab-amt = 1200.
append wa_itab TO it_itab.
wa_itab-num = 3.
wa_itab-name = 'ganesh'.
wa_itab-amt = 1300.
append wa_itab TO it_itab.
wa_itab-num = 3.
wa_itab-name = 'ganesh'.
wa_itab-amt = 1400.
append wa_itab TO it_itab.
wa_itab-num = 4.
wa_itab-name = 'suresh'.
wa_itab-amt = 900.
append wa_itab TO it_itab.
wa_itab-num = 4.
wa_itab-name = 'suresh'.
wa_itab-amt = 300.
append wa_itab TO it_itab.
sort it_itab.
LOOP AT it_itab INTO wa_itab.
at first.
write :/ 'details of sales order:'.
uline.
endat.
at new num.
write :/ 'serial num:', wa_itab-num.
uline.
endat.
WRITE :/ wa_itab-num , wa_itab-name , wa_itab-amt.
at end of num.
uline.
sum.
write :/ 'total amount:',wa_itab-amt.
uline.
endat.
at last.
sum.
uline.
write:/ 'grand total:',wa_itab-amt.
endat.
ENDLOOP.
describe table it_itab lines  v_lines.
WRITE:/'no of records :', v_lines.
Regards
Nagesh.Paruchuri

Similar Messages

  • Need to calculate sum in an e-text file for positive pay--PLEASE HELP!!!!

    Hi All,
    Need some help formatting e-text output in positive pay. In the trailer record I need to display the sum of all checks run in that payment process. However if the check is "VOID", I should not add that check amount to the summary total in the trailer record. So, I need to conditionally sum the check amounts in the payment register.
    Here is my XML:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <PositivePayDataExtract>
    - <OutboundPayment>
    - <PaymentSourceInfo>
    <ApplicationInternalID>200</ApplicationInternalID>
    <ApplicationName>SQLAP</ApplicationName>
    <PaymentServiceRequestID>50175</PaymentServiceRequestID>
    - <FunctionalCategory>
    <Code>PAYABLES_DISB</Code>
    <Meaning>Payables Disbursements</Meaning>
    </FunctionalCategory>
    - <PayerOrganization>
    <OrganizationInternalID>484</OrganizationInternalID>
    - <OrganizationType>
    <Code>OPERATING_UNIT</Code>
    <Meaning>Operating Unit</Meaning>
    </OrganizationType>
    <OrganizationName>US_OU</OrganizationName>
    </PayerOrganization>
    <EmployeePaymentFlag>N</EmployeePaymentFlag>
    </PaymentSourceInfo>
    - <PaymentNumber>
    <DocCategory />
    <SequenceName />
    <SequenceValue />
    <PaymentReferenceNumber>64812</PaymentReferenceNumber>
    <LogicalGroupReference />
    <CheckNumber>180159</CheckNumber>
    </PaymentNumber>
    <PaymentDate>2012-07-10</PaymentDate>
    <PaymentDueDate />
    <MaturityDate />
    - *<PaymentStatus>*
    *<Code>VOID</Code>*
    <Meaning>Void</Meaning>
    </PaymentStatus>
    - <Payee>
    <PartyInternalID>848060</PartyInternalID>
    <PartyNumber>46702</PartyNumber>
    <Name>ABC INT</Name>
    <TaxRegistrationNumber />
    <LegalEntityRegistrationNumber>9999</LegalEntityRegistrationNumber>
    <AlternateName />
    <SupplierNumber>12975</SupplierNumber>
    - <Address>
    <AddressInternalID>32488</AddressInternalID>
    <AddressLine1>48078ABC ST</AddressLine1>
    <AddressLine2 />
    <AddressLine3 />
    <AddressLine4 />
    <City>ABC</City>
    <County />
    <State>AB</State>
    <Country>US</Country>
    <ISO3DigitCountry>USA</ISO3DigitCountry>
    <CountryName>UB</CountryName>
    <PostalCode>12345-7890</PostalCode>
    <AddressName>ABC</AddressName>
    <Addressee />
    <AlternateAddressName />
    <PreFormattedConcatenatedAddress>ABC</PreFormattedConcatenatedAddress>
    <PreFormattedMailingAddress>ABCD</PreFormattedMailingAddress>
    </Address>
    - <ContactInfo>
    - <ContactLocators>
    <PhoneNumber />
    <FaxNumber />
    <EmailAddress />
    <Website />
    </ContactLocators>
    </ContactInfo>
    <SupplierSiteCode>ABC</SupplierSiteCode>
    </Payee>
    - <TradingPartner>
    <PartyInternalID>848060</PartyInternalID>
    <PartyNumber>46702</PartyNumber>
    <Name>ABC INT</Name>
    <TaxRegistrationNumber />
    <LegalEntityRegistrationNumber>12345</LegalEntityRegistrationNumber>
    <AlternateName />
    <SupplierNumber>12975</SupplierNumber>
    - <ContactInfo>
    - <ContactLocators>
    <PhoneNumber />
    <FaxNumber />
    <EmailAddress />
    <Website />
    </ContactLocators>
    </ContactInfo>
    <AdditionalInformation />
    </TradingPartner>
    <PayeeBankAccount />
    - <Payer>
    <PartyInternalID>788764</PartyInternalID>
    <PartyNumber>39224</PartyNumber>
    <Name>UB_LE</Name>
    - <PartyType>
    <Code />
    <Meaning />
    </PartyType>
    <TaxRegistrationNumber />
    <LegalEntityRegistrationNumber>12345</LegalEntityRegistrationNumber>
    <LegalEntityInternalID>40287</LegalEntityInternalID>
    <LegalEntityName>UB_LE</LegalEntityName>
    - <Address>
    <AddressInternalID>24652</AddressInternalID>
    <AddressLine1>ABC STREET</AddressLine1>
    <AddressLine2 />
    <AddressLine3 />
    <City>TREY</City>
    <County>Hari</County>
    <State>TX</State>
    <Country>US</Country>
    <ISO3DigitCountry>USA</ISO3DigitCountry>
    <CountryName>United States</CountryName>
    <PostalCode>12345</PostalCode>
    <PreFormattedConcatenatedAddress>ABC STREET, TREY, TX 12345</PreFormattedConcatenatedAddress>
    <PreFormattedMailingAddress>ABC STREET, TREY, TX 12345</PreFormattedMailingAddress>
    <AddressName>ABCD Services (U.S.) Inc.</AddressName>
    </Address>
    - <ContactInfo>
    - <ContactLocators>
    <PhoneNumber />
    <FaxNumber />
    <EmailAddress />
    <Website />
    </ContactLocators>
    </ContactInfo>
    </Payer>
    - <BankAccount>
    <BankAccountInternalID>64034</BankAccountInternalID>
    <BankName>XXX BANK</BankName>
    <AlternateBankName />
    <BankNumber />
    <BranchInternalID>1236444</BranchInternalID>
    <BranchName>24</BranchName>
    <AlternateBranchName />
    <BranchNumber>12345</BranchNumber>
    <BankAccountName>43</BankAccountName>
    <AlternateBankAccountName>INTERNAL</AlternateBankAccountName>
    <BankAccountNumber>123</BankAccountNumber>
    <MaskedBankAccountNumber>123</MaskedBankAccountNumber>
    <UserEnteredBankAccountNumber>123</UserEnteredBankAccountNumber>
    <BankAccountSuffix />
    <SwiftCode>ABC</SwiftCode>
    <IBANNumber />
    <CheckDigits />
    - <BankAccountType>
    <Code />
    <Meaning />
    </BankAccountType>
    - <BankAccountCurrency>
    <Code>USD</Code>
    </BankAccountCurrency>
    - <BankAddress>
    <AddressInternalID>56057</AddressInternalID>
    <AddressLine1>111 ABC ST</AddressLine1>
    <AddressLine2 />
    <AddressLine3 />
    <AddressLine4 />
    <City>SanJo</City>
    <County />
    <State>IN</State>
    <Province />
    <Country>US</Country>
    <ISO3DigitCountry>USA</ISO3DigitCountry>
    <CountryName>United States</CountryName>
    <PostalCode>12345</PostalCode>
    <PreFormattedConcatenatedAddress>ABC STREET</PreFormattedConcatenatedAddress>
    <PreFormattedMailingAddress>ABC STREET</PreFormattedMailingAddress>
    </BankAddress>
    - <DescriptiveFlexField>
    <AttributeCategory>Yes</AttributeCategory>
    <Attribute1 />
    <Attribute2>108</Attribute2>
    <Attribute3 />
    <Attribute4 />
    <Attribute5 />
    <Attribute6 />
    <Attribute7 />
    <Attribute8 />
    <Attribute9 />
    <Attribute10 />
    <Attribute11 />
    <Attribute12 />
    <Attribute13 />
    <Attribute14 />
    <Attribute15 />
    </DescriptiveFlexField>
    - <FederalBankAccountInfo>
    <FederalRFCIdentifier />
    <FederalAgencyLocationCode />
    <FederalAbbreviatedAgencyCode />
    <FederalEmployerIdentificationNumber />
    </FederalBankAccountInfo>
    - <EFTUserNumber>
    <AccountLevelEFTNumber />
    <BranchLevelEFTNumber />
    </EFTUserNumber>
    </BankAccount>
    - <Beneficiary>
    <Name>ABC INT</Name>
    </Beneficiary>
    - <PaymentAmount>
    *<Value>2612.39</Value>*
    - <Currency>
    <Code>USD</Code>
    <Name>US Dollar</Name>
    </Currency>
    </PaymentAmount>
    <PaymentAmountText>Two Thousand Six Hundred Twelve Dollars And Thirty-Nine Cents*******************************************************</PaymentAmountText>
    - <PaymentMethod>
    <PaymentMethodInternalID>CHECK</PaymentMethodInternalID>
    <PaymentMethodName>Check</PaymentMethodName>
    <PaymentMethodFormatValue>CHECK</PaymentMethodFormatValue>
    </PaymentMethod>
    <PayAlongFlag>N</PayAlongFlag>
    - <SettlementPriority>
    <Code />
    <Meaning />
    </SettlementPriority>
    - <AmountWithheld>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </AmountWithheld>
    - <DiscountTaken>
    - <Amount>
    <Value>0</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </Amount>
    </DiscountTaken>
    - <BankCharges>
    - <BankChargeBearer>
    <Code />
    <Meaning />
    </BankChargeBearer>
    - <Amount>
    <Value>0</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </Amount>
    </BankCharges>
    - <DeliveryChannel>
    <Code />
    <Meaning />
    <FormatValue />
    </DeliveryChannel>
    - <PaymentReason>
    <Code />
    <Meaning />
    <FormatValue />
    </PaymentReason>
    <PaymentReasonComments />
    <RemittanceMessage />
    <RemittanceMessage />
    <RemittanceMessage />
    - <BankInstruction>
    <BankInstructionCode />
    <Meaning />
    <FormatValue />
    </BankInstruction>
    - <BankInstruction>
    <BankInstructionCode />
    <Meaning />
    <FormatValue />
    </BankInstruction>
    <BankInstructionDetails />
    <PaymentTextMessage />
    <PaymentTextMessage />
    <PaymentTextMessage />
    <PaymentDetails />
    - <RegulatoryReporting>
    <DeclarationFlag>N</DeclarationFlag>
    - <Amount>
    <Value>0</Value>
    - <Currency>
    <Code />
    </Currency>
    </Amount>
    </RegulatoryReporting>
    - <FederalPaymentInfo>
    <FederalAllotmentCode />
    <FederalOffsetEligibilityFlag />
    <FederalAccountingSymbol />
    </FederalPaymentInfo>
    <DocumentPayableCount>1</DocumentPayableCount>
    - <DocumentPayable>
    - <DocumentNumber>
    <DocumentInternalIDSegment1>21202</DocumentInternalIDSegment1>
    <DocumentInternalIDSegment2>174838</DocumentInternalIDSegment2>
    <DocumentInternalIDSegment3>1</DocumentInternalIDSegment3>
    <DocumentInternalIDSegment4 />
    <DocumentInternalIDSegment5 />
    <ApplicationInternalID>200</ApplicationInternalID>
    <ApplicationDocumentSubType>PAYABLES_DOC</ApplicationDocumentSubType>
    <ApplicationUniqueInternalID>21202</ApplicationUniqueInternalID>
    <ReferenceNumber>183464</ReferenceNumber>
    - <UniqueRemittanceIdentifier>
    <Number />
    <CheckDigit />
    </UniqueRemittanceIdentifier>
    <DocCategory>STD INV</DocCategory>
    <SequenceName>USA_Payables_Purchases</SequenceName>
    <SequenceValue>24389</SequenceValue>
    </DocumentNumber>
    <PONumber>UNMATCHED</PONumber>
    - <DocumentStatus>
    <Code>REMOVED_PAYMENT_VOIDED</Code>
    <Meaning>Removed - Payment Voided</Meaning>
    </DocumentStatus>
    <DocumentDate>2012-04-23</DocumentDate>
    <DocumentCreationDate>2012-07-10</DocumentCreationDate>
    <PaymentDueDate>2012-05-23</PaymentDueDate>
    - <DocumentType>
    <Code>STANDARD</Code>
    <Meaning>Standard</Meaning>
    </DocumentType>
    <DocumentDescription>STORAGE 04/01/12 - 06/30/12</DocumentDescription>
    <ExpenseReportCreditCardNumber />
    <EmployeePaymentFlag>N</EmployeePaymentFlag>
    - <TotalDocumentAmount>
    <Value>2612.39</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </TotalDocumentAmount>
    - <PaymentAmount>
    <Value>2612.39</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </PaymentAmount>
    <PayAloneFlag>N</PayAloneFlag>
    - <SettlementPriority>
    <Code />
    <Meaning />
    </SettlementPriority>
    - <AmountWithheld>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </AmountWithheld>
    - <DiscountTaken>
    - <Amount>
    <Value>0</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </Amount>
    <DiscountDate />
    </DiscountTaken>
    - <BankCharges>
    - <BankChargeBearer>
    <Code />
    <Meaning />
    </BankChargeBearer>
    </BankCharges>
    - <DeliveryChannel>
    <Code />
    <Meaning />
    <FormatValue />
    </DeliveryChannel>
    - <PaymentReason>
    <Code />
    <Meaning />
    <FormatValue />
    </PaymentReason>
    <PaymentReasonComments />
    <RemittanceMessage />
    <RemittanceMessage />
    <RemittanceMessage />
    - <Charge>
    - <TotalDocumentChargeAmount>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </TotalDocumentChargeAmount>
    </Charge>
    - <TotalDocumentTaxAmount>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </TotalDocumentTaxAmount>
    - <CreditAmountApplied>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </CreditAmountApplied>
    - <InterestAmountApplied>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </InterestAmountApplied>
    <InterestRate />
    - <DocumentPayableLine>
    <LineNumber>1</LineNumber>
    <PONumber />
    - <LineType>
    <Code>ITEM</Code>
    <Meaning />
    </LineType>
    <LineDescription />
    - <LineGrossAmount>
    <Value>0</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </LineGrossAmount>
    <UnitPrice />
    <Quantity />
    - <UnitOfMeasure>
    <Code />
    <Meaning />
    </UnitOfMeasure>
    - <Tax>
    <TaxCode />
    <TaxRate />
    </Tax>
    </DocumentPayableLine>
    - <DocumentPayableLine>
    <LineNumber>2</LineNumber>
    <PONumber />
    - <LineType>
    <Code>ITEM</Code>
    <Meaning />
    </LineType>
    <LineDescription />
    - <LineGrossAmount>
    <Value>2612.39</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </LineGrossAmount>
    <UnitPrice />
    <Quantity />
    - <UnitOfMeasure>
    <Code />
    <Meaning />
    </UnitOfMeasure>
    - <Tax>
    <TaxCode />
    <TaxRate />
    </Tax>
    </DocumentPayableLine>
    - <DocumentPayableLine>
    <LineNumber>3</LineNumber>
    <PONumber />
    - <LineType>
    <Code>TAX</Code>
    <Meaning />
    </LineType>
    <LineDescription />
    - <LineGrossAmount>
    <Value>0</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </LineGrossAmount>
    <UnitPrice />
    <Quantity />
    - <UnitOfMeasure>
    <Code />
    <Meaning />
    </UnitOfMeasure>
    - <Tax>
    <TaxCode>USA_SALES_TAX</TaxCode>
    <TaxRate>0</TaxRate>
    </Tax>
    </DocumentPayableLine>
    - <Extend>
    <CLL_ERROR>ORA-20070: INVALID COUNTRY CODE</CLL_ERROR>
    </Extend>
    <DocumentPayerLegalEntityName>UB_LE</DocumentPayerLegalEntityName>
    <DocumentPayerLegalEntityRegNumber>9999</DocumentPayerLegalEntityRegNumber>
    <DocumentPayerTaxRegNumber />
    </DocumentPayable>
    - <Extend>
    <CLL_ERROR>ORA-20070: INVALID COUNTRY CODE</CLL_ERROR>
    </Extend>
    <VoucherNumber>11020</VoucherNumber>
    <RoutingNumber />
    </OutboundPayment>
    I tried the following way and it did not work:
    Sum(OutboundPayment[OutboundPayment/PaymentStatus/Code=’ISSUED’]/PaymentAmount /Value)
    I tried another way and even this did not work:
    decode(PaymentStatus/Code, 'VOID', ‘0’, PaymentAmount/Value*100)
    Can you please let me know how I can do this.
    Thanks in advance.

    Can you provide code on how I can create a loop?
    I'm not getting any error when calculating sum.
    Here is what I'm trying to do, lets say I have two checks:
    CHK1
    Amount:200.00
    Status: Issued
    CHK2
    Amount: 500.00
    Status: Void
    When calculatiing the tota for the checksl, I should see the total as 200 only because, the Check2 has been voided and it is considered zero.
    I tried the following ways and it did not work:
    Sum(OutboundPayment[OutboundPayment/PaymentStatus/Code=’ISSUED’]/PaymentAmount /Value)
    I tried another way and even this did not work:
    decode(PaymentStatus/Code, 'VOID', ‘0’, PaymentAmount/Value*100)
    Please help!!!!!!

  • I bought macbook pro used one because i wanna start to develop ios apps and i need Mavericks if it is a possible my mac is 10.6 please help me apple

    i bought macbook pro used one because i wanna start to develop ios apps and i need Mavericks if it is a possible my mac is 10.6 please help me apple
    Model Name: MacBook Pro
      Model Identifier: MacBookPro5,5
      Processor Name: Intel Core 2 Duo
      Processor Speed: 2.26 GHz
      Number Of Processors: 1
      Total Number Of Cores: 2
      L2 Cache: 3 MB
      Memory: 4 GB
      Bus Speed: 1.07 GHz
      Boot ROM Version: MBP55.00AC.B03
      SMC Version (system): 1.47f2
      Serial Number (system): W8******66D
      Hardware UUID: *****
      Sudden Motion Sensor:
      State: Enabled
    <Edited By Host>

    Back up your data, check your applications for compatibility, and download Yosemite from the Mac App Store.
    (121877)

  • I have just enrolled to study and my course is online. in order to view any of the course content, i need macromedia adobe flash paper to be able to read anything. Please help....

    I have just enrolled to study and my course is online. in order to view any of the course content, i need macromedia adobe flash paper to be able to read anything. Please help....

    Use a different device.
    Adobe did not develop Flash for iOS devices and has ended all Flash development for all mobile devices.
    You could try a different browser from the App store such as Skyfire or iSwifter.

  • In the Itunes Wishlist there is no price button that you can psuh to buy the items. So I cant buy my whole wishlist without doing it all seperatly and I dont know the total price of all the items. Please help!

    In the Itunes Wishlist there is no price button that you can push to buy the items. So I cant buy my whole wishlist without doing it all seperatly and I dont know the total price of all the items. Please help!

    Both the button and the total cost appear to have been removed in the current version of iTunes - I don't have them either and other people have posted about it as well. You can try leaving feedback for Apple and maybe they'll be added back in a future update : http://www.apple.com/feedback/itunesapp.html

  • HT1199 Hai, i tried to open itunes on my windows 8 laptop but it comes out with 'iTunes has stop working' notification and need to close the program everytime i try to load it. Please help! thanks.

    Hai, i tried to open itunes on my windows 8 laptop but it comes out with 'iTunes has stop working' notification and need to close the program everytime i try to load it. Please help! thanks.

    Hi ajay-9,
    Thanks for visiting Apple Support Communities.
    The steps in this article can help if iTunes is quitting unexpectedly on your PC:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Cheers,
    Jeremy

  • My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    Hi,
    You could use FND_FLEX_LOADER_APIS.UP_VALUE_SET_VALUE to upload them from staging table (I suppose you mean value set values...).
    You can find a sample scripts if you google around.
    What do you mean "how to map any API to our staging table" ?
    You should do at least the following mapping (which column(s) in the staging table will provide these information):
    - the 3 value sets name which you're going to update/upload (I suppose these are existing value sets or which have been already created)
    - the value set values and  description
    Try to start with something and if there is any issues the community could then help... but for the time being with the description of the problem you have provided, that's the best I can do...

  • Dear Madam/ Sir. I have problem, I forgot the Encrypt iphone backup password. And I need to backup to now Iphone 5s but I can't.  Please help me.

    Dear Madam/ Sir.
    I have problem, I forgot the Encrypt iphone backup password. And I need to backup to now Iphone 5s but I can't.
    Please help me.

    You must first buy Snow Leopard from Apple: 800-MY-APPLE (in the US)
    Make sure your system meets Snow Leopard's requirements:
    Mac OS X 10.6 "Snow Leopard" System Requirements
    To install Snow Leopard for the first time, you must have a Mac with:
    An Intel processor
    An internal or external DVD drive, or DVD or CD Sharing
    At least 1 GB of RAM (additional RAM is recommended)
    A built-in display or a display connected to an Apple-supplied video card supported by your computer
    At least 5 GB of disk space available, or 7 GB of disk space if you install the developer tools

  • I need help with my FaceTime app on my iPad 3. Someone please help!

    I can not log into FaceTime. Every time I try it gives me this error message I am not connected into a network, but I am. I'm at my whits end with this, please help me.

    Check Settings>General>Date & Time>Set Automatically>On. Make sure that the time zone setting is also set correctly.
    If that didn't solve the problem, restart your iPad and try again. If that fails, reset your iPad and try again.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Created PDF form in Acrobat XI Pro, but HELP fields disappear when I save FCDT file to PDF. Please help. Thanks!

    Created PDF form in Acrobat XI Pro, but HELP fields disappear when I save FCDT file to PDF. Please help. Thanks!

    I am not aware of a field type "Help" within a PDF form. I do not see it as a form field that can be added in the form edit mode.
    Forms Central forms do not support all the features of Acrobat forms.
    Are you talking about the "Tool Tips" or a hidden field that only shows when one enters a field and is hidden upon exiting the field.

  • HT201210 cont contact apple server error please help with ipad touch 4. im just fed up with apple please help me because why is it only apple with these kind of problems?

    cont contact apple server error please help with ipad touch 4. im just fed up with apple please help me because why is it only apple with these kind of problems?

    If you mean updae server
    Update Server
    Try:
    - Powering off and then back on your router.
    - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    - Change the DNS to either Google's or Open DNS servers
    Public DNS — Google Developers
    OpenDNS IP Addresses
    - For one user uninstalling/reinstalling iTunes resolved the problem
    - Try on another computer/network
    - Wait if it is an Apple problem
    Otherwise what server are you talking about

  • Need help pulling data from an outside file into my array.  Please help  =)

    Hi,
    I need help adapting my array to read the interest rates from an outside file. Here is my code and the outside file I wrote. Please help. Oh, the array in question is on line 259, inside of my calculation() method.
    Thanks...
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import java.text.DecimalFormat;
    import java.io.*;
    import javax.swing.JOptionPane;
    public class Workshop5 extends JFrame implements ActionListener
         //declare gui components
         //declare labels
         JPanel contentPane = new JPanel();
         JPanel graphPane = new JPanel();
        JLabel instructionLabel = new JLabel();
        JLabel amountLabel = new JLabel();
         JLabel orLabel = new JLabel();
         JLabel comboBoxLabel = new JLabel();
         JLabel termLabel = new JLabel();
         JLabel rateLabel = new JLabel();
         JLabel calcLabel = new JLabel();
         JLabel paymentLabel = new JLabel();
         JLabel tableLabel = new JLabel();
         //declare font object
         Font labelFont = new Font("Tahoma", Font.PLAIN, 16);
         //declare text fields
         JTextField amountField = new JTextField(20);    
         JTextField termField = new JTextField(20);     
         JTextField rateField = new JTextField(20);
         JTextField paymentField= new JTextField(20);
         //declare combo box for loan selection
         JComboBox comboBox = new JComboBox();
        //declare button group and radio buttons
        ButtonGroup buttonGroup = new ButtonGroup();
        JRadioButton enterRadioButton = new JRadioButton("Enter amount, term, & rate", true);
        JRadioButton selectRadioButton = new JRadioButton("Select a preset term/rate loan", false);
         //declare button objects
         JButton clearButton = new JButton();
        JButton calcButton = new JButton();
        JButton quitButton = new JButton();
         //declare text area for amortization
         JTextArea amortTextArea = new JTextArea();
         JTextArea testTextArea = new JTextArea();
         //declare scroll bar for amortization table
         JScrollPane scrollPane = new JScrollPane(amortTextArea,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
         public Workshop5()
              instructionLabel.setText("Choose one of the following payment calculation options:");
              instructionLabel.setFont(new Font("Tahoma",Font.PLAIN,16));
              //adds both buttons to button group     
              buttonGroup.add(enterRadioButton);
              buttonGroup.add(selectRadioButton);
              enterRadioButton.setFont(labelFont);
              enterRadioButton.setBackground(Color.WHITE);
              enterRadioButton.setContentAreaFilled(false);
             enterRadioButton.addActionListener(this); //adds action listener to enter radio button
              orLabel.setText("OR");
              orLabel.setFont(new Font("Tahoma",Font.BOLD,18));
              selectRadioButton.setFont(labelFont);
              selectRadioButton.setBackground(Color.WHITE);
              selectRadioButton.setContentAreaFilled(false);
              selectRadioButton.addActionListener(this); //adds action listener to select radio button
              amountLabel.setText("Enter mortgage amount");
              amountLabel.setFont(new Font("Tahoma", Font.PLAIN,16));
              amountField.requestFocusInWindow();
              termLabel.setText("Enter term length in years:");
              termLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
              rateLabel.setText("Enter interest rate:");
             rateLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
                comboBoxLabel.setText("Select a loan:");
             comboBoxLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
             comboBox.setBackground(new Color(255,255,255));
             comboBox.setFont(new Font("Tahoma", Font.PLAIN, 14));
             comboBox.setEnabled(false);
             ComboBox();
              calcLabel.setText("Press Calculate button to determine monthly payment.");
             calcLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
             calcButton.setText("Calculate");                    
             calcButton.setFont(new Font("Tahoma", Font.BOLD, 14));
             calcButton.addActionListener(this);
                //define monthly payment label
             paymentLabel.setText("Monthly payment:");
             paymentLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
             //define monthly payment text field
             paymentField.setFont(new Font("Tahoma", Font.BOLD,16));
             paymentField.setBackground(new Color(255,255,255));
             paymentField.setEditable(false); 
              //define clear button
              clearButton.setText("Clear"); 
              clearButton.setFont(new Font("Tahoma", Font.BOLD,14));
              clearButton.addActionListener(this);
              //define quit button
              quitButton.setText("Quit");
              quitButton.setFont(new Font("Tahoma", Font.BOLD,14));
              quitButton.addActionListener(this);         
              tableLabel.setText("Amoritization Table");
              tableLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
              graphPane.setBackground(Color.WHITE);
              //add components to content     
              getContentPane().add(contentPane);
              contentPane.setLayout(null);
              addComponent(contentPane, instructionLabel, 80,10,450,26);
              addComponent(contentPane, enterRadioButton, 30,40,220,30);
              addComponent(contentPane, orLabel, 280,40,100,30);
              addComponent(contentPane, selectRadioButton, 335,40,350,30);
              addComponent(contentPane, amountLabel, 100,80,220,26);
              addComponent(contentPane, amountField, 300,80,150,26);
              addComponent(contentPane, termLabel, 15,125,200,30);
              addComponent(contentPane, termField, 195,125,125,30);
              addComponent(contentPane, rateLabel, 62,160,200,30);
              addComponent(contentPane, rateField, 195,165,125,30);
              addComponent(contentPane, comboBoxLabel, 400,125,200,26);
              addComponent(contentPane, comboBox, 400,155,150,30);
              addComponent(contentPane, calcLabel, 100,200,400,30);
              addComponent(contentPane, calcButton, 250,240,100,30);
              addComponent(contentPane, paymentLabel, 150,285,200,30);
              addComponent(contentPane, paymentField, 300,285,100,30);
              addComponent(contentPane, clearButton, 100,330,100,30);
              addComponent(contentPane, quitButton, 400,330,100,30);
              addComponent(contentPane, tableLabel, 200,370,300,26);
              addComponent(contentPane, scrollPane, 10,400,450,360);
              addComponent(contentPane, graphPane, 475,400,305,360);
              //add window listener to close window when user presses X
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)    
                        System.exit(0);
             pack();   
         //method to add components
         private void addComponent(Container container, Component c, int x, int y, int width, int height)
              c.setBounds(x, y, width, height);
              container.add(c);
         //action performed method
         public void actionPerformed(ActionEvent event)
              Object source = event.getSource();
              if (source == calcButton)
                   Calculate();
              if (source == clearButton)
                   Clear();
              if (source == quitButton)
                   Exit();
              //defines active area based on user selection of mortgage calculation method
               //if user chooses to enter the mortgage manually, combo box fields are inactive
               if (source == enterRadioButton)
                    comboBox.setEnabled(false);
                    termField.setEnabled(true);
                 termField.setEditable(true);
                 rateField.setEnabled(true);
                 rateField.setEditable(true);
                 amountField.setText("");
                   amountField.requestFocusInWindow();
                   termField.setText("");
                  rateField.setText("");
                  paymentField.setText("");
                  amortTextArea.setText("");
              //if user chooses to select from a preset mortgage, rate and term fields are inactive
              if (source == selectRadioButton)
                   comboBox.setEnabled(true);
                   termField.setEnabled(false);
                   termField.setEditable(false);
                   rateField.setEnabled(false);
                   rateField.setEditable(false);
                   amountField.setText("");
                   amountField.requestFocusInWindow();
                   termField.setText("");
                   rateField.setText("");
                   paymentField.setText("");
                   amortTextArea.setText("");
         }//end of action performed method
         //combo box method
          public void ComboBox()
               String[] LoanArray = {" 7 years at 5.35 %", " 15 years at 5.50 %", " 30 years at 5.75 %"};
               for (int i = 0; i < LoanArray.length; i++)
                    comboBox.addItem(LoanArray);
         }//end combo box method
         //calculation method
         void Calculate()
              //resets fields
              paymentField.setText("");
         amortTextArea.setText("");
              //calculation variables
         NumberFormat currency = NumberFormat.getCurrencyInstance();
              int [] termArray = {7, 15, 30};                               //array of years
                   double [] yearlyInterestArray = {5.35, 5.5, 5.75};           //array of interest
                   int totalMonths = 0;                                    //total months
                   double Loan = 0.0;                               //amount of loan
                   double MonthlyInterest = 0.0;                               //monthly interest rate
                   double Payment = 0.0;                               //calculate payment
                   double monthlyPayment = 0.0;                                   //calculate monthly payment
                   double Interest = 0.0;                                              //variable for Interest Array input
                   int Term = 0;                                              //variable for Term Array input
                   double NewMonthlyInterest = 0.0;                               //new interest amount
                   double NewLoan = 0.0;                               //new loan amount
                   double Reduction = 0.0;                               //principle reduction
                   //validate input
                   try
                        Loan = Double.parseDouble(amountField.getText());
                   catch (NumberFormatException e)
                        JOptionPane.showMessageDialog(null,"Invalid Entry. Please enter valid loan amount.", "Error", JOptionPane.WARNING_MESSAGE);
                   //resets input fields after error message
              amountField.setText("");
              amountField.requestFocusInWindow();
                   //if select button is chosen
              if (selectRadioButton.isSelected())
                   int index = comboBox.getSelectedIndex();
                   Term = termArray[index];
                   Interest = yearlyInterestArray[index];
              //if user chooses to enter mortgage information
              else
                   if (enterRadioButton.isSelected())
                        //validates input
              try
              Term = Integer.parseInt(termField.getText());
              catch (NumberFormatException e)
                   JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid term length in years.", "Error",JOptionPane.WARNING_MESSAGE);
                   //clears fields after error message
                   termField.setText("");
                   termField.requestFocusInWindow();
              try
                   Interest = Double.parseDouble(rateField.getText());
              catch (NumberFormatException e)
                   JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid rate (without percent symbol).","Error",JOptionPane.WARNING_MESSAGE);
              //clears fields after error message
              rateField.setText("");
                             rateField.requestFocusInWindow();
                   //perform calculations
                   if (Loan > 0)
                        Loan = Double.parseDouble(amountField.getText());
                        MonthlyInterest = (Interest / 12)/100;
                        totalMonths = Term * 12;
                        monthlyPayment = Loan * MonthlyInterest *(Math.pow((1 + MonthlyInterest), totalMonths)/(Math.pow((1 + MonthlyInterest), totalMonths)-1));
              paymentField.setText("" + currency.format(monthlyPayment));
                        //send information to amortization text area
                   amortTextArea.append("Number\t");
                   amortTextArea.append(" Amount\t");
                   amortTextArea.append("Interest\t");
                   amortTextArea.append("Principle\t");
                   amortTextArea.append("Balance\n");
              NewLoan = Loan;
                        for (int i = 1; i <= totalMonths; i++)
                             NewMonthlyInterest = MonthlyInterest * NewLoan;
                             Reduction = monthlyPayment - NewMonthlyInterest;
                             NewLoan = NewLoan - Reduction;
                             amortTextArea.append(" " + i +"\t");
                             amortTextArea.append(" " + currency.format(monthlyPayment) + "\t");
                             amortTextArea.append(" " + currency.format(NewMonthlyInterest)+ "\t");
                             amortTextArea.append(" " + currency.format(Reduction) + "\t");
                             amortTextArea.append(" " + currency.format(NewLoan) + "\n");
                        //resets fields if loan amount is less than zero
                        if((Loan <= 0 || Term <= 0 || Interest <= 0))
                             paymentField.setText("");
                             amortTextArea.setText("");
         }//end calcualtion method
         //clear method
         void Clear()
              amountField.setText("");
              amountField.requestFocusInWindow();
              termField.setText("");
              rateField.setText("");
              paymentField.setText("");
              amortTextArea.setText("");
         }//end of clear method
         //main method
         public static void main(String args[])
              Workshop5 f = new Workshop5();
              f.setTitle("Carol's Mortgage Calculator");
              f.setBounds(200,100,800,800);
              f.setResizable(false);
              f.setVisible(true);
         }//end of main method
         //exit method
         void Exit()
              System.exit(0);
         }//end of exit method
    }//program end
    My data file is called: "InterestData.dat" and only contains the following text:
    5.35, 5.5, 5.75

    Ok, now I am getting this error message:
    cannot resolve symbol method lenght()
    Please help me out here, this is due tomorrow and I've been killing myself on it...
    attaching program with revised code included, see beginning of calculation method line 250:
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.* ;
    import java.text.NumberFormat;
    import java.text.DecimalFormat;
    import java.io.*;
    import javax.swing.JOptionPane;
    public class Workshop5 extends JFrame implements ActionListener
         //declare gui components
        //declare labels
        JPanel contentPane = new JPanel();
         JPanel graphPane = new JPanel();
         JLabel instructionLabel = new JLabel();
            JLabel amountLabel = new JLabel();
        JLabel orLabel = new JLabel();
        JLabel comboBoxLabel = new JLabel();
        JLabel termLabel = new JLabel();
        JLabel rateLabel = new JLabel();
        JLabel calcLabel = new JLabel();
        JLabel paymentLabel = new JLabel();
        JLabel tableLabel = new JLabel();
        //declare font object
        Font labelFont = new Font("Tahoma", Font.PLAIN, 16);
        //declare text fields
        JTextField amountField = new JTextField(20);
        JTextField termField = new JTextField(20);
        JTextField rateField = new JTextField(20);
        JTextField paymentField= new JTextField(20);
        //declare combo box for loan selection
        JComboBox comboBox = new JComboBox();
            //declare button group and radio buttons
            ButtonGroup buttonGroup = new ButtonGroup();
            JRadioButton enterRadioButton = new JRadioButton("Enter amount, term, & rate", true);
            JRadioButton selectRadioButton = new JRadioButton("Select a preset term/rate loan", false);
        //declare button objects
        JButton clearButton = new JButton();
            JButton calcButton = new JButton();
            JButton quitButton = new JButton();
        //declare text area for amortization
        JTextArea amortTextArea = new JTextArea();
        JTextArea testTextArea = new JTextArea();
        //declare scroll bar for amortization table
        JScrollPane scrollPane = new JScrollPane(amortTextArea, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
         public Workshop5()
             instructionLabel.setText("Choose one of the following payment calculation options:");
            instructionLabel.setFont(new Font("Tahoma",Font.PLAIN,16));
            //adds both buttons to button group
            buttonGroup.add(enterRadioButton);
            buttonGroup.add (selectRadioButton);
            enterRadioButton.setFont(labelFont);
            enterRadioButton.setBackground(Color.WHITE);
            enterRadioButton.setContentAreaFilled(false);
            enterRadioButton.addActionListener(this); //adds action listener to enter radio button
            orLabel.setText("OR");
            orLabel.setFont(new Font("Tahoma",Font.BOLD,18));
            selectRadioButton.setFont(labelFont);
            selectRadioButton.setBackground(Color.WHITE);
            selectRadioButton.setContentAreaFilled(false);
            selectRadioButton.addActionListener (this); //adds action listener to select radio button
              amountLabel.setText("Enter mortgage amount");
            amountLabel.setFont(new Font("Tahoma", Font.PLAIN,16));
            amountField.requestFocusInWindow();
            termLabel.setText("Enter term length in years:");
            termLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
            rateLabel.setText("Enter interest rate:");
            rateLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
            comboBoxLabel.setText("Select a loan:");
            comboBoxLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
            comboBox.setBackground(new Color(255,255,255));
            comboBox.setFont(new Font("Tahoma", Font.PLAIN, 14));
            comboBox.setEnabled(false);
            ComboBox();
            calcLabel.setText("Press Calculate button to determine monthly payment.");
            calcLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
            calcButton.setText("Calculate");
            calcButton.setFont(new Font("Tahoma", Font.BOLD, 14));
            calcButton.setBackground(new Color(202,255,112));
            calcButton.addActionListener(this);
            //define monthly payment label
            paymentLabel.setText("Monthly payment:");
            paymentLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
            //define monthly payment text field
            paymentField.setFont (new Font("Tahoma", Font.BOLD,16));
            paymentField.setBackground(new Color(255,255,255));
            paymentField.setEditable(false);
              //define clear button
            clearButton.setText("Clear");
            clearButton.setFont(new Font("Tahoma", Font.BOLD,14));
            clearButton.setBackground(new Color(202,255,112));
            clearButton.addActionListener(this);
            //define quit button
            quitButton.setText("Quit");
            quitButton.setFont(new Font("Tahoma", Font.BOLD,14));
            quitButton.setBackground(new Color(202,255,112));
            quitButton.addActionListener(this);
              //define label for amortization table
            tableLabel.setText ("Amoritization Table");
              tableLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
            graphPane.setBackground(Color.WHITE);
            //add components to content
            getContentPane().add(contentPane);
            contentPane.setLayout(null);
              addComponent(contentPane, instructionLabel, 80,10,450,26);
            addComponent(contentPane, enterRadioButton, 30,40,220,30);
            addComponent(contentPane, orLabel, 280,40,100,30);
            addComponent(contentPane, selectRadioButton, 335,40,350,30);
            addComponent(contentPane, amountLabel, 100,80,220,26);
            addComponent(contentPane, amountField, 300,80,150,26);
            addComponent(contentPane, termLabel, 15,125,200,30);
            addComponent(contentPane, termField, 195,125,125,30);
            addComponent(contentPane, rateLabel, 62,160,200,30);
            addComponent(contentPane, rateField, 195,165,125,30);
            addComponent(contentPane, comboBoxLabel, 400,125,200,26);
            addComponent(contentPane, comboBox, 400,155,150,30);
            addComponent(contentPane, calcLabel, 100,200,400,30);
            addComponent(contentPane, calcButton, 250,240,100,30);
            addComponent(contentPane, paymentLabel, 150,285,200,30);
            addComponent(contentPane, paymentField, 300,285,100,30);
            addComponent(contentPane, clearButton, 100,330,100,30);
            addComponent(contentPane, quitButton, 400,330,100,30);
            addComponent(contentPane, tableLabel, 200,370,300,26);
            addComponent(contentPane, scrollPane, 10,400,450,360);
            addComponent(contentPane, graphPane, 475,400,305,360);
            //add window listener to close window when user presses X
            addWindowListener(new WindowAdapter()
                 public void windowClosing(WindowEvent e)
                      System.exit(0);
            pack();
           //method to add components
           private void addComponent(Container container, Component c, int x, int y, int width, int height)
                   c.setBounds(x, y, width, height);
                   container.add(c);
           //action performed method
           public void actionPerformed(ActionEvent event)
                   Object source = event.getSource();
                   if (source == calcButton)
                           Calculate();
                   if (source == clearButton)
                           Clear();
                   if (source == quitButton)
                           Exit();
                   //defines active area based on user selection of mortgage calculation method
                   //if user chooses to enter the mortgage manually, combo box fields are inactive
                   if (source == enterRadioButton)
                           comboBox.setEnabled(false);
                           termField.setEnabled(true);
                   termField.setEditable(true);
                   rateField.setEnabled(true);
                   rateField.setEditable(true);
                   amountField.setText ("");
                           amountField.requestFocusInWindow();
                           termField.setText("");
                       rateField.setText("");
                       paymentField.setText ("");
                       amortTextArea.setText("");
                   //if user chooses to select from a preset mortgage, rate and term fields are inactive
                   if (source == selectRadioButton)
                           comboBox.setEnabled(true);
                           termField.setEnabled(false);
                           termField.setEditable(false);
                           rateField.setEnabled (false);
                           rateField.setEditable(false);
                           amountField.setText("");
                           amountField.requestFocusInWindow();
                           termField.setText ("");
                           rateField.setText("");
                           paymentField.setText("");
                           amortTextArea.setText("");
           }//end of action performed method
           //combo box method
            public void ComboBox()
                   String[] LoanArray = {" 7 years at 5.35 %", " 15 years at 5.50 %", " 30 years at 5.75 %"};
                   for (int i = 0; i < LoanArray.length; i++)
                           comboBox.addItem(LoanArray);
    }//end combo box method
    //calculation method
         void Calculate()
              //resets fields
              paymentField.setText("");
              amortTextArea.setText("");
              //calculation variables
              NumberFormat currency = NumberFormat.getCurrencyInstance();
              //declare input stream object
              InputStream istream;
              //create a file object to refer to the outside file
              File interestData = new File("InterestFile.dat");
              //assign instream to the new file object
              istream = new FileInputStream(interestData);
              try
                   StringBuffer sb = new StringBuffer();
                   BufferedReader in = new BufferedReader(new FileReader(interestData));
                   String line = "";
                   while((line = in.readLine()) != null)
                        sb.append(line);
                   in.close();
                   String fileData = sb.toString();
                   String[] splitData = fileData.split(", ");
                   double [] yearlyInterestArray = new double[splitData.length()];
                   for(int j = 0; j < splitData.length(); j++)
                        yearlyInterestArray[j] = new Double(splitData[j]).doubleValue();
              catch (IOException e)
                   JOptionPane.showMessageDialog(null, "File does not exist." + e.getMessage());
              int [] termArray = {7, 15, 30}; //array of years
              double [] yearlyInterestArray = { 5.35, 5.5, 5.75}; //array of interest
              int totalMonths = 0; //total months
              double Loan = 0.0; //amount of loan
              double MonthlyInterest = 0.0; //monthly interest rate
              double Payment = 0.0; //calculate payment
    double monthlyPayment = 0.0; //calculate monthly payment
    double Interest = 0.0; //variable for Interest Array input
    int Term = 0; //variable for Term Array input
    double NewMonthlyInterest = 0.0; //new interest amount
    double NewLoan = 0.0; //new loan amount
    double Reduction = 0.0; //principle reduction
    //validate input
    try
         Loan = Double.parseDouble(amountField.getText());
    catch (NumberFormatException e)
         JOptionPane.showMessageDialog(null,"Invalid Entry. Please enter valid loan amount.", "Error", JOptionPane.WARNING_MESSAGE);
    //resets input fields after error message
    amountField.setText("");
    amountField.requestFocusInWindow ();
              //if select button is chosen
              if (selectRadioButton.isSelected())
                   int index = comboBox.getSelectedIndex ();
                   Term = termArray[index];
                   Interest = yearlyInterestArray[index];
              //if user chooses to enter mortgage information
              else
                   if (enterRadioButton.isSelected())
              //validates input
              try
                   Term = Integer.parseInt(termField.getText());
    catch (NumberFormatException e)
         JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid term length in years.", "Error",JOptionPane.WARNING_MESSAGE);
         //clears fields after error message
         termField.setText("");
         termField.requestFocusInWindow();
    try
         Interest = Double.parseDouble(rateField.getText());
    catch (NumberFormatException e)
         JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid rate (without percent symbol).","Error",JOptionPane.WARNING_MESSAGE);
         //clears fields after error message
         rateField.setText("");
         rateField.requestFocusInWindow();
              //perform calculations
              if (Loan > 0)
                   Loan = Double.parseDouble(amountField.getText ());
                   MonthlyInterest = (Interest / 12)/100;
                   totalMonths = Term * 12;
                   monthlyPayment = Loan * MonthlyInterest *(Math.pow ((1 + MonthlyInterest), totalMonths)/(Math.pow((1 + MonthlyInterest), totalMonths)-1));
    paymentField.setText("" + currency.format(monthlyPayment));
    //send information to amortization text area
    amortTextArea.append("Number\t");
    amortTextArea.append(" Amount\t");
    amortTextArea.append("Interest\t");
    amortTextArea.append("Principle\t");
    amortTextArea.append("Balance\n");
                   NewLoan = Loan;
                   for (int i = 1; i <= totalMonths; i++)
         NewMonthlyInterest = MonthlyInterest * NewLoan;
         Reduction = monthlyPayment - NewMonthlyInterest;
         NewLoan = NewLoan - Reduction;
         amortTextArea.append(" " + i +"\t");
         amortTextArea.append (" " + currency.format(monthlyPayment) + "\t");
         amortTextArea.append(" " + currency.format(NewMonthlyInterest)+ "\t");
         amortTextArea.append(" " + currency.format(Reduction) + "\t");
         amortTextArea.append(" " + currency.format(NewLoan) + "\n");
    //resets fields if loan amount is less than zero
    if((Loan <= 0 || Term <= 0 || Interest <= 0))
         paymentField.setText("");
         amortTextArea.setText("");
         }//end calcualtion method
    //clear method
    void Clear()
    amountField.setText("");
    amountField.requestFocusInWindow();
    termField.setText("");
    rateField.setText("");
    paymentField.setText("");
    amortTextArea.setText("");
    }//end of clear method
    //main method
    public static void main(String args[])
    Workshop5 f = new Workshop5();
    f.setTitle("Carol's Mortgage Calculator");
    f.setBounds(200,100,800,800);
    f.setResizable(false);
    f.setVisible(true);
    }//end of main method
    //exit method
    void Exit()
    System.exit(0);
    }//end of exit method
    }//program end

  • Hello, I have a new idea for apple... an idea for a new software !!! I need to know how to contact an official way to apple. Please help me

    I need to know how to contact an official way to apple !!! an E-mail official a site official... anything... Please help me, is a project for a new software.

    Apple does not accept unsolicited ideas. If you insist on sending them your idea according to  Apples policies the idea becomes the property of Apple and you loose all rights to it.
    It would be better for you to develop the idea, then if it amounts to anything and Apple is interested they will contact you. (As with Apples current move to acquire Beats Electronics).
    regards

  • I have 64 bit Vista Home Premium.  I need to download Flash in order to use Premier Pro CS4.  Please help me so I can use your program.

    Dear Folks:
    I have the trial version of Adobe Premier Pro CS4, and I have 64 bit Vista Home Premium.  I can not download Flash in order to view the Help Program Tutorial.  I am a student at CCBC Essex Campus, and I need to assemble a three minute video for a class.  I have Internet Explorer (latest version), and I also have Firefox.  Please help me with a solution.
    Thank You,
    Dan Pasten
    111 Alcock Road
    Essex, Md. 21221-2110
    United States of America
    (410) 686-8067

    For easy searching, download the product user guide PDF(s)
    The individual CS5 pages also have links to the earlier user guide pages
    CS5 User Guides - online and PDF (right click PDF link to save PDF to your hard drive)
    http://blogs.adobe.com/premiereprotraining/2010/08/help-documents-for-creative-suite-5-pdf -and-html.html
    Some tutorial links... these MAY not apply to CS4, but it doesn't cost to look
    http://forums.adobe.com/thread/913334
    http://forums.adobe.com/thread/845731
    -and http://forums.adobe.com/message/3234794
    Encore http://tv.adobe.com/show/learn-encore-cs4/
    A "crash course" http://forums.adobe.com/thread/761834
    A Video Primer for Premiere http://forums.adobe.com/thread/498251
    Premiere Tutorials http://forums.adobe.com/thread/424009
    PPro Wiki http://premierepro.wikia.com/wiki/Adobe_Premiere_Pro_Wiki
    Tutorial http://www.tutorialized.com/tutorials/Premiere/1
    Tutorial http://www.dvxuser.com/V6/forumdisplay.php?f=21
    Tutorial HD to SD w/CS4 http://bellunevideo.com/tutorials/CS4_HD2SD/CS4_HD2SD.html
    Exporting to DVD http://help.adobe.com/en_US/premierepro/cs/using/WS3E252E59-6BE5-4668-A12E-4ED0348C3FDBa.h tml
    And http://help.adobe.com/en_US/premierepro/cs/using/WSCDE15B03-1236-483f-BBD4-263E77B445B9.ht ml
    Color correction http://forums.adobe.com/thread/892861
    Photo Scaling for Video http://forums.adobe.com/thread/450798
    -Too Large May = Crash http://forums.adobe.com/thread/879967
    -And another crash report http://forums.adobe.com/thread/973935
    After Effects Tutorials http://www.videocopilot.net/
    Authoring http://www.videocopilot.net/tutorials/dvd_authoring/
    Encore Tutorial http://www.precomposed.com/blog/2009/05/encore-tutorial/
    And more Encore http://library.creativecow.net/articles/devis_andrew/
    Surround Sound http://forums.adobe.com/thread/517372
    Regions and NTSC vs PAL http://forums.adobe.com/thread/951042

  • HT2311 i currently have mac os x and cannot download itunes because it say that i need to have 10.5 or more so i can have itunes please help because i need itunes badly than you

    I hace a mac os x and doesnt let me install itunes because there's a message that tells me that i need 10.5 or more please help...and tell me what i need to buy or download so i can have itunes asap thanks

    Okay, now we are getting somewhere.  With a Core2Duo you can upgrade to at least Snow Leopard, and you will need Snow Leopard at least if you want to upgrade further.
    1) Make sure your computer meets Snow Leopard technical specifications - http://support.apple.com/kb/SP575  This mostly means making sure it is an Intel Mac (yours is) and has at least 1GB RAM (more is recommended).  To check RAM, go to the Apple in the upper left corner of any window, then  "About This Mac". Now continue to "More Info...".  It should say you have at least 1GB of "memory".
    2) Apple no longer carries 10.6 in its stores or online. Telephone Apple to purchase a Snow Leopard disc. In the USA: (800) 676-2775 (contact information for other countries: http://support.apple.com/kb/HE57)
    Alternatively you can buy from online retailers but anticipate paying much more than the original price which is the price still charged by Apple
    3) Backing up your computer before upgrading is always a good idea.
    4) After installing from the DVD, update your Snow Leopard installation using Software Update or manually downloading and installing the Mac OS X 10.6.8 Update Combo v.1.1 - http://support.apple.com/kb/DL1399
    Further upgrade options:
    Kappy 08/2012 post on upgrading to Snow Leopard, then Lion or Mountain Lion -  https://discussions.apple.com/message/19401628 - including how to get Snow Leopard and Lion since Apple removed them from the online store. 

Maybe you are looking for

  • Reservation not updating at the time of over delivery

    Hello Experts, At our client place over delivery is activated in production orders. At the time of confirmation , system is allowing for doing the GR of over delivered  material. But at the time of GI, system is not calculating the raw material for o

  • Lion + Safari made Google Earth stop working properly

    Upgraded to Lion now Google Earth Plugin won't work on Safari anymore. It works perfectly on Firefox, Chrome and Opera. I would like to keep using...please help. Thanks. It worked FLAWLESSLY (Safari & Google Earth) on Snow Leopard before upgrading to

  • Trouble Using Character Sets - Chinese GB2312

    Hi, I am trying to display my site in Simplified Chinese (GB2312). I have verified that all of the files are encoded with the GB2312 character set, when I open them in a language capable editor I can see chinese characters. I have also used <cfheader

  • Snapshot Rep. between 2 schemas in same instance

    Hi, I need to have two copies of my data within one instance. One copy is updateable by an admin user and the other copy is read- only by other users. The problem is that I want to allow the admin user to update the data without the others being affe

  • Customer Master - Deletion

    Hi Gurus, Please tell me how can i delete customer?? I am deleting it in OBR2 but if we go in tcode VA01 it shows in F4 selection. Please revert asap. Thank You