Frieght amount paid to lorry vendor

Hi Guru's
My requirement is like this:
PO - 20 tons
GR 1 - 10 tons + freight cost (lorry freight) Rs 1000
GR 2 - 10 tons + Freight cost (lorry freight) Rs 1500
We need to pay freight cost to lorry driver not to vendor. the final bill from vendor comes after 10 - 15 days. Since the freight cost is not fixed value I can't plan in my PO. So how to enter this freight costs before doing invoce verification for actual goods bill.

Hi,
You have freight value as pricing element in your purchase order but you are paying to freight cost to lorry driver during goods receipt or just after goods receipt of purchase order.
You have not mentioned that the freight value in purchase order is going to be invetorised or will be posted to separate G/L account as freight cost. Refer detailed settings freight condition type
Delivery cost is not getting inventorize
You can create freight vendor for lorry driver (XK01). Create Purchase order with assumed value  in freight condition type and assign the freight vendor to freight condition type in your Purchase order(ME21N). After goods receipt for your purchase order, you can post MIRO for lorry driver (freight vendor) for that purchase order by selecting “Planned delivery cost” in t.code:MIRO for the actual amount and based on tolerance limit set for tolerance key, the invoice document will be blocked which can released(MRBR)later for payment by finance department.
Regards,
Biju K

Similar Messages

  • 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

  • F110/ FBZP - maximum amount paid per Vendor in Payment run

    Hi
    How do i create payment run where i want to restrict the maximum paid to a vendor per transaction.
    If amount exceeds this, i still wish to pay, but to split over more than one payment order
    Our BACS payments are now being processed via FASTER PAYMENTS, and there seems to be a limit of £100,000 per transaction per vendor - anything over is being rejected by danske bank
    So far example above, if vendor is due 156,000 - i wish to make this payment still to them, but over 2 or 2 payment orders, none of them to be more than 100,000
    I have tried several methods via FBZP by using the maximum amount, but none of my settings seem to work so far,
    Please advise
    Many thanks for your help
    Tony

    Hi Tony,
    Not exactly the solution, but going forward you can try split the invoices and process it separately at the time of invoicing itself. Otherwise you can try the option installment payment terms, but there may be at least one day difference in payment.
    Warm regards,
    Murukan Arunachalam

  • With holding tax amount exceeds the cutomer/vendor line item amount 001

    Hi Guru's,
      I have an issue, is there any impact to change the withholding tax base amount 20% instead of 10%.When I change the base amount to 20% and post a document system return error message
    "With holding tax amount exceeds the cutomer/vendor line item amount 001".Guide me on this issue.
    And tell me the impact of previous open item documents.
    Regards
    Maruthi.

    Thanks for all,
      MY problem solved.
    Regards
    Maruthi

  • Withholding tax amount exceeds the customer/vendor line item amount 001

    Hi Guys,
    I am trying to release an invoice using VF02 transaction but I recieved the below error message:
    Message no. 7Q321
    Withholding tax amount exceeds the customer/vendor line item amount 001
    There are 2 SAP (718078 and 513201) notes regarding that but they are not applicable in ECC 6.0.
    How can I figure out this issue?
    Thanks,
    Daniel Dorta

    Hi,
    This may happen because you have give base exemption and after that charge tax. In this case you have posted earlier invoice w/o wht and now you are posting the small amount of invoice on which wht is calculated including the earlier exempt amt. In this case the wht exceeds the base amt.
    In this case if possible you first post the invoice with sufficient amount which can deduct the WHT .
    If your scenario is different give details.
    Regards
    Milind Sonalkar

  • Withholding tax amount exceeds the customer/vendor line item amount

    Hi experts
    I am having one problem please help me
    My user created one down payment, entry is like this
    Vendor Dr-193914
    To TDS     3878
    To Bank   190036
    After this he has booked MIRO  with the same value 193914 & has deducted TDS 3878 over that invoice
    Now when he is going to adjjust that down payment against that MIRO with specific line item 62
    system is throwing that error.
    Withholding tax amount exceeds the customer/vendor line item amount 002
    Message no. 7Q321
    I checked invoice booked correctly & TDS also dedcuted properly why system is throwing that error message
    please help me
    Regards
    Nitin Shukla

    Hi Madhu
    thanks  a lot for instant reply
    We are using F-54 Down Payment adjustment at this time we are facing problem & we are clearing against invoice
    & with specific line item
    For Eg. 5100001596  & line item - 53
    Regards
    Nitin Shukla

  • Wht tax amount exceeds the customer/vendor line item amount 001Mess no7Q321

    Dear Experts,
    We are also getting same error in production"Withholding tax amount exceeds the customer/vendor line item amount 001 Message no. 7Q321"
    Please gudie me how to resolve this issue, while posting vendor invoice in T-code - F-43 i am getting bellow error message why because we client requirement is accumulation activity required so is there any solution for this with out changing accumulation activity.
    We need to use this accumulation activity.
    I would be greatful if you could help us to resolve this issue.
    thanks
    Seshu

    If its relating to TRM- Transaction manager, please implement note no " 1961340 - Calculation of withholding tax for 2nd or 3rd local currency "
    Regards
    Anil

  • Can i know from MIRO/MIR7 how much is it going to be paid to the vendor?

    Hi,
    from MIR7,MIRO, before doing any posting, can i know how much is it going to be paid to the vendor?
    that is,
    with the data of MIR7/MIRO, is it possible to get in advance something similar to the payment proposal of transaction F110?
    if so, how?.
    Best regards.

    Hi Eduardo,
    in my customer, previous to invoice verification, it is going to be implemented a new application that will
    scan the invoices and create them in the system.
    The user wants to know if it is possible to know in advance (even before invoice verification,
    even before the document exists in the system) how much a vendor is going to be paid in F110.
    I guess i do not have the complete picture of what i´ve been asked.
    I´ll ask for more details to the customer.
    -> Finally it seems that fm MRM_SRM_INVOICE_SIMULATE was what i was looking for.
    Best regards.
    Edited by: Pablo Casamayor on Feb 18, 2011 4:58 PM

  • Invoice from Vendor AA, paid check to Vendor BB

    HI,
    I've a question.
    we issued Purchase Order to vendor AA
    we received invoice from vendor AA
    we paid cheque to vendor BB (because Vendor AA ask us to do so)
    How to print cheque to vendor BB?  Is it possible to issue cheque to different vendor name, instead of invoicing party?
    Thanks.

    HI,
    Thanks for guidance.
    I've done:
    Vendor master
    1. General data, add alternative payee, and tick individual payee
    2. company code, add alternative payee
    MIRO
    1. payment tab, tick individual payee, enter the alternative payee name, city, etc
    F-58 Payment with printout
    1.F-58  Do I need to enter the alternative payee number under payee field?
    If I enter, I hit this error:
    Payee 6100000 is not defined for account 6100003 0001
    Message no. FR003
    Diagnosis
    Account number 6100000 specified for the payee is not defined in vendor 6100003's master record either in the company code-independent data nor in the paying company code 0001's data.
    System Response
    Error message
    Procedure
    Correct or delete your entry
    My cheque still cannot print alternative payee name. What is step I miss out?
    Appreciate your guidance. Thanks

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

  • 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

  • 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

