Group total amount in body margin

I have a group total amount and remark fields placed in the body margin. All the fields are inside a frame, which is set to "All Pages". And all the fields is set to "First Page".
My expected result is that the content will only show at the end of each group. But the fact is that, though they are all using "First Page", but the group total amount appears on every pages while the remark fields work!
Any idea? Thanks!

the group total (and remark fields?) should be in a frame outside the grouping frame, not the margin.

Similar Messages

  • Group totals summary in another group summary section

    I have a report requirements that need to re-display the group total in a summary section.   Please see below simple example.  The second summary does not have fixed number of Units, it depends how many units are in each Department.
    I am not able to reproduce the department summary.   Is this possible in SSRS, I can do this in crystal?
    Example:
    Department ABC  Unit 100
    details line here....
    Unit 100 totals here
    Unit 120
    details line here.....
    Unit 120 totals here
    Unit 140....... 
    Department ABC summary
    Unit 100 total
    Unit 120 total
    Unit 140 total
    Department XYZ 
    Unit .................
    Department XYZ summary
    unit totals.................... (one to many)
    Final Summary
    Department ABC total
    Department XYZ total
    Jim Pan

    Hi Jim,
    In your case, we can work around the issue in SSRS. Suppose we have a dataset (DataSet1) include following fields: Department, Unit, Amount. Please refer to the following steps:
    Add a table in the report body. Please refer to the table structure below:
    Parent Group: Department
    Child Group: Unit
    Data: Amount
    Click the blank arrow of (Details) in the Row Groups dialog box. Click Add Total.
    Use the same method add total to the Unit and Department group.
    There is a screenshot for your reference:
    If you have any questions, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • The page total amount is not correct on discoverer plus 10.1.1.48.18

    on my discoverer report, there is sunnary field based on a column.
    for example, I have a salesrep expense discoverer report.
    the salesrep name is the page item, each page has one salesrep, under the page item there are many line which show the expense detail amount, there is a column called expense, under the expense column there is a total amount summary field to sum the expense for this salesrep.
    Sometimes, the total amount is not the sum of the expense column, sometimes the total amount show negative zero as: -0.00. What I thought this maybe a number round issue.
    Does anybody has similar issue? how to fix this ?
    Thanks

    I actually used toad to run the query and exported to EXCEL then sum it in excel, I got the correct total amount.
    the following is the SQL query, we use the total feature to sum the commission:
    select
    pt.payee_salesrep_id,
    sr.name||','||sr.attribute9 salesrep_name,
    sr.attribute15 employee_number,
    pt.payrun_id,
    pr.name payrun_name,
    decode(pt.incentive_type_code,'COMMISSION',2,'PMTPLN',4,'PMTPLN_REC',1,'MANUAL_PAY_ADJ',2) Sort,
    decode(pt.incentive_type_code, 'PMTPLN','To be Applied in Future','PMTPLN_REC','Previous Payments Affecting Commissions',q.description) Variable,
    sum(decode(pt.incentive_type_code,
    'COMMISSION',decode(q.attribute3,'ARR 12-36',apps.sg_oic_reports.get_multiple(q.name,to_number(ch.attribute16)),1) sign(pt.payment_amount) abs(pt.input_achieved) ,
    pt.payment_amount)
    ) Revenue,
    sum(pt.payment_amount) commission
    from apps.cn_payment_transactions pt,
    apps.cn_commission_headers ch,
    apps.jtf_rs_salesreps sr,
    apps.cn_quotas q,
    apps.cn_payruns pr
    WHERE pt.quota_id = q.quota_id
    and ch.commission_header_id(+) = pt.commission_header_id
    and pt.payee_salesrep_id = sr.salesrep_id
    and pt.payrun_id = pr.payrun_id
    and hold_flag <> 'Y'
    and pr.accounting_period_id>2005012
    and pt.payment_amount<>0
    group by
    pt.payee_salesrep_id,
    sr.name||','||sr.attribute9,
    sr.attribute15,
    pt.payrun_id,
    pr.name,
    pt.incentive_type_code,
    decode(pt.incentive_type_code,'COMMISSION',2,'PMTPLN',4,'PMTPLN_REC',1,'MANUAL_PAY_ADJ',2) ,
    decode(pt.incentive_type_code, 'PMTPLN','To be Applied in Future','PMTPLN_REC','Previous Payments Affecting Commissions',q.description)
    having sum(pt.payment_amount) <>0

  • Ssrs 2008 r2 display only final total amount

    In an existing ssrs 2008 r2 report, I want the final grand total to appear as the last amount displayed in the SSRS report.
    In the 'main' matrix of the report, I have created an outside group row below the last line of the matrix.
    The expresion for this statement looks the the following:
    ="Grand Total: $"+str(sum(cdec(Fields!TransactionAmount.Value),"datasetname")).
    The total amount is correct, but this total amount line appears after every control break. Basically the amount appears every
    time the control break changes by date, teacher, or student number.
    The extra row I added does contain grouping references to date, teacher, and student number. Thus to solve my problem:
    1. Can you tell me how to remove the grouping references to date, teacher, and student number so that the last row will be the only place the total amount will be displayed?
    2. If the above is not an option, can you tell me how to add an extra row to the 'main' matrix so the report groupings do not appear on the final total line?
    3. If the above 2 choices are not an option, would you tell me how to add the final total line in the final report footer and/or any place you believe the final total amount will appear only one time?

    Hi Wendy,
    According to your description, you want to add a row into your matrix to get the total value of TransactionAmount. This can be final total value which appears only one time in your matrix. Right?
    In this scenario, the reason why the total amount line appears after each break change (data, teacher..) because this total amount line is still within the parent group. I guess you didn't add the outside group row on the top parent group. So we just need
    to right click on the textbox which is top parent group, insert a row outside of group. Then put your expression into the added row. Now the total amount will appear only one time in the matrix. It looks like below:
    Reference:
    Understanding Groups (Report Builder and SSRS)
    If you have any feedback on our support, please click
    here.
    Best Regards,
    Simon Hou 

  • 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

  • She cess not coming in j1iin(TOTAL AMOUNT SECTION)

    HI ,
    TAXINN PROCEDURE
    in j1iin
    all duties bed/ecess & also shecess are coming  in INVOICE ITEM DETAILS SECTION  in columns BED/ECS/TAX1
    But in below  TOTAL AMOUNT section
    BED/ECS ARE COMING
    & ONLY SHECESS FIELD IS NOT COMING
    1 in excise registeration details i've selected nccd/at1/at2 etc
    2 also in classify ctype i've maintained JA!X Shecess
    But Still in J1iin shecess field in TOTAL AMOUNT SECTION IS NOT COMING
    pL SUGGEST

    Will explain with Eg:
    Say,
    You created Tax Codes: A1 - [email protected]%  & A2 - CST@2%
                                          B1 - [email protected]% & B4-VAT@4%.
    while creating you dont need to enter any value in FTXP, you can save directly w/o values.
    Now In OB40 -
    select the CST Acct Key- to assign CST Tax Codes along with GL accounts ( here you can either maintain same or diff GL accounts, if you assign Diff GL accounts, that would be easy to track, wrt Tax code wise)
    similarly , select the VAT Acct Key - to assign VAT Tax Codes along with GL accounts.
    Create Cond rec- VK11 for CST/VAT with "Country/ Plant region / dest  point region/ Tax class- Cust/Tax Clas Mat" -
    here when you are creating cond rec's- you need to enter "%" manually, system will not pick the "%" automatically, becoz in FTXP , we havent maintained any values. ( if you want the system should pick "%", then maintain the values against to any "Output tax cond type " in FTXP)
    This will def'ly solve ur purpose.
    reg: ur 3rd query- u just assign ur GL accounts to all ETT for ur Excise Group-will solve
    try n revert.

  • Total Amount Spend (ekbe-dmbtr) on Material & Vendor

    Hi,
    In My first ITAB, I have a list of Material & It's related Vendor
    Like,
    Material      Vendor
    MM1             ABC
    MM2            ABC
    MM2           XYZ
    MM3            MNO
    In my next ITAB I need to find Total Amount Spend for this Material on It's Vendors.
    (From - MIGO i.e. table EKBE )
    I try to do this with following code -
    IF it_comb IS NOT INITIAL.
        LOOP AT it_comb INTO wa_comb.
       SELECT a~matnr c~lifnr SUM( b~menge ) SUM( b~dmbtr )
            INTO CORRESPONDING FIELDS OF it_pssum
            FROM ekbe AS b INNER JOIN ekpo AS a ON a~ebeln = b~ebeln AND a~ebelp = b~ebelp
                                        INNER JOIN ekko AS c ON c~ebeln = a~ebeln
           WHERE a~matnr = wa_comb-matnr
            AND c~lifnr = wa_comb-lifnr
            AND b~bwart EQ '101'
            GROUP BY a~matnr c~lifnr.
          ENDSELECT.
         endloop.
         endif.
    Here First ITAB is it_comb.
    When I debugg - The Values are correct in IT_COMB and IT_PSSUM - matnr & lifnr but it's not fetching Values for  IT_PSSUM - menge & dmbtr.

    Thank You All.
    @Medha & NabheetMadan
    Yes, I know it's not a good practice. But in PO table I have more than 10 Lac Records.
    And If I take Loop Inside the Loop it's taking Lots of Time (going it Time Out ), Also if I use FOR ALL ENTRIES IN - Because I need to take all Records and it's Total on MATNR & LIFNR.
    @ Vinod
    I try it with
    SELECT a~matnr c~lifnr SUM( b~menge ) AS menge SUM( b~dmbtr ) AS dmbtr
    it's working. Thanks.
    Yeah.. I know it's not in proper Index, but I need to do - Because I want to Work On EKBE values On Each Material & Vendor Combination.

  • Example query for po headers total amount(including tax amount) from po_headers_all table in  r12

    HI
    there is no such column like po_amount in po_headers_all table then how can i get po total amount(including tax amount) from po_headers_all table  or else tell me how to get data from views  in R12
    As we are using sql developer tool to build queries in our project
    With regards
    siva

    PO line total is not included the tax, to View the tax amount (N) Action-> manage tax
    1) You have to sum up the lines to get the PO total,
      select ph.segment1 po_num, sum ( (pl.unit_price * pl.quantity)) price
        from po_lines_all pl, po_headers_all ph
       where     pl.po_header_id = ph.po_header_id
             and ph.type_lookup_code in ('STANDARD', 'BLANKET')   --Add as per your requirement
    --          and ph.segment1 = '2017'
    --          and ph.org_id = 7852        --Use when you have multiple OU
    group by ph.segment1
    2) To get the tax
    SELECT *
        FROM (  SELECT lines.line_num line_number,
                       lines.item_description line_description,
                       dist.distribution_num dist_number,
                       dist.code_combination_id dist_code_combination_id,
                       NVL (dist.nonrecoverable_tax, 0) nonrecoverable_tax,
                       NVL (dist.recoverable_tax, 0) recoverable_tax,
                         NVL (dist.nonrecoverable_tax, 0)
                       + NVL (dist.recoverable_tax, 0)
                          total_tax,
                       (NVL (dist.req_line_quantity, 0) * NVL (lines.unit_price, 0))
                          amount,
                       dist.org_id,
                       dist.DISTRIBUTION_ID
                  FROM po_requisition_lines_all lines, po_req_distributions_all dist
                 WHERE     lines.requisition_line_id = dist.requisition_line_id
                       AND NVL (lines.cancel_flag, 'N') <> 'Y'
                       AND NVL (lines.modified_by_agent_flag, 'N') = 'N'
    --                   AND lines.requisition_header_id = :1
              ORDER BY lines.line_num, dist.distribution_num) QRSLT
    ORDER BY LINE_NUMBER, DIST_NUMBER
    Join the po_distributions_all, po_lines_all & po_headers_all tables to get the specific value.
    Thanks

  • Report that generates total amount for cost elements/department

    Dear Experts,
    I have been using report GR55 in which generates the total amounts via cost centers and cost elements groups however, it displays a detailed distribution of cost rather than by department, example below.
    Mining
        Labor 500
        Material 1000
    Development
        Labor 500
        Material 500
    While business requires a report that displays the total cost per department rather than the example above, the report should display the following example.
    Mining 1500
    Development 1000
    Is there a report in standard SAP that generates the example above?
    Appreciate your help
    Jan
    Edited by: UserID on Jul 20, 2011 4:48 AM

    HI,
    You will get the cost center wise report by using T code KSB1.
    Please check and confirm.
    Thanks and Regards
    Binoj M D

  • Weekly Group Total and associated YTD total

    Hello,
    I need to show current week group total and total year to date of the same group.  My columns are Model, Department, Issue.  Currently, the report is grouped on Model, Department and Issue with a filter for date.  Can this be done?   Thank you

    Create a formula field, say {@Current Week Amount} as (basic syntax):
    if datepart("ww", {datefield}) = datepart("ww", CurrentDate) then
      formula = {amount}
    else
      formula = 0
    end if
    You can then sum() this, or place it in a detail line, or whatever.  It will only have a (non-zero) value when the date field is in the current week.
    HTH,
    Carl

  • How to stop non statistical condition type value from updating total amount

    Gurus,
    Can any body explain me how to do following setting,
    How to Stop non statistical condition type value from updating Total Amount
    Regards,
    Sai

    Dear Sai,
    You need to make that condition type as Statistical one
    Go to SPRO - Sales and Distr. - Basic Functions - Pricing - Define and Assign Pricing Proc - Maintain Pricing Proc - Control Date
    Select the proc. - select the condition type and activate the  check box Statistical
    This will show the amount of the condition but will not consider for the net value calculation
    Hope this will help you
    regards,
    Sagar

  • Get the Total Amount Paid of an A/R Invoice

    Hi to All.,
    Im doing a Report where in i should show the total amount paid in an A/R Invoice
    But my Problem is i dont know what table to get it ..
    thx in advance ..

    Hi!
    Try my query here. I'm using this to get my AR Balance base on the date I enter.
    The table I use here were OITR and ITR1 (table of internal reconciliation).
    SELECT
    T0.DocNum,
    T0.DocDate,
    T0.DocTotal,
    isnull(T3.ReconSum,0) as 'Paid to Date',
    ((T0.[DocTotal]) -isnull(T3.reconsum,0)) Balance
    FROM OINV T0 
    LEFT OUTER JOIN (
    SELECT a1.[SrcObjTyp],sum(isnull(a1.[ReconSum],0)) as 'ReconSum',a1.[SrcObjAbs] from OITR a0 INNER JOIN ITR1 a1 ON a0.ReconNum = a1.ReconNum and (a0.ReconDate < [%0]) and a0.iscard='C'
    GROUP BY a1.[SrcObjTyp],a1.[SrcObjAbs]) T3 on T0.[ObjType]=T3.[SrcObjTyp] and  T0.Docentry=T3.[SrcObjAbs]
    where T0.DocDate < [%0] and T0.DocTotal >0
    Hope this helps!
    Regards,

  • Urgent : how I get tree type group total result

    hi master
    sir now system give me this type for result
    PARENT ACCID DRBAL CRBAL
    K1
    K11
    11 K1101 46291132
    11 K1102 13182173
    11 K1103 23784045
    11 K1104
    11 K1105
    11 K1106
    11 K1107 10001795
    11 K1108 9083529
    11 K1109
    11 K1110 4224350
    11 K1111
    11 K1112 6696832
    11 K1113 7963381
    11 K1114 742766
    1 K12
    12 K1201 1486082
    12 K1202
    12 K1203
    1 K13
    13 K1301
    1301 K130101
    1301 K130102
    1301 K130103
    1301 K130104 1977616
    1301 K130105
    1301 K130106 736266
    1301 K130107 396673
    1301 K130108 42751
    1301 K130109 298362
    1301 K130110 187696
    1301 K130111 537
    1301 K130112 942
    1301 K130113 987
    1301 K130114 1272
    1301 K130115 40000
    13 K1302
    1302 K130201
    1302 K130202
    1302 K130203
    1302 K130204
    1302 K130205 259941
    13 K1303
    1303 K130301
    1303 K130302
    1303 K130303 177716
    13 K1304
    1304 K130401
    1304 K130402
    1304 K130403
    1304 K130404
    1304 K130405
    1304 K130406 809719
    1304 K130407
    1304 K130408 1786091
    13 K1305
    1305 K130501
    1305 K130502
    13 K1306
    1306 K130601
    13 K1311
    1311 K131101 788780
    K2
    2 K21
    21 K2101
    2101 K210101
    2101 K210104
    21 K2102
    2102 K210201
    2102 K210202
    22 K2205
    2205 K220501
    2205 K220502
    220502 K22050201
    220502 K22050202
    220502 K22050203
    220502 K22050204
    22 K2206
    2206 K220601
    2206 K220602
    but sir i need this type of result
    PARENT ACCID DRBAL CRBAL
    GROUP NAME K1
    GROUP NAME K11
    11 K1101 46291132
    11 K1102 13182173
    11 K1103 23784045
    11 K1104
    11 K1105
    11 K1106
    11 K1107 10001795
    11 K1108 9083529
    11 K1109
    11 K1110 4224350
    11 K1111
    11 K1112 6696832
    11 K1113 7963381
    11 K1114 742766
    TOTAL
    1 K12
    TOTAL
    GROUP NAME
    12 K1201 1486082
    12 K1202
    12 K1203
    TOTAL
    1 K13
    13 K1301
    1301 K130101
    1301 K130102
    1301 K130103
    1301 K130104 1977616
    1301 K130105
    1301 K130106 736266
    1301 K130107 396673
    1301 K130108 42751
    1301 K130109 298362
    1301 K130110 187696
    1301 K130111 537
    1301 K130112 942
    1301 K130113 987
    1301 K130114 1272
    1301 K130115 40000
    13 K1302
    1302 K130201
    1302 K130202
    1302 K130203
    1302 K130204
    1302 K130205 259941
    13 K1303
    1303 K130301
    1303 K130302
    1303 K130303 177716
    13 K1304
    1304 K130401
    1304 K130402
    1304 K130403
    1304 K130404
    1304 K130405
    1304 K130406 809719
    1304 K130407
    1304 K130408 1786091
    13 K1305
    1305 K130501
    1305 K130502
    13 K1306
    Sir I need total group by group father group total and child group total
    Please help me how I get tree type group total result

    Hi master
    thankyou for your reply
    Sir,
    i know and you see my working i get code form master table and get detal amount form other table
    I have two table see table
    Acctab               Baltab
    PARENT           PCID
    CHILD           title
    PCID           amount
    I need heretical result use this type of query but not success
    please see my query and give me idea how I get here full tree
    select test.child,test.pcid,baltab.pcid from (select acctab.child,acctab.parent,acctab.pcid
    from acctab
    start with acctab.parent is null
    connect by prior acctab.child= acctab.parent) test,baltab
    where test.pcid=baltab.pcid ;
    CHILD PCID PCID
    1 1 1
    2 2 2
    3 3 3
    11 111 111
    12 112 112
    13 113 113
    21 221 221
    22 222 222
    23 223 223
    31 331 331
    32 332 332
    33 333 333
    but I need this type result
    CHILD PCID
    1 1
    11 111
    12 112
    13 113
    2 2
    21 221
    22 222
    23 223
    3 3
    31 331
    32 332
    33 333

  • Add and subtract summary group totals

    Looking for a way to add and subtract summary group totals in a report.

    I have my data grouped by account type then summarized.  Example
    have my data grouped by account type then summarized. Example
    acct. type amount
    51 $100
    51 50
    Summary $150
    61 $100
    61 100
    Summary $200
    70 $50
    70 50
    Summary $100
    Formula I want to make this formula 51+61-70 = GP
    I am trying to understand how to put the acct. type(51,61)  in the formula and insert in the report.
    Thanks for the help.
    Raald232

  • Total amount paid per month

    Hi can someone check my sql,I what total amount paid for c_code not for people,the total amount paid for mar/apr you see its for all the people in organisation which is wrong
    SELECT par.c_code,
                                       wm_concat( per.lastname)lastname,
                                                  wm_concat(ATYPE.NAME) POSITION,
                                                   SUM(PAY.amount)totalPaid,
                                                   SUM(PAY.amount * DECODE(TO_CHAR(fpsch.payment_dt,'MONyyyy'),'APR'||fyea.YEAR,1,0))apr
                                          ,SUM(PAY.amount * DECODE(TO_CHAR(fpsch.payment_dt,'MONyyyy'),'MAY'||fyea.YEAR,1,0))may
    FROM SMS_PARTIES per,
                 SMS_ORGANISATION_CONTACTS con,
                    SMS_PARTIES par,
                    SMS_AGREEMENTS agr,
                    SMS_AGREEMENT_YEARS AYEA,
                    SMS_PAYMENTS PAY,
                    SMS_AFFILIATION_TYPES atype,
                    SMS_PAYMENT_BATCHES pbat,
                    sms_fyea_open_vw fyea
                 ,SMS_FUNDING_PAYMENT_SCHEDULES FPSCH
    WHERE per.id = con.per_id
    AND par.ID = con.ORG_ID(+)
    AND ATYPE.ID(+) = CON.ATYPE_ID
    AND par.ID = agr.PAR_ID
    AND agr.ID = AYEA.AGR_ID
    AND PAY.AYEA_ID = AYEA.ID
    AND PAY.pbat_id  = pbat.id (+)
    AND AYEA.fyea_year = fyea.YEAR
    AND PBAT.FPSCH_ID = FPSCH.ID (+)
    AND par.C_CODE IN ('C512','C70')
    GROUP BY par.C_CODEC_CODE LASTNAME POSITION TOTALPAID APR MAY
    C512 Goetham,Julies,Carolissen 2897574 1073574 912000
    ,Kleinhans,Goetham,Morris
    ,America,Julies,America,K
    leinhans,Morris,America,C
    arolissen,Julies,Goetham,
    Kleinhans,Morris,Caroliss
    en
    C70 McPherson,McPherson,McPhe Treasurer,Treasurer,Chair 25344 5280 5280
    rson,Meyer,Meyer,McPherso person,Treasurer,Chairper
    n,Meyer,Meyer son,Chairperson,Treasurer
    Edited by: user603350 on 2011/07/15 6:06 AM
    Edited by: user603350 on 2011/07/15 6:09 AM

    hi i have the create table script i hope someone will be able to help me
    drop table SMS_AFFILIATION_TYPES;
    drop table sms_months;
    drop table SMS_FUNDING_PAYMENT_SCHEDULES;
    drop table SMS_AGREEMENT_YEARS;
    drop table SMS_PAYMENTS;
    drop table SMS_AFFILIATION_TYPES;
    drop table SMS_PAYMENT_BATCHES;
    drop table SMS_FINANCIAL_YEARS;
    drop view SMS_FYEA_OPEN_VW;
    drop table SMS_AGREEMENTS;
    drop table SMS_ORGANISATION_CONTACTS;
    drop table SMS_PARTIES;
    CREATE TABLE SMS_PARTIES
    ID INTEGER NOT NULL,
    C_CODE VARCHAR2(30 BYTE),
    LASTNAME VARCHAR2(60 BYTE),
    ORG_ID INTEGER,
    par_type varchar2(10)
    CREATE TABLE SMS_ORGANISATION_CONTACTS
    PER_ID INTEGER NOT NULL,
    ORG_ID INTEGER NOT NULL,
    NOTE VARCHAR2(200 BYTE),
    START_DT DATE,
    END_DT DATE,
    ATYPE_ID INTEGER
    CREATE TABLE SMS_AGREEMENTS
    ID NUMBER NOT NULL,
    PAR_ID INTEGER,
    SSCH_ID number)
    CREATE TABLE SMS_AGREEMENT_YEARS
    ID INTEGER NOT NULL,
    AGR_ID NUMBER NOT NULL,
    ASTA_ID INTEGER NOT NULL,
    FYEA_YEAR INTEGER NOT NULL)
    CREATE TABLE SMS_PAYMENTS
    PBAT_ID INTEGER NOT NULL,
    AMOUNT NUMBER(13,2) NOT NULL,
    AYEA_ID INTEGER NOT NULL,
    OFF_ID INTEGER,
    SSCH_ID INTEGER
    CREATE TABLE SMS_AFFILIATION_TYPES
    ID INTEGER NOT NULL,
    NAME VARCHAR2(80 BYTE) NOT NULL,
    ATYPE_TYPE VARCHAR2(10 BYTE) NOT NULL,
    DATE_CREATED DATE,
    DATE_MODIFIED DATE,
    MODIFIED_BY VARCHAR2(30 BYTE),
    CREATED_BY VARCHAR2(30 BYTE),
    REQUIRED INTEGER
    CREATE TABLE SMS_PAYMENT_BATCHES
    ID INTEGER NOT NULL,
    BATCH_DT DATE ,
    BATCH_NUMBER VARCHAR2(25 BYTE) ,
    FPSCH_ID INTEGER
    CREATE TABLE SMS_FINANCIAL_YEARS
    YEAR INTEGER NOT NULL,
    START_DT DATE NOT NULL,
    END_DT DATE NOT NULL,
    CREATED_BY VARCHAR2(80 BYTE),
    DATE_CREATED DATE
    CREATE OR REPLACE VIEW SMS_FYEA_OPEN_VW
    (YEAR, START_DT, END_DT, FIN_YEAR)
    AS
    SELECT FYEA.YEAR
         ,start_dt
         ,end_dt
         ,YEAR || '/' || LPAD (LTRIM (SUBSTR (YEAR + 1, -2)), 2, 0) fin_year
         FROM SMS_FINANCIAL_YEARS fyea
         WHERE EXISTS (SELECT 1 FROM SMS_MONTHS
                             WHERE closed_dt IS NULL
                             AND fyea_year = YEAR)
    AND YEAR = (SELECT MIN(fyea_year) FROM SMS_MONTHS
                             WHERE closed_dt IS NULL);
    CREATE TABLE SMS_MONTHS
    ID NUMBER NOT NULL,
    FYEA_YEAR INTEGER NOT NULL,
    NAME VARCHAR2(30 BYTE) NOT NULL,
    MONTH_NO INTEGER,
    MONTH_END_DT DATE,
    CLOSED_DT DATE,
    DATE_MODIFIED DATE,
    MODIFIED_BY VARCHAR2(30 BYTE),
    CREATED_BY VARCHAR2(30 BYTE),
    DATE_CREATED DATE
    CREATE TABLE SMS_FUNDING_PAYMENT_SCHEDULES
    ID INTEGER NOT NULL,
    MON_ID NUMBER NOT NULL,
    TAS_ID INTEGER,
    SEQ INTEGER ,
    RUN_DT DATE ,
    PAYMENT_DT DATE ,
    RUN_TYPE INTEGER ,
    CUT_OFF_DATE DATE,
    AGR_ID NUMBER,
    PTYPE_CODE VARCHAR2(5 BYTE) DEFAULT 'EFT' NOT NULL
    INSERT INTO SMS_PARTIES ( ID, PAR_TYPE, C_CODE, LASTNAME, ORG_ID ) VALUES (
    57356, 'FAC', 'C512', NULL, null);
    INSERT INTO SMS_PARTIES ( ID, PAR_TYPE, C_CODE, LASTNAME, ORG_ID ) VALUES (
    57357, 'FAC', 'C70', NULL, null);
    INSERT INTO SMS_PARTIES ( ID, PAR_TYPE, C_CODE, LASTNAME,
    ORG_ID ) VALUES (
    5186,'PER',null,'McPherson',57357);
    INSERT INTO SMS_PARTIES ( ID,C_CODE,par_type,LASTNAME,
    ORG_ID
    ) VALUES (
    5187,null,'PER','Meyer',57356);
    INSERT INTO SMS_ORGANISATION_CONTACTS ( PER_ID, ORG_ID, ATYPE_ID ) VALUES (
    5186, 57357, 25523);
    INSERT INTO SMS_ORGANISATION_CONTACTS ( PER_ID, ORG_ID, ATYPE_ID ) VALUES (
    5187, 57357,25522);
    INSERT INTO SMS_AFFILIATION_TYPES ( ID, NAME, ATYPE_TYPE ) VALUES (
    25522, 'Treasurer', 'STYPE');
    INSERT INTO SMS_AFFILIATION_TYPES ( ID, NAME, ATYPE_TYPE ) VALUES (
    25523, 'Chairperson', 'STYPE');
    INSERT INTO SMS_AGREEMENTS ( ID, PAR_ID, SSCH_ID ) VALUES (
    258266, 57357, 3);
    INSERT INTO SMS_AGREEMENTS ( ID, PAR_ID, SSCH_ID ) VALUES (
    258263, 57356, 11);
    INSERT INTO SMS_AGREEMENT_YEARS ( ID, AGR_ID, ASTA_ID, FYEA_YEAR ) VALUES (
    53903, 258266, 2444, 2011);
    INSERT INTO SMS_AGREEMENT_YEARS ( ID, AGR_ID, ASTA_ID, FYEA_YEAR ) VALUES (
    1209077, 258263, 2444, 2011);
    INSERT INTO SMS_PAYMENTS ( PBAT_ID, AMOUNT, AYEA_ID,
    SSCH_ID ) VALUES (
    64, 152000, 53903, NULL);
    INSERT INTO SMS_PAYMENTS ( PBAT_ID, AMOUNT, AYEA_ID
    ,SSCH_ID) VALUES (
    67, 2640, 1209077, 1209077);
    INSERT INTO SMS_PAYMENT_BATCHES ( ID, BATCH_NUMBER,
    FPSCH_ID ) VALUES (
    64,'2011-002', 11494);
    INSERT INTO SMS_PAYMENT_BATCHES ( ID, BATCH_NUMBER,
    FPSCH_ID ) VALUES (
    67,'2011-001', 11496);
    INSERT INTO SMS_MONTHS ( ID, FYEA_YEAR, NAME, MONTH_NO, MONTH_END_DT, CLOSED_DT, DATE_MODIFIED,
    MODIFIED_BY, CREATED_BY, DATE_CREATED ) VALUES (
    16991, 2011, 'April', 1, TO_Date( '04/22/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , TO_Date( '05/05/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '05/05/2011 08:48:53 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 'SMSPUSER', 'SMSPUSER', TO_Date( '03/24/2011 09:47:34 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO SMS_MONTHS ( ID, FYEA_YEAR, NAME, MONTH_NO, MONTH_END_DT, CLOSED_DT, DATE_MODIFIED,
    MODIFIED_BY, CREATED_BY, DATE_CREATED ) VALUES (
    16992, 2011, 'May', 2, TO_Date( '05/22/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , TO_Date( '05/31/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '05/31/2011 02:28:46 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 'SMSPUSER', 'SMSPUSER', TO_Date( '03/24/2011 09:47:34 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO SMS_FUNDING_PAYMENT_SCHEDULES ( ID, MON_ID, TAS_ID, SEQ, RUN_DT, PAYMENT_DT, RUN_TYPE,
    CUT_OFF_DATE, AGR_ID, PTYPE_CODE ) VALUES (
    11494, 16991, NULL, NULL, TO_Date( '08/11/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , TO_Date( '04/07/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), NULL, NULL, 258263
    , 'EFT');
    INSERT INTO SMS_FUNDING_PAYMENT_SCHEDULES ( ID, MON_ID, TAS_ID, SEQ, RUN_DT, PAYMENT_DT, RUN_TYPE,
    CUT_OFF_DATE, AGR_ID, PTYPE_CODE ) VALUES (
    11496, 16992, NULL, NULL, TO_Date( '08/11/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , TO_Date( '05/18/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), NULL, NULL, 258266
    , 'EFT');
    INSERT INTO SMS_FINANCIAL_YEARS ( YEAR, START_DT, END_DT, CREATED_BY,
    DATE_CREATED ) VALUES (
    2009, TO_Date( '04/01/2009 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '03/31/2010 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 'SDMS01', TO_Date( '06/20/2008 04:50:35 PM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO SMS_FINANCIAL_YEARS ( YEAR, START_DT, END_DT, CREATED_BY,
    DATE_CREATED ) VALUES (
    2010, TO_Date( '04/01/2010 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '03/31/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 'SMSPUSER', TO_Date( '03/24/2010 09:47:34 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO SMS_FINANCIAL_YEARS ( YEAR, START_DT, END_DT, CREATED_BY,
    DATE_CREATED ) VALUES (
    2011, TO_Date( '04/01/2011 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '03/31/2012 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 'SMSPUSER', TO_Date( '04/19/2011 11:40:08 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO SMS_FINANCIAL_YEARS ( YEAR, START_DT, END_DT, CREATED_BY,
    DATE_CREATED ) VALUES (
    2006, TO_Date( '04/01/2006 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '03/31/2007 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 'SMS01', TO_Date( '06/17/2008 12:11:22 PM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO SMS_FINANCIAL_YEARS ( YEAR, START_DT, END_DT, CREATED_BY,
    DATE_CREATED ) VALUES (
    2005, TO_Date( '04/01/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '03/31/2006 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 'SMS01', TO_Date( '06/17/2008 12:11:31 PM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO SMS_FINANCIAL_YEARS ( YEAR, START_DT, END_DT, CREATED_BY,
    DATE_CREATED ) VALUES (
    2008, TO_Date( '04/01/2008 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '03/31/2009 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 'SMS01', TO_Date( '03/20/2008 07:33:05 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO SMS_FINANCIAL_YEARS ( YEAR, START_DT, END_DT, CREATED_BY,
    DATE_CREATED ) VALUES (
    2007, TO_Date( '04/01/2007 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '03/31/2008 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 'SMS01', TO_Date( '06/03/2008 12:42:36 PM', 'MM/DD/YYYY HH:MI:SS AM'));
    ALTER TABLE sms_parties ADD (CONSTRAINT par_par_pk PRIMARY KEY (id)) ;
    ALTER TABLE SMS_AGREEMENT_YEARS ADD (CONSTRAINT ayea_ayea_pk PRIMARY KEY (id)) ;
    ALTER TABLE SMS_PAYMENT_BATCHES ADD (CONSTRAINT pay_bat_pk PRIMARY KEY (id)) ;
    ALTER TABLE SMS_AGREEMENTS ADD (CONSTRAINT agr_agr_pk PRIMARY KEY (id)) ;
    ALTER TABLE SMS_PARTIES ADD (
    CONSTRAINT PAR_PAR_FK FOREIGN KEY (ORG_ID)
    REFERENCES SMS_PARTIES (ID));
    ALTER TABLE SMS_ORGANISATION_CONTACTS ADD (
    CONSTRAINT OCON_ORG_FK FOREIGN KEY (ORG_ID)
    REFERENCES SMS_PARTIES (ID));
    ALTER TABLE SMS_ORGANISATION_CONTACTS ADD (
    CONSTRAINT OCON_PER_FK FOREIGN KEY (PER_ID)
    REFERENCES SMS_PARTIES (ID));
    ALTER TABLE SMS_AGREEMENTS ADD (
    CONSTRAINT AGR_PAR_FK FOREIGN KEY (PAR_ID)
    REFERENCES SMS_PARTIES (ID));
    ALTER TABLE SMS_AGREEMENT_YEARS ADD (
    CONSTRAINT AYEA_AGR_FK FOREIGN KEY (AGR_ID)
    REFERENCES SMS_AGREEMENTS (ID));
    ALTER TABLE SMS_PAYMENTS ADD (
    CONSTRAINT PAY_PBAT_FK FOREIGN KEY (PBAT_ID)
    REFERENCES SMS_PAYMENT_BATCHES (ID));
    ALTER TABLE SMS_AFFILIATION_TYPES ADD (
    CONSTRAINT ATYPE_PK PRIMARY KEY (ID))
    ALTER TABLE SMS_PAYMENT_BATCHES ADD (
    CONSTRAINT PBAT_PK PRIMARY KEY (ID))
    ALTER TABLE SMS_FUNDING_PAYMENT_SCHEDULES ADD (
    CONSTRAINT FPSCH_AGR_FK FOREIGN KEY (AGR_ID)
    REFERENCES SMS_AGREEMENTS (ID));
    update sms_months set closed_dt=NULL;
    commit;
    select * from cat;
    Edited by: user603350 on 2011/07/19 4:32 AM
    Edited by: user603350 on 2011/07/19 4:36 AM
    Edited by: user603350 on 2011/07/19 4:47 AM
    Edited by: user603350 on 2011/07/19 4:59 AM
    Edited by: user603350 on 2011/07/19 5:06 AM

Maybe you are looking for

  • Problem in pricing conditions are not updated in BAPI_SAG_CHANGE

    Hallo Friends, we have faced the one problem with the standard bapi *BAPI_SAG_CHANGE. we have passed the 10 item level data to the BAPI_SAG_CHANGE , the bapi BAPI_SAG_CHANGE successfully updated the 10 item level data to the schedule agreement . the

  • AppleWorks 6 will not open in OS 10.4.8

    I just installed AW 6.2.9 under OS 10.4.8. I have a dual CPU PPC G5. It installed without a problem but when I went to open it I got the message "AW^ not supported on this system"! The literature that came with the CD/DVD stated AW 6 is supported und

  • IWeb won't let me publish using MobileMe

    I am logged into the MobileMe account. I have 287 days left in my account. Two weeks ago when I made changes to my website, I clicked publish to update the website. All worked. Just made changes and when I pressed Publish, I get a MobileMe advertisem

  • Attached Mail Document - unable to return to mail

    This has happened to me a couple of times and I'm looking for simpler solutions to a re-boot. I open an attachment in mail (both times a PDF) and then close the iPad or go to another app. When I come back to mail it the document is what is displayed

  • [SOLVED] Kernel 3.0 become 2.6.32.48-1-lts after update?

    Hi everybody, After I updated my laptop yesterday, I can not change the screen resolution. It is only 1024*768 while the maximum is 1336*768. Then I figure out the kernel was downgraded from 3.0 to arch 2.6.32.48-1-lts. In the /boot folder, I only fi