To fetch amount paid and pending by curtomer

Hi,
In my report I want to fetch the total billed amount to a customer, and how much he has paid and how much pending from a specified period.
as in my selection screen I have  customer number as parameter and date as select option.

Dear Padmaja,
Thanks a lot for your reply. However i need more details regarding this.
1. I have a sales order. Now from this sales order, i can get invoice, delivery, quotation etc from VBFA table. However i want to know from a sales order how can i get data from bsid or bsad table.  I believe in between there might be other tables as a linkage. I want to know the tables involved to get the amount paid by customer from sales order.
Suppose say sales order is 500111 and its value is 700 and customer paid 100 once and  paid 200 second time and needs to pay 400. So this kind of data from which tables i will be fetching. and logic between the tables.
Thank you.
Regards
Sam

Similar Messages

  • Loan : get amount paid and loan balance in ABAP

    Hi all,
    i need to get the amount paid and loan balance in ABAP. I can't call module from standard because it's a program type I and I haven't seen a function module.
    SAP version 4.6.
    Thanks for help.
    Cheers.

    This worked great. I noticed I forgot to follow it up.
    Thanks Again, even though it was along time ago. I have used this alot.
    Tim

  • Weekly limit on amount paid using manual and authomatic payment programme

    Dear SAPers
    I have a requirement to set weekly limits on amounts paid using the manual and authomatic payment programme. The organisation issues payments through one bank account with same payment method for manual and authomatic payments and would like to set a limit per week. This means that no further payments will be allowed when the set limit is reached - ie when payments issued for a particular week exceed for example u20AC500,000 no more payments will be allowed. The limit can be revised by the authorisaed person.
    t-code S_ALR_87001486 lets you set the limit for the authomatic payment programme but I think does not let you set the limit for a period of time say a week.
    Can you please tell me if this is possible to do or if it would require development and how to approach this. Your feedback is appeciated.
    With thanks
    PRG

    You probably have to code an exit in the program SAPF110 and create a custom table to store weekly amounts used for payments.

  • Difference between SDL Amount posted to finance and amount paid to CPFBorad

    Hi ,
    Singapore Payroll -help required:-
    My issue is: - -> Every month there is a difference between SDL Amount  posted to finance and amount paid to CPF board.
    Please find following SDL break down from Jan u2013 May 2011.
    SDL FI Posting :-/376
    Jan 11     Feb 11     Mar 11     Apr 11     May 11
    (1,313.05)     (1,220.27)     (1,119.66)     (1,087.04)      (1,339.28)
    SDL in CPF Report-  pc00_m25_ccpf     
    Jan 11     Feb 11     Mar 11     Apr 11     May 11
    (1,350.00)     (1,574.00)     (1,389.00)     (1,392.00)     (1,373.00)
    Diff           
    Jan 11     Feb 11     Mar 11     Apr 11     May 11
    (-36.95)     (-353.73)     (-269.34)     (-304.96)     (-33.72)
    What could be the possibility for the errors?
    Regards
    Thomas
    Edited by: Thomas Padiyara on Jun 14, 2011 4:34 AM

    Thx Srini..
    I have taken a list of wage types marked for SDF through report-PC00_M99_DLGA20
    Then have checked that does GLu2019s are mapped o all wage types through report RPDKON00.
    It seems to be fine.
    For evaluation calss -6 is used for monthly printing. Anyway that is not marked for any of the wage types.
    I have analyzed the details in QAS system for March month.
    The details are as follows:-
    1.     Wage type report - (S_PH9_46000172) = 1119.66
    2.     CPF report (PC00_ M25_CCPF) -1389.00.
    3.     Posting amount (credit amount 1389.85 sgd - debit amount 270.19 sgd) = 1119.66
    It seems to be the debit amount is also getting displayed in the CPF report.
    How the debit and credit amt is displaying same as for few employees.
    One example is given as follows:-
    WT     WT description               
    /305     E'yee,CPF-curr     2,539.00-Debit           SGD
    /305     E'yee,CPF-curr           2,539.00-Credit     SGD
    /305     E'yee,CPF-curr           1,152.00-Credit     SGD
    /307     E'yer,CPF port     2,031.00-Debit           SGD
    /307     E'yer,CPF port           2,031.00-Credit     SGD
    /307     E'yer,CPF port           923-Credit     SGD
    /370     E'yee, CDAC, a     1-Debit           SGD
    /370     E'yee, CDAC, a           1-Credit     SGD
    /370     E'yee, CDAC, a           1-Credit     SGD
    /376     E'yer, SDF                          11.25-Debit           SGD
    /376     E'yer, SDF                              11.25-Credit     SGD
    /37I     Total Medisave     45-Debit           SGD
    /37I     Total Medisave           45Credit     SGD
    /307 three entries (2 credit, one debit)
    /376 two entries (one credit, one debit)
    Why?
    Edited by: Thomas Padiyara on Jun 14, 2011 10:34 AM

  • Reconcile amounts paid to external vendor for Travel bookings

    All,
    We are implementing travel expenses in SAP. Employees can use an external provider for booking flight reservations. This external vendor invoices the company for  these expenses on a weekly basis. After the trip is undertaken, the employee enters the expenses. How do we reconcile the money that has been paid to the travel agency and the trips expeenses.
    scenario
    Step 1 - Employee calls up travel agency and books flight ticket to, say, California. The cost of ticket is 1000 Dollars.
    Step 2 - Employee undertakes the trip.
    Step 3 - Employee enter the trip expenses. They enter the flight costs that have already been paid by the company as expense type "flght paid" and the difference amounts are paid to the employee.
    "Flight paid"    - 1000
    Hotel              - 500
    The employee is paid 500 dollars through FI.
    Now the task of travel administrators is to check whether the amounts invoiced by the travel agencey match the amounts entered by the employees. They also want to ensure that employees mistakenly or intentionall do not enter the receipt type as "Flight" insead of "Flight Paid" when they are filling the travel expenses. What is the best way to handle this reconcilation issyes in travel management.
    Appreciate any inputs on this issue.
    regards
    Sam

    Hello Sam,
    There are 2 options I could see here:
    1) In the release you can customise in table V_T706S_RECEIPT on which the User cannot use the Expense Type "Flight" per.
    2) You can use the User Exit EXIT_SAPMP56T_003. In this case it check the data before the user save the trip.
    Regards,
    Raynard

  • How to get denomination of Notes ? for the amount paid

    Dear Freinds
       i have requirement where the total amount obtained by a employee through Cash . They wanted to have denomination
    for the amount paid ito that employee
    ex : An X employee got RS.5550 rupees as cash. They wanted to know how much money has been paid in Denomination
    of  10 Rupee notes,20 Rupee notes,50 Rupee notes,100 Rupee note,500 Rupee note & 1000 Rupee notes.
    so the data has to be displayed should be
    since the employee is gettign 5550 --> it has to 1000*5 --> Five Thousand rupees notes --- 5 count should come
    500 will be paid as ---> 500 * 1  -
    Five hudress count is 1
    50 is the balance -
    it will be paid as fivty note -- Count is 1.
    so i have to get  5000------ count 5 , 500 count 1,50 count 1. Can any one go this type of denomination doing code please
    let me know how to proceed.
    Regards
    divya
    Edited by: Divya Kumari on Jul 8, 2011 2:18 PM

    Actually
    the scenario is that in some employees ( if you go employee subgroup) like daily labour and casual labours will be paid
    on daily bais for them they will not be paid to bank . I n that case  those type of employees will be paid by CASH. So in teh month end the company wanted to knwo what type and how much money paid .
    regards
    divya

  • 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,

  • 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

  • Count by id not by total number of amount paid

    hi i what to count by total id not by total number of amount paid
    {SELECT COUNT(*)NoEcd,agr.SSCH_ID,SUM(amount)FROM SMS_AGREEMENTS agr,
                                                                                       SMS_AGREEMENT_YEARS yea,
                                                                                                     SMS_PAYMENTS PAY
                             WHERE agr.id = YEA.agr_id
                             AND agr.ssch_id IN(1,3,24)
                             AND PAY.AYEA_ID = yea.ID
                             AND yea.FYEA_YEAR IN( 2008)
                             GROUP BY agr.SSCH_ID  }
    NOECD | SSCH_ID| SUM(AMOUNT)
    *627* | 1 | 5186229
    *10181* | 3 | 114057485
    *336* | 24 | 1120882
    this is the number of id without total amount paid when i put total amount paid the total id change
    {SELECT COUNT(agr.SSCH_ID)NoEcd,agr.SSCH_ID FROM SMS_AGREEMENTS agr,
                                                                  SMS_AGREEMENT_YEARS yea
                --       SMS_PAYMENTS PAY
        WHERE agr.id = YEA.agr_id
        AND agr.ssch_id IN(1,3,24)
        --AND PAY.AYEA_ID = yea.ID
        AND yea.FYEA_YEAR = 2008
        GROUP BY agr.SSCH_ID;}
    i what this with the total amount paid like top
    NOECD| SSCH_ID
    *63* | 1
    *868* | 3
    *35* | 24
    Edited by: user603350 on 2011/07/11 11:59 PM
    Edited by: user603350 on 2011/07/12 1:29 AM
    Edited by: user603350 on 2011/07/12 1:58 AM
    Edited by: user603350 on 2011/07/12 2:00 AM
    Edited by: user603350 on 2011/07/12 2:21 AM
    Edited by: user603350 on 2011/07/12 2:24 AM
    Edited by: user603350 on 2011/07/12 2:25 AM

    hi i what to count by total id not by total number of amount paid
    i try to edited, i only what to count by id like in the last query,the last query muts have total piad like first query but with the total ecd in bold in last query
    {SELECT COUNT(*)NoEcd,agr.SSCH_ID,SUM(amount)FROM SMS_AGREEMENTS agr,
                                                                                       SMS_AGREEMENT_YEARS yea,
                                                                                                     SMS_PAYMENTS PAY
                             WHERE agr.id = YEA.agr_id
                             AND agr.ssch_id IN(1,3,24)
                             AND PAY.AYEA_ID = yea.ID
                             AND yea.FYEA_YEAR IN( 2008)
                             GROUP BY agr.SSCH_ID  }
    NOECD SSCH_ID SUM(AMOUNT)
    *627* 1 5186229
    *10181* 3 114057485
    *336* 24 1120882
    this is the number of id without total amount paid when i put total amount paid the total id change
    {SELECT COUNT(agr.SSCH_ID)NoEcd,agr.SSCH_ID FROM SMS_AGREEMENTS agr,
                                                                  SMS_AGREEMENT_YEARS yea
                --       SMS_PAYMENTS PAY
        WHERE agr.id = YEA.agr_id
        AND agr.ssch_id IN(1,3,24)
        --AND PAY.AYEA_ID = yea.ID
        AND yea.FYEA_YEAR = 2008
        GROUP BY agr.SSCH_ID;}
    i what this with the total amount paid like top
    NOECD SSCH_ID
    *63* 1
    *868* 3
    *35* 24

  • Updation of 'Loan Amount Paid' in IT 0045

    Hi experts,
    I have a doubt regarding the updation of 'Loan Amount Paid' field in infotype 0045 (PA30).  I see that this field value is not directly stored in PA0045 table. The reference structure for this field is Q0045-PAYLO field.
    can anyone pls tell me how to update value for this field in infotype 0045?

    That feild get updates once if you run pay roll live ......
    Check with one employee by running pay roll live and check the feild in the infotype

  • 2 days ago i rented The Avengers, beside it took almost 7h to download, at the end it did not get fully downloaded... 20 last minutes were not there. I know is just 5 dollars, but, how can i make a claim for the amount paid?

    2 days ago i rented The Avengers, beside it took almost 7h to download, at the end it did not get fully downloaded... 20 last minutes were not there. I know is just 5 dollars, but, how can i make a claim for the amount paid?, what if I buy a movie later? i will get the same problem!!! still I do not know how the avengers ends!! please do not tell me haha, focus on the problem here!

    Welcome to the Apple Community.
    Apple's policy on sales of digital content is that all sales are final. If however you wish to appeal to Apple, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.
    Currently, if your purchase happens to be your most recent purchase you will not be redirected to the report form, in this case use the report a problem option from the invoice that was emailed to you.
    I believe your issues are probably a network issue, which unless you resolve are likely to be repeated again.

  • Bug - amount paid not showing for quotes summary

    Hi, Just noticed a bug.
    On the orders screen it doesn't show correctly "amounts paid" for quotes.
    Yet there has been a payment made for a quote.
    Screen Shot below.
    This is an issue for us as we use this screen as a check to make sure people which have paid have had their orders invoiced and sent - and as we can't see the payments on this screen we falsely believe that all orders are waiting payments when they aren't.
    Could BC please fix the code on the screen so it is correct. Thank you

    Thanks Liam, yes it is still a quote - the bug is the column showing amount paid isn't working.
    I thought it should be working as the column is there so must be a bug.

  • Picking the value of PBEG and PEND incase of multiple entries 2002 on a day

    Hi Experts,
    Our client's business requirement is to have provision handling multiple entries multiple entries of same subtype of IT 2002 on same day with different Time entries.For example one IT 2002 Styp 1 has entry 10 am to 14 pm & other entry of IT 2002 styp 1 as 14 pm to 16 pm.
    In this scenario I want to have TWT with start time of 1st 2002 record i.e 10 & another TWT with end time of last 2002 record i.e. 16.
    I have written a PCR as
    OUTTPORIGS Origin status
        COLOP*     TIP  >TOP curr.TType
      P
        HRS=PBEG   Set
        ADDDB90T3  Add to day balance
        HRS=PEND   Set
        ADDDB90T4  Add to day balance
    But its giving me value of 2002 start time  as (1014=24) & END time (1416=30) respectively.
    Since TIP will have entries with origin E & A as well with P  and any entry can be 1st or last entry depending on time, I can't use VRSTFIRST & VARSTLAST.
    Please suggest me how to handle such scenario through PCR. Is there a way we can make decision on From & To of TIP entries.
    You can also suggest me if such need can be handled at masterdata level so that we can have just one entry
    Regards
    S S
    Hi All,
    Please also suggest me a better operation to pick the value of PBEG and PEND incase of multiple entries various subtypes of 2002 on same day.I need to compare start- end time of 2002 with 2011 entries and calculate total attendence hrs. Once again, I can't use VRSTFIRST & VRSTLAST as 1st & last TIP entry could be come from any infotype viz 2011,2002, 2001.
    Regards
    Sunita
    Edited by: Sunita on Feb 5, 2011 10:02 AM

    If you want to do it the T-SQL way, follow this article I wrote on deleting duplicates..
    http://sqlsaga.com/sql-server/how-to-remove-duplicates-from-a-table-in-sql-server/
    To read about what ranking functions does and how will they help you use this link..
    http://sqlsaga.com/sql-server/what-is-the-difference-between-rank-dense_rank-row_number-and-ntile-in-sql-server/
    Please mark as answer, if this has helped you solve the issue.
    Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.

  • Can someone please help me re-install my Creative Design 5.5 on my Mac?  My MacBook Pro recently crashed and had to have the hard drive replaced.  The back up from Time Machine is not reinstalling the program.  Since I have the download paid, and codes, I

    Can someone please help me re-install my Creative Design 5.5 on my Mac?  My MacBook Pro recently crashed and had to have the hard drive replaced.  The back up from Time Machine is not reinstalling the program.  Since I have the download paid, and codes, I need direction on how to reinstall -- HELP?

    Hi bodegakc,
    If you have the serial number then please use the below mentioned link to download the product you are looking for .
    CS5.5
    Also before installing Please go to Applications-->Utilities--> Adobe installers and if there is any uninstaller for CS5.5 , you can remove it and do a fresh install.
    You can also use creative cloud cleaner tool before installing.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Thanks
    Nikhil Gupta

  • Open PR and Pending PO

    Hi All,
    What is open PR and Pending PO,I nee to createe a report for Open PR qty,Open PR value,Pending PO qty,Pendng PO value,how to identify the PR and PO are closed and pending,help me pls.
    Thanks&regds,
    sree.

    Hi,
    You can get the Information about Pending PO from the following T.codes by specifying the appropriate selection Parameters.
    T.code - ME2N,ME3N & ME2L  (Purchasing Documents/Doc Number)  ,ME3L (Purchasing Documents/Vendor)
    Thanks,

Maybe you are looking for