Maybe you are looking for

  • XSL and Oracle Objects

    I am creating a stylesheet to transform an XML document into the proper format to put it in an Oracle table. However, the table was created using several objects. How do I reference the tags for those in the the stylesheet so that they will insert pr

  • Export and Import PST corrupting mailbox folder structure

    Hi, I have an old Exchange 2003 mailserver which I am replacing with Exchange 2013 server. I am doing a fresh install in a new domain and will import the old mailboxes (5) via PST's. I have exported the mail from Exchange 2003 using exmerge to PST fi

  • My MacBook is a 2009 working on Mac OS X 10.5.8

    and I can't seem to install the latest version of iTunes 11 without OS X 10.6.8 (Lion?) or later... Do I have to buy a new computer?  I don't want to pay for software if it's not compatible. Help!

  • Behavior of ENTER arbitrarily changes in my JTable

    The setup: basic, non-exotic JTable in a 1.6.0_02 application running on Red Hat Enterprise 3. Normal behavior: hitting enter causes the table to select the next cell row. My behavior: randomly, I've been noticing that hitting enter causes the cell t

  • [OSB] - Calling REST Service - POST action

    Hi, I have a requirement to invoke a REST full service to pass on the processed XML message. I know OSB supports both calls via Proxy and Business services. I have tested it with HTTP and it works. However, my server side REST service is to be invoke