Invoice details in Incoming Payment

Dear All,
we are making incoming payment against invoice. In Pld for incoming payments i want details of invoice (Invoice Number and Invoice Amount) against which receipt entry is made.
Ex:
Account Code...........Account Name......................................................Amount
A0001.....................ABC
..............................Invoice Number 12..................................................1000  
.....................................................13..................................................1500
and so on ...
I have tried in PLD but not able to get the OINV table in PLD. Is there any other option to get this details.
Swapnil
Edited by: SWAPNIL PATIL on Mar 20, 2009 9:50 AM

Dear Friend,
Which query u sended that working fine for Incomeing Payments. But ih this ur matching
T1.DocEntry = T2.DocEntry. Means suppose in Income Payment entry there is no Invoice entry then it is not showing. But i want to show that entry also. Please refer the following formatt.
SELECT T0.DocNum, T0.DocDate, T0.CardCode,T2.DocNum,   T1.SumApplied FROM [dbo].[ORCT]  T0 INNER JOIN RCT2 T1 ON T0.DocNum = T1.DocNum INNER JOIN OINV T2 ON T1.DocEntry = T2.DocEntry
Formatt:
Account Code...........Account Name......................................................Amount
A0001.....................ABC
..............................Invoice Number 12..................................................1000
.....................................................13..................................................1500
and so on ...
.................................................................................Total...................2500
In that suppose Invoice not available in that then Total is not showing. But i want to show Total for Incomeing Payment. Can u plz tell me how to solve that proble.
Swapnil

Similar Messages

  • Cstomer customer invoice settlement against Incoming payment

    Dear All
    We have a problem during customer invoice settlement against incoming payment that shown for the partial payment as a new document creation. The scenario as shown below,
         Doc No      Amount
    180000001   50000.00 ;   - Invoice
    140000001   25000.00-   - Incoming Payment / partial payment  
    balance         25000.00 ; - create a new doc no ( but we need setoff to invoice no)
    i.e:
    180000001       25000.00
    any BAPI to apply over come this problem ?
    Thanks
    Madhawa

    Dear:
                  Please refer to the following link, the same question was raised by me
                  Invoice reference field in F-28
                  Regards

  • How to make only some open Invoices visible in Incoming Payments Wizard ?

    I want only to make only some Open Invoices visible in Incoming Payment. Can i use series (Document Numbering) ? Lets say I have SBO in 2 cities and want to user of city A only se open invoices of city A in incoming Payments , and user of city B to see only invoices created in city B . Any ideas ?

    You may use Project code to reach your goal.
    Thanks,
    Gordon

  • Query report for details of incoming payment received based on invoice

    Hi expert
    Can any one Improve this query !!!
    SELECT T0.DocNum as 'AR Invoice Number',T0.DocDate as 'Posting Date', T1.CardCode, T1.CardName,  
    T0.DocTotal as 'AR Invoice Total',T0.VatSum as Tax,T1.CashSum, T1.TrsfrSum, T2.DocNum as 'Incoming Payment Number ', T2.DueDate as 'Check Due Date' ,
    T2.CheckNum as 'Check Number', T2.CheckSum as 'Amount'
    FROM OINV T0 INNER JOIN ORCT T1 ON T0.ReceiptNum= T1.DocEntry Left JOIN RCT1 T2 ON T1.DocNum = T2.DocNum ;  
    where T0.DocDate >=[%0] and T0.DocDate <=[%1]
    For one particular invoice no 88  Amount INR 1345  the customer paid  two cheques of amount INR 1000 ( Incomining payment no 21) dated 10/10/2009 and INR 345( Incoming payment no 25)  dated 12/10/2009.
    But My problem is this query showing only last one that is amount INR 345 of incoming payment no 25 of date 12/10/2009
    Regards
    Arun K Singh

    Hi Arun,
    Couple of things
    RCT2 is the table which has links to the Invoices associated with a incoming payment, so you need to include that.  Also the relation is between OINV and RCT2..so check this query
    NOTE: You date range for selection in the WHERE statment is Invoice Date.  You should consider using T1.DocDate which will be receipt rate. 
    The SQL below is just to show you the relationship between the tables.  Based on the results requirement you will need to work with your JOINS
    SELECT T0.DocNum as 'AR Invoice Number',T0.DocDate as 'Posting Date', T1.CardCode, T1.CardName,
    T0.DocTotal as 'AR Invoice Total',T0.VatSum as Tax,T1.CashSum, T1.TrsfrSum, T2.DocNum as 'Incoming Payment Number ', T2.DueDate as 'Check Due Date' ,
    T2.CheckNum as 'Check Number', T2.CheckSum as 'Amount'
    FROM [dbo].[ORCT] T1
    INNER JOIN [dbo].[RCT1] T2 ON T2.DocNum = T1.DocNum
    INNER JOIN [dbo].[RCT2] T3 ON T3.DocNum = T1.DocNum
    INNER JOIN [dbo].[OINV] T0 ON T0.DocEntry = T3.DocEntry
    WHERE T0.DocDate >= '[%0]' and T0.DocDate <= '[%1]'
    Suda

  • Create A/R Invoice and Its Incoming Payment using DI Server

    Hi Everyone,
    I need to create an A/R Invoice and its payment in a sigle transaction using DI Server. The problem is that I don't know the DocEntry that will be assigned to the invoice in order to set it in the SOP message for creating the incoming payment.
    I guess the SOAP message should look like:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
      <SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
    </env:Header>
    <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add invoice">
      <BOM>
       <BO>
        <AdmInfo>
         <Object>oInvoices</Object>
        </AdmInfo>
        <Documents>
         <row>
          <DocDate>20040707</DocDate>
          <DocDueDate>20040707</DocDueDate>
          <CardCode>BP</CardCode>
         </row>
        </Documents>
        <Document_Lines>
         <row>
          <ItemCode>Item1</ItemCode>
          <Quantity>3</Quantity>
          <TaxCode>My Tax</TaxCode>
         </row>
        </Document_Lines>
      </BO>
      </BOM>
      </dis:AddObject>
      <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add Incoming Payment">
      <BOM>
       <BO>
        <AdmInfo>
           <Object>oIncomingPayments</Object>
        </AdmInfo>
        <Payments>
           <row>
               <CardCode>BP</CardCode>
               <DocTypte>rCustomer</DocTypte>
           </row>
       <Payments>
       <Payments_Invoices>
            <row>
                 <DocEntry>???</DocEntry> <---- ???
                 <InvoiceType>it_Invoice</InvoiceType>
                <SumApplied>100</SumApplied>
            </row>
       </Payments_Invoices>
       </BO>
      </BOM>
    </dis:AddObject>
    </env:Body>
    </env:Envelope>
    Any help?

    Dear Hugo Moreno,
    You could use the GetNewObjectCode Method of the Company Object to retrieves the key of the last added record.
    Please refer to SDK DI API help for this method.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Customer Aging Report Query (without invoices offset by incoming payment)

    Hi All Experts,
    May I know is there any field from JDT1 mention which invoices is already offset by the Incoming payment or AR Credit note? Because I do not want those invoices that already offset by incoming payment appear at the Customer Aging Report. Meaning, the data appear in the Customer Aging Report is only show those invoices that yet to pay by the customer. Kindly give some advise on it. Thanks a lot.
    Thanks and regards,
    Angie Ng

    Hi David,
    Thanks for your suggestion. I have try it, but all of my JDT1.IntrnMatch is in 0 value. Meaning in my situation it is none of any reconcilliation making. But from my SBO window, i manage to see that actually this incoming payment is pay for which invoices. Problem is it is difficult for me to do the possiblity logic that might be happen in my Customer Aging Report Query. Please give some advise that how to show only those invoices yet to pay? The current query will show all the data no matter the invoices or credit memo has been offset.
    select OCRD.cardcode 'Supplier Code',OCRD.cardname 'Name',sysdeb  'Debit GBP',syscred 'Credit GBP',
    case JDT1.transtype
    when '13' then 'INV'
    when '14' then 'AR CN'
    when '24' then 'INCOMING'
    else 'Other'
    end 'Type',
    Ref1,
    fccurrency 'BP Currency',
    CONVERT(VARCHAR(10), refdate, 103)'Posting Date' ,
    CONVERT(VARCHAR(10), duedate, 103) 'Due Date',
    CONVERT(VARCHAR(10), taxdate, 103) 'Doc Date' ,
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 < 31
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "0-30 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 30
    and (datediff(dd,refdate,current_timestamp))+1< 61)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "31 to 60 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 60
    and (datediff(dd,refdate,current_timestamp))+1< 91)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "61 to 90 days",
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 > 90
    then
    case
    when syscred= 0 then sysdeb
    when sysdeb= 0 then syscred * - 1
    end
    end "90 + days"
    from JDT1,OCRD where JDT1.shortname = OCRD.cardcode and cardtype = 'c' and intrnmatch = '0'
    ORDER BY OCRD.CARDCODE, taxdate

  • Invoice number against incoming payment in report

    Dear Experts,
    I want to know if we can add the reference of the column invoice number in the customer ledger of SAP against the incoming payment number which we have taken the against those invoices.  these are on account payments done which are reconciled later with the particular invoices. is there any report in SAP which can show this information. for just this one column, we have to prepare entire ledger customized which we want to avoid. please advise.
    Thanks,
    Binita

    Dear
    Please post only one thread for your question.  You may close the other thread first:
    Invoice number against payment in report
    Thanks,
    Gordon

  • Displaying AR Invoice no in Incoming Payment form

    Hi,
    I want to be able to see AR Invoice No. on the Incoming Payment form at the row level(Document for payment). Can i add a user defined field at the row level and populate this field using a query?
    If so, how should the query be written.
    Thanks for help.
    Regards,
    Satish.

    Hi Satish,
    My SBO is showing this number in the documents for payment matrix. You can switch it on and off using the form settings button in the toolbar.
    Hope it helps,
    Adele

  • Related to linking invoice document  to incoming payment

    hi all
    i am using sap b1 2005B WITH 36 PATCH
    one of the my customer made invoice on the date(04-12-06) and due date is(3-01-07)
    and he has give incoming pay at the date (20-01-07)
    so  when i am linking the  that invoice to this incominig payment  the error will be generated " SERIES PERIOD DOES NOT MATCH  CURRENT PERIOD"
    what is the solution for this  help me
    regards
    sandip
    Edited by: Marc Riar on Feb 28, 2008 3:23 PM

    Sandip,
    What the error means
    The document numbering series have been linked to a posting period which is not currect
    Have you created the posting periods for 2008?
    If so please verify by going to General Settings > Posting Periods ... Click on the yellow arrow next to the Jan 2008 period and check the Period Indicator and make sure that it matches the one used on Document Numbering for this document.
    Suda

  • Invoice details in Incoming/Outgoing Payment PLD

    I used the following Query and it's QPLD but I'm getting the output of
    the both the Present Year and Last Financial Year details.
    Below query is for Outgoing QPLD
    SELECT T0.DocNum [Payment#],
    T0.DocDate [Payment Date], T0.CardCode,
    T0.CardName, T1.InvoiceId, T2.DocNum [AP Inv#],
    T2.NumatCard [Bill No.], T2.DocDate [Bill Date],
    T1.selfInv, T1.SumApplied, T1.WtAppld, T0.NoDocsum 
    FROM  [dbo].[OVPM] T0  INNER  JOIN [dbo].[VPM2] T1 
    ON  T1.[DocNum] = T0.DocNum INNER  JOIN
    [dbo].[OPCH] T2  ON  T2.[DocEntry] = T1.DocEntry
    WHERE T0.Cardname='[%0]' and
    T0.DocDate='[%1]' and T0.DocNum='[%2]'
    Waiting for the replies...
    Regards,
    Balakumar

    The link in your query is not corrected.  Try this one:
    SELECT T0.DocNum [Payment#], T0.DocDate [Payment Date], T0.CardCode, T0.CardName,
    T1.InvoiceId, T2.DocNum [AP Inv#], T2.NumatCard [Bill No.], T2.DocDate [Bill Date],
    T1.selfInv, T1.SumApplied, T1.WtAppld, T0.NoDocsum 
    FROM  [dbo].[OVPM] T0
    INNER  JOIN [dbo].[VPM2] T1  ON  T1.[DocNum] = T0.DocEntry
    INNER  JOIN [dbo].[OPCH] T2  ON  T2.[DocEntry] = T1.DocEntry
    WHERE T0.Cardname='[%0]' and T0.DocDate='[%1]' and T0.DocNum='[%2]'
    Thanks,
    Gordon

  • How to know that Invoice being paid (Incoming Payment)?

    Hi All,
    Do anyone know that where (From table or DB side, not from B1 interface) to check ARInvoice is being made payment or partial payment?
    Thx

    Hi Kok,
    This query is for 2007 only. It uses the Balance due in the Journal Entry and is linked to OINV.
    It will tell you the Original Document total, The Balance due and how much of the original amount has been cleared. It will also give you the Due Date of the Invoice.
    It will separate Foreign Currency BPs from Local and Multi Currency BPs and will also give you the Foreign Currency used in the document and the rate.
    I have not tried this with Invoices that are using installments so it might be something that needs to be adjusted.
    (SELECT
    'Local/Multi Currency' as CurrType,
    t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur],
    T0.[DocRate], T0.[DocTotal], sum(T1.[BalDueDeb] - T1.[BalDueCred]) as 'Balance Due',
    T0.[DocTotal] - sum(T1.[BalDueDeb] - T1.[BalDueCred]) as 'Cleared Amount',
    T0.[DocDueDate]
    FROM
    OINV T0 inner join JDT1 T1 on  T0.[TransId] = T1.[TransId] inner join OCRD T2 ON
    T1.ShortName=T2.CardCode
    WHERE
    T1.[ShortName] <> T1.[Account] and
    t2.currency = '##' or t2.currency in (Select maincurncy from OADM)
    Group by
    t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur], T0.[DocRate], T0.[DocTotal], T0.[DocDueDate]
    having
    sum(T1.[BalDueDeb] - T1.[BalDueCred]) <> 0)
    union
    (SELECT
    'Foreign Currency' as CurrType,
    t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur], T0.[DocRate],
    T0.[DocTotal], sum(T1.[BalFcDeb] - T1.[BalFcCred]) as 'Balance Due',
    T0.[DocTotal] - sum(T1.[BalDueDeb] - T1.[BalDueCred]) as 'Cleared Amount',
    T0.[DocDueDate]
    FROM
    OINV T0 inner join JDT1 T1 on  T0.[TransId] = T1.[TransId] inner join OCRD T2 ON
    T1.ShortName=T2.CardCode
    WHERE
    T1.[ShortName] <> T1.[Account] and
    t2.currency <> '##' and  t2.currency not in (Select maincurncy from OADM)
    Group by
    t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur], T0.[DocRate], T0.[DocTotal], T0.[DocDueDate]
    having
    sum(T1.[BalFcDeb] - T1.[BalFcCred]) <> 0)
    order by t1.shortname, t0.docnum
    I have attached the query in a file as not all signs seems to be copied when pasting into this forum.
    I hope it helps.
    Jesper

  • Invoices / Incoming payment Repoirt

    Hi Expert, does anybody know of a report which lists me AR Invoices and applied Incoming payment to the Invoice ??
    The report needs to list my the applied Payments to an invoice... Thanks

    Hi,
    I am not too sure about the report but have you tested a SQL Query to find the required information.
    Check the following as an example and change further as required :
    select t0.Transid, t0.SrcObjAbs as 'INVNo', t0.reconsum as 'INVAmt', t1.SrcObjAbs as 'PAYNo.', t1.reconsum as 'PMTAmt' from
    (select shortname, transid, SrcObjTyp, SrcObjAbs, reconnum, Reconsum from ITR1 where iscredit = 'D' and srcObjTyp = '13') t0,
    (select shortname, transid, srcObjTyp, SrcObjAbs, reconnum, reconsum from ITR1 where iscredit = 'C' and SrcObjTyp = '24')t1
    where t0.reconnum = t1.reconnum
    order by t0.SrcObjAbs
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • How to Insert Incoming Payments without Invoice?

    Hi,
    Please help me how to insert incoming payments without invoice or those Incoming Payments that is paid to account. I have created code for this but error pops up: "Cannot perform transaction in controlling type account [ThankJDT1.Account][Line: 2]"
    Thanks...

    Hello,
    you may try this:
    Dim oPymt As SAPbobsCOM.Payments
            Dim sum As Decimal = 0 ' Forget double 4ever
            oPymt = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
            oPymt.DocDate = Date.Today()
            oPymt.CardCode = "CB0001"
            oPymt.CashSum = 1200
            oPymt.CashAccount = "38110000" ' here you enter your the account where you record the payment
            If oPymt.Add = 0 Then
                MsgBox(oCompany.GetNewObjectKey())
            Else
                MsgBox(oCompany.GetLastErrorDescription)
            End If
    Regards
    János

  • Can incoming payment can clear multiple invoices

    HI,
    i tried to clear the 2 invoice poted from SD -using incoming payment f-28,these invoices are  with document type RV, but system prompt run time error. Does the system allow the Incoming payment for Multiple invoices and can we clear the SD posted invoices using F-28.
    Treat this as urgent and looking farward for earlly reply.
    Best Reagards
    Raj

    Hi,
    It is possible to clear multiple invoices with one incoming payment, when the amount entered is equal to the amount assigned.
    You can clear SD invoice related accounting document also using F-28.
    If you are getting a runtime error, check whether system runtime needs to be increased in case you are trying to clear a large number of documents. Hope this will help you, otherwise, check for SAP notes. (Note no.484355 / 663610 may be of help to you.)
    Cheers.
    Dhananjai

  • Delinking A/R downpayment invoices from incoming payments

    Dear all,
    Is there a way to delink an A/R downpayment invoice from an incoming payment?
    Kind regards,
    Monil

    Hi Monilshah,
    It is possible to cancel the payment. Then if you want to cancel the Down Payment Invoice you can create a credit note based on it.
    If you mean by delinking a kind of function that would be a reverse of the functionality in 'Linking Invoice to Payment', then this does not exist. Cancel is the only way.
    Hope it helps.
    Jesper

Maybe you are looking for

  • Is this a good choice for a new hard drive for a 13" mid-09 MBP?

    1.0TB HGST Travelstar, 5400 RPM. Anyone had any experience w/ HGST? I only use this laptop for school & surfing. http://eshop.macsales.com/item/HGST/0J22413/

  • Job with materialized view not working anymore

    I'm on windows 2008 server with 10.2.0.4 I have a job that was running at every hour in the database that was refreshing some materialized view (refresh group) the sql query on that MV goes by dblink to another database. Le atrget database had crashe

  • HTTP sender config ?

    Hi Guys, we are trying to configure a third party application for sending xml files with HTTP adapter with the url as http://host:8000/sap/xi/adapter_plain . I need to configure in such a way that it shld not promt for the userid & pw for authenticat

  • Iphone 4 warm and battery power lost in half a day

    my iphone 4 has been very warm, lost battery power from 100% to 20% in half a day. its done this twice since i got it in march. i only txted on person today and i didnt use my 3g at all or wifi. please help

  • Quicktime mov files aren't playing on Client's computer

    Hi. My computer opens & can read the Quicktime movie files that are created through Final Cut Pro from P2 cards. My client's computer cannot. Is that because she doesn't have Quicktime Pro?..or something else? TIA, Heather