Apply a Payment to an Invoice via DI API

Good day,
I'm trying to apply a payment to an invoice through the DI API. All I did was follow the sample code in the included reference document but it gives me a runtime error "invalid cardcode". Any help would be appreciated.
Thanks in advance!

Hey Guys,
The sample code it is not connected to any Invoice, it is posting a cash receipt (payment without reference ib B1).
The correct code is
Dim vPay As SAPbobsCOM.Payments = oCompany.GetBusinessObject(BoObjectTypes.oIncomingPayments)
        vPay.CardCode = "ACC" ' ENTER HERE A VALID CARDCODE
        vPay.CashAccount = "38110100" ' ENTER HERE A VALID CASH G/L ACCOUNT
        vPay.CashSum = 84 ' ENTER HERE A VALID AMOUNT (eg DocTotal)
        vPay.DocDate = Date.Today()
        vPay.VatDate = Date.Today()
        vPay.DueDate = Date.Today()
        vPay.TaxDate = Date.Today()
        vPay.LocalCurrency = BoYesNoEnum.tYES
        vPay.Invoices.DocEntry = 13 ' ENTER HERE THE INVOICE DOCENTRY
        vPay.Invoices.DocLine = 0
        vPay.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice
        vPay.Invoices.SumApplied = 84  ' ENTER HERE A VALID AMOUNT (eg DocTotal)
       If (vPay.Add() <> 0) Then
            MsgBox(oCompany.GetLastErrorDescription)
        End If
Regards
János

Similar Messages

  • AP - Is it possible to apply a Deposit to an Invoice via a API or Interface

    Hi,
    Some knows if it's possible to apply deposit trough an API or during the invoice interface process?
    Oracle EBS R12.1
    Thanks in advance for the feedback.

    Try AR_DEPOSIT_API_PUB.
    Regards,
    Gareth

  • Apply Cash Payment and Credit Memo to an Invoice via DI API

    Hi, All:
    I would like to be able to create an invoice and apply cash and a credit memo to it which equals the total of the invoice.  This will close out the invoice.
    Does anyone out here know if this can be done through the DI API?  If so, some sample code would be greatly appreciated.
    Thanks.

    For those of you who are wondering, here is an example:
                    int invoiceDocEntry = 0;
                    int creditMemoDocEntry = 0;
                    Documents invoice = (Documents)company.GetBusinessObject(BoObjectTypes.oInvoices);
                    invoice.CardCode = "S001600";
                    invoice.DocDate = DateTime.Today;
                    invoice.DocDueDate = DateTime.Today;
                    invoice.Lines.ItemCode = "A2-IC-6"; //$78.00
                    invoice.Lines.Quantity = 2;
                    invoice.Add();
                    if(invoice.Add() != 0)
                        throw new Exception("Could not add invoice: " + company.GetLastErrorDescription());
                    invoiceDocEntry = Int32.Parse(company.GetNewObjectKey());
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(invoice);
                    Documents creditMemo = (Documents)company.GetBusinessObject(BoObjectTypes.oCreditNotes);
                    creditMemo.CardCode = "S001600";
                    creditMemo.DocDate = DateTime.Today;
                    creditMemo.DocDueDate = DateTime.Today;
                    creditMemo.Lines.ItemCode = "B4-HDMI-.7";
                    creditMemo.Lines.Quantity = 1;   // $10.00
                    if(creditMemo.Add() != 0)
                        throw new Exception("Could not add credit memo: " + company.GetLastErrorDescription());
                    creditMemoDocEntry = Int32.Parse(company.GetNewObjectKey());
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(creditMemo);
                    Payments payment = (Payments)company.GetBusinessObject(BoObjectTypes.oIncomingPayments);
                    payment.CardCode = "S001600";
                    payment.Checks.CheckSum = 68.00;
                    payment.Checks.CheckNumber = 100;
                    payment.Invoices.DocEntry = creditMemoDocEntry;
                    payment.Invoices.InvoiceType = BoRcptInvTypes.it_CredItnote;
                    payment.Invoices.Add();
                    payment.Invoices.DocEntry = invoiceDocEntry;
                    payment.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice;
                    if(payment.Add() != 0)
                        throw new Exception("Could not add payment: " + company.GetLastErrorDescription());
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(payment);

  • Applying down payments bigger than invoice amount

    Hi there!!
    I want to control employee advances via the following procedure:
    Create a Control account in Asset named Employee Advance account
    Create BP group employee and create employee master in Business Partner master data as vendor, link the control account
    Create a downpayment (advance) for the employee
    Booking the invoices using the AP services
    Applying the paymnet using the down payment (but when the advance is bigger than the invoice to pay, that it´s my case, ths system ask me to pay an amount) how could I avoid this?
    How could I applied a bigger advance to an invoice, without book a payment?
    best regards
    PS Internal reconciliation doesn´t works because amounts doesn´t match

    Thanks Gordon/Jitin
    So, I created a payment on account with the difference amount between the downpayment request and the invoice.
    But when i use this last payment to pay another invoice with smaller amount, the difference went to the account configured in "Realized Exchange Diff" (G/L Account Determination).
    So, i understand that payment on account can only be fully reconciled and can not create another payment on account, like the first case. ¿This is correct?
    Rewards.
    Diana Ortega

  • Error when creating Invoice via DI API

    Can you help me, I have a problem about DI
    When I create invoice with serial number and create transaction with 1 item in many serial number itu2019s no problem but
    If i create transaction with 2 diffrent item with many serial number has error the error code -5002([inv1.docentry][line:0],u2019item serial us not found in whseu2026.u2019)
    I using sap 2005 pl 40, I have debug my coding there is nothing wrong with it, than I suspec this is bug in DI is that rightu2026
    This is my code
      Dim oInvoices As SAPbobsCOM.Documents
            Dim iRetVal As Integer = -1
            Dim sErrMsg As String = ""
            Dim isAddHeader As Boolean = True
            Dim iRow As Integer = 0
            Dim sWhsCode As String = ""
            Dim iAddedQty As Integer
            Dim iCurrLine As Double = 0
            Dim iBasedDoc As Integer = 0
            Dim sNewDocNum As String = ""
            Dim sCardCode As String = ""
            Dim isdocnum As String = ""
            Dim CompleteOrder As DataRow
            Try
                oInvoices = myCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                For iRow = 0 To myOrderDetailsTable.Rows.Count - 1
                    Console.WriteLine(myOrderDetailsTable.Rows(iRow).Item(ISSCANNED_FIELD))
                    If myOrderDetailsTable.Rows(iRow).Item(ISSCANNED_FIELD) = 1 Then
                        Console.WriteLine(myOrderDetailsTable.Rows(iRow))
                        CompleteOrder = myOrderDetailsTable.Rows(iRow)
                        Console.WriteLine(sWhsCode & "   " & CompleteOrder(WHSCODE_FIELD))
                        sWhsCode = CompleteOrder(WHSCODE_FIELD)
                        With oInvoices
                            If isAddHeader Then
                                isdocnum = CompleteOrder(DOCNUM_FIELD)
                                iBasedDoc = CompleteOrder(DOCENTRY_FIELD)
                                sCardCode = CompleteOrder(CARDCODE_FIELD)
                                '.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInvoices
                                .Reference2 = CompleteOrder(DOCENTRY_FIELD)
                                .DocDate = Today.Date
                                .DocDueDate = Today.Date
                                .TaxDate = Today.Date
                                Console.WriteLine("cardcode : " & sCardCode)
                                .CardCode = sCardCode
                                Console.WriteLine("ibasedDoc :" & iBasedDoc)
                                .Reference1 = iBasedDoc
                                isAddHeader = False
                            ElseIf isAddHeader = False Then
                                ' .Lines.Delete()
                                .Lines.Add()
                            End If ' isAddHeader
                            iAddedQty = 0
                            iCurrLine = 0
                            Console.WriteLine("CompleteOrder(ITEMCODE_FIELD) : " & CompleteOrder(ITEMCODE_FIELD))
                            .Lines.ItemCode = CompleteOrder(ITEMCODE_FIELD)
                            Console.WriteLine(".Lines.WarehouseCode = CompleteOrder(WHSCODE_FIELD) : " & CompleteOrder(WHSCODE_FIELD))
                            .Lines.WarehouseCode = CompleteOrder(WHSCODE_FIELD)
                            Console.WriteLine("Lines.UnitPrice = CompleteOrder(PRICE_FIELD) " & CompleteOrder(PRICE_FIELD))
                            .Lines.UnitPrice = CompleteOrder(PRICE_FIELD)
                            Console.WriteLine("CompleteOrder(ISUSEBATCH_FIELD) : " & CompleteOrder(ISUSEBATCH_FIELD))
                            If CompleteOrder(ISUSEBATCH_FIELD) = 1 Then
                                For iCurrLine = 0 To CompleteOrder(QUANTITY_FIELD) - 1
                                    If iCurrLine > 0 Then .Lines.BatchNumbers.Add()
                                    .Lines.BatchNumbers.SetCurrentLine(iCurrLine)
                                    .Lines.BatchNumbers.Quantity = 1
                                    Console.WriteLine("CompleteOrder(SCANNED_FIELD) :" & CompleteOrder(SCANNED_FIELD))
                                    .Lines.BatchNumbers.BatchNumber = CompleteOrder(SCANNED_FIELD)
                                    '.Lines.BaseEntry = iBasedDoc
                                Next
                            ElseIf CompleteOrder(ISUSEBATCH_FIELD) = 0 Then
                                Console.WriteLine("CompleteOrder(WHSCODE_FIELD) :" & CompleteOrder(WHSCODE_FIELD))
                                While sWhsCode = CompleteOrder(WHSCODE_FIELD)
                                    If iCurrLine > 0 Then .Lines.SerialNumbers.Add()
                                    .Lines.SerialNumbers.SetCurrentLine(iCurrLine)
                                    Console.WriteLine("CompleteOrder(SYSSERIAL_FIELD)" & CompleteOrder(SYSSERIAL_FIELD))
                                    CompleteOrder(SYSSERIAL_FIELD) = IIf(IsDBNull(CompleteOrder(SYSSERIAL_FIELD)), 0, CompleteOrder(SYSSERIAL_FIELD))
                                    .Lines.SerialNumbers.SystemSerialNumber = CompleteOrder(SYSSERIAL_FIELD)
                                    Console.WriteLine("CompleteOrder(SCANNED_FIELD) :" & CompleteOrder(SCANNED_FIELD))
                                    .Lines.SerialNumbers.InternalSerialNumber = CompleteOrder(SCANNED_FIELD)
                                    ' .Lines.BaseEntry = iBasedDoc
                                    iCurrLine = iCurrLine + 1
                                    iRow = iRow + 1
                                    If iRow <= myOrderDetailsTable.Rows.Count - 1 Then
                                        CompleteOrder = myOrderDetailsTable.Rows(iRow)
                                    ElseIf iRow > myOrderDetailsTable.Rows.Count - 1 Then
                                        Exit While
                                    End If
                                End While
                                iRow = iRow - 1
                            End If
                            .Lines.Quantity = iCurrLine
                        End With ' oInvoices
                    End If ' CompleteOrder(ISSCANNED_FIELD) = 1
                Next iRow
                iRetVal = oInvoices.Add()
    thnx for your attention

    Hello tony,
    Please check the following:
    1.Make sure the item is managed by serials
    2.The serials number have been auto created in GRPO/AP invoice etc puchase document
    3.You need to set the system serial number for the lines. How do you know the system serial number of the serial number? refer to the Serial Number Details form
    Inventory=>Item management=>Serials Numbers=>Serial Number Details
    SystemSerialNumber Sets or returns the successive numerator starting from1 issued for each item with serial numbers management. This numerator progresses according to the creation of new units of the same sort (for the same item).
    This property is mandatory when using Serial Numbers for outgoing documents. Field name: SysSerial.This is a foreign key to the SerialNumbers object
    Sample code to add invoice with items managed by serials:
    Private Sub btnSerials_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSerials.Click
            ConnectViaDI()
            Dim oInvoice As SAPbobsCOM.Documents = Nothing
            oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            oInvoice.CardCode = "C001"
            oInvoice.DocDueDate = Date.Now
            Dim oLines As SAPbobsCOM.Document_Lines = oInvoice.Lines
            oLines.ItemCode = "S00002"
            oLines.UnitPrice = 1500
            oLines.Quantity = 2
            oLines.TaxCode = "CA"
            'Set the system serial no. for the 1st item
            oLines.SerialNumbers.SystemSerialNumber = 3
            'Set the system serial no. for the 2nd item
            oLines.SerialNumbers.Add()
            oLines.SerialNumbers.SystemSerialNumber = 4
            lRetCode = oInvoice.Add
            If 0 <> lRetCode Then
                oCompany.GetLastError(lErrCode, errMsg)
                MsgBox(errMsg)
            Else
                MsgBox("AR Invoice with serials number added.")
            End If
        End Sub
    Kind Regards, yatsea

  • AP down payments and final invoice

    Hi,
    I have a purchase order for 10,000
    I made a down payment to vendor wrt PO for 5000. Now I have received an invoice for 5000.
    When I do MIRO, there is a pop up message saying that 5000 down payment exists on vendor and PO XXX. But it will not adjust against the invoice.
    Is there a configuration to adjust down payment at the time of MIRO(Invoicing) as the clients wants to enter the final invoice only for 5000 and not for 10000.
    Pls suggest me a suitable solution.
    Thanks
    Srini

    Srini,
    since the payment to vendor is 5K only and it is already paid via downpayment, you book the invoice and clear the invoice & down payment together manually through F-54 and F-44.
    from EHP4 the downpayment clearing function is integrated in invoice verification, the BC set "LOG_MMFI_P2P" has to be activated.
    see the link:
    Down Payments in Logistics Invoice Verification - ERP SCM - SCN Wiki
    thanks, sharif

  • Incoming Payment add in sequence via SDK

    Hi guys,
    I want to use the SDK to add an incoming payment based on an invoice. It will only be a partial payment however and I want to pay the invoice in the same way that the "Add In Sequence" button works. I do not want the invoice to close until it is paid in full.
    Can anyone help?

    Hello
    Pay in Sequnece is a business logic, you must code the same  logic as B1 client uses.
    Of cource it is possible. I am sure, until the invoice not fully payed, the sap b1 internal reconsiliation engige will not close the sales invoice, os it will stay opened automatically. (not payed totally, you will see the reaining amount when you open the invoice via B1 client).
    logic should be coded:
    1. get the payment anoumt and customer
    2. get open  of the customer and sort them by date (sequnece based on date).
    here you mayuse a query based on jdt1 (balduedeb and balduecred are the fields holding the open amount of a transaction, ie unpayed amount of the incoive or a Journal entry)
    select * from jdt1 where shortname = 'cardcode' and balduedeb-balduecred != 0
    3. issue the payment object, until the payment amount is fit wiht the selected open items amount.
    Regards
    János

  • Can't create payment for the invoice created by DI Server

    I can not create payment for my invoice that created by DI Server.  The error -2028 appears. I investigated this issue and found that the OINV.CtlAccount is empty. After I filled it manually, I can create the payment for it. Any suggestions? BTW, the version used is SBO2005B.

    It's resolved by apply the patch. Before that, I create a trigger as the work-around

  • Payment of Vendor invoices through an intermediary bank

    Hello,
    I am trying to figure out how to fix this problem.
    I have an open invoice and I want the payment of this invoices to paid first to an account (a bank - an offshore) for example in Belgium. Thereafter the payment would be transfered to my account for example in the Netherlands, cause the bank knows that if a specific account is credited, my account in the NL should be updated with the reciept.
    Should the intermediary bank account be filled in my vedor master data or not.
    Did try the instructions on transaction code FIBPS with another bank, linking to a vendor, thereafter run a payment proposal, but its got mine bank details in the proposal.
    How do I fix this..  That the payment will go to the offshore bank and not first to my bank accounts.
    Thanks Elvis

    in my understanding you just need to set at vendor's master data an Alternat.payee that must be set in SAP as vendor as well with the bank account informed.
    Regards

  • Payment against Reserved Invoice

    Hi Experts,
    We are creating Reserved Invoices through the DI API.  The Reserved Invoice is received in just fine.  After the Invoice is processed through the DI API, we then process a payment for the Invoice.  We are getting an error that states "The Base Document Card does not match the Target Document Card".
    Orginally we were processing Sales Orders and then bringing in the payment.  Both were received into SAP with no errors.  We discovered that we could not link the Payment to the Order, so we changed to using Reserved Invoices.  Now we are getting the above mentioned error when processing the payments.
    Does anyone have any suggestions has to why we could be getting this error?  What would be considered the Target Document?
    here is the payment code:
    SAPbobsCOM.Payments vPays = default(SAPbobsCOM.Payments);
                        vPays = (SAPbobsCOM.Payments)vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
    SAPbobsCOM.Documents SapInvoice = default(SAPbobsCOM.Documents);
                        SapInvoice = (SAPbobsCOM.Documents)vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
    int SapOrder = GetSapInvoiceNumber(OrderNumber);
    SapInvoice.GetByKey(SapOrder);
    vPays.Address = SapInvoice.Address;
    vPays.CardCode = SapInvoice.CardCode;
    vPays.DocDate = PayDate;
    vPays.DocType = SAPbobsCOM.BoRcptTypes.rCustomer;
    vPays.DocObjectCode = SAPbobsCOM.BoPaymentsObjectType.bopot_IncomingPayments;
    vPays.CashAccount = "23500000";
    vPays.JournalRemarks = journal;
    vPays.Invoices.DocEntry = SapInvoice.DocEntry;
    vPays.Invoices.DocLine = 0;
    vPays.Invoices.SumApplied = SapInvoice.DocTotal;
    vPays.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Receipt;
    lRetCode = vPays.Add();
    Thanks,
    Josh
    Edited by: Josh Mellette on Apr 28, 2009 5:09 PM

    Dear Josh Mellette,
    The invoice type should be invoice 13 but not Receipt
    vPays.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;
    and you need to set cash sum if you pay the invoice by cash
    vPay.CashSum = SapInvoice.DocTotal;
    and please check if the DocEntry of the invoice is correct by check OINV table.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • How to create Payment against the invoices in R12 using API/Interface table

    Hi Experts,
    I need your help.
    As per my requirement , we need to create the payments against the invoices using the payment information provided.
    Earlier the Payments against the invoice is done by (3rd party system) in 11i.
    But, as a part of R12 implementation,
    The requirement is like now they are going to provide us and flat file(having below payment information) and we need to create the payment with these information.
    COLUMNS PROVIDED
    SOURCE
    INVOICE INTERNAL NUMBER #
    ACCOUNTING SEGMENTS
    DEBIT/CREDIT
    AMOUNT
    CURRENCY
    BANK ACCOUNT
    PAYMENT DATE
    DUE DATE
    PAYMENT METHOD
    PAYMENT TERMS
    BATCH ID
    We need to create an inbound interface to achieve the below requirement.
    1. Create the payments in oracle R12 with the above payment information. (unable to find the way please suggest).
    2. Creating the Journal entries. -> We are having GL_INTERFACE & Journal Import program to import the journals.
    3. Finally we have to posting the same into GL.-- Interface & Import programs available.
    Is there any api or interface tables can be used to create the payment against the invoices in r12?
    Could you please help me to achive my above requirements.
    Any sample code or reference will be a great help for me.
    Waiting for your response.
    Thanks,
    Thiru.

    Hi Thiru,
    Perhaps these links can help:
    http://ccchuanblog.blogspot.in/2010/12/oracle-ap-payment-api.html
    http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/ap-invoice-payment-need-help-4037407
    See "Understanding Oracle Payments APIs" here:
    http://docs.oracle.com/cd/B40089_10/current/acrobat/120ibyig.pdf
    If this answers your question, please mark the post. Thanks.
    Kristofer Cruz
    Edited by: Kristofer Cruz on Sep 5, 2012 2:41 PM

  • Public API/Interface name to import the payment information against invoice

    Hi,
    I want to get the Oracle supported Public API/Interface name to import the payment information against invoices(because there is a need to importing payment data against closed invoices from 11.5.5 to R12). Since I am not getting any standard oracle supported method, I am using the API AP_PAY_INVOICE_PKG.AP_PAY_INVOICE but while running it I am getting the following error:-
    Payment API Error =ORA-20001: APP-SQLAP-10000: ORA-28115: policy with check option violation
    occurred in
    AP_AIP_TABLE_HANDLER_PKG.Insert_Row <-AP_PAY_INVOICE_PKG.ap_pay_insert_invoice_payments<-AP_PAY_INVOICE_PKG.ap_pay_invoice<-.
    Regards,

    The below query will meet your requirement, but payment amount won't matches with some cases see below .
    1) Check Payment/EFT Payment for more than one invoice we will pay that time invoice amount is
    not equal to payment amount, Payment amount is greater than Invoice Amount.  This will be controlled in Report level.
    if you develop report using this query, there you can control this issue.
    SELECT aia.vendor_id, aps.vendor_name, aia.invoice_id, aia.invoice_num,
           aia.invoice_date, aia.invoice_currency_code, aia.payment_currency_code,
           aia.invoice_amount, aia.amount_paid, aia.payment_method_lookup_code,
           aia.payment_method_code, aia.SOURCE, aia.invoice_type_lookup_code,
           aia.voucher_num, aca.amount payment, aca.bank_account_name,
           aca.check_id, aca.check_number, aca.currency_code,
           aca.payment_method_lookup_code, aipa.accrual_posted_flag,
           aipa.cash_posted_flag, aipa.posted_flag
      FROM ap_invoices_all aia,
           ap_checks_all aca,
           ap_invoice_payments_all aipa,
           ap_suppliers aps
    WHERE aia.invoice_id = aipa.invoice_id
       AND aca.check_id = aipa.check_id
       AND aia.vendor_id = aps.vendor_id
    if it's meet your requirement pls check the Correct/Helpful Answer for your question.
    you can modify this query here and there as per your required fields.
    Thanks
    Hari

  • Error whilst posting a payment against an invoice ..

    I'm trying to post a payment against an invoice but i'm getting an error saying 
    "Error -10: Base Document Card and Target Document Card do not match"
    The code is shown below
    // Post a payment against this invoice  ..
                Payments oPay = (Payments)B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oIncomingPayments);
                oPay.CardCode = form.DataSources.DBDataSources.Item("@MyFileName").GetValue("U_BPCode", 0);
                oPay.CardName = ((EditText)form.Items.Item("CardName").Specific).Value;
                oPay.Reference1 = ((EditText)form.Items.Item("DocEntry").Specific).Value;
                string workFld = ((EditText)form.Items.Item("U_Balance").Specific).Value;
                oPay.CashSum = Convert.ToDouble(workFld);
                oPay.CashAccount = "161010";
                oPay.DocType = BoRcptTypes.rCustomer;
                oPay.Invoices.DocEntry = invoice.DocNum;
                oPay.Invoices.DocLine = 0;
                oPay.Invoices.InvoiceType = BoRcptInvTypes.it_Receipt;
                oPay.Invoices.DiscountPercent = 0;
                oPay.Invoices.SumApplied = invoice.BaseAmount;
                oPay.Invoices.Add();
                int rtnCode = oPay.Add();
               Utility.handleAnError(rtnCode);
    I've checked the obvious that the invoice.DocNum does relate to the business partner in oPay.CardCode ..
    Anyone any ideas ?  The invoice is a service invoice and I don't have any Sales Order or anything for it  ..
    TIA

    Rob,
    which ?
    Robins or mine ?
    EDIT: is see Robin was right
    i place this in my "answered questions" book for other members
    regards
    David
    Edited by: David Nussböck on Jun 3, 2008 3:11 PM

  • How to do Payment against Proforma invoice with excise duty?

    Hi all
    I am using SAP B1 9.0
    I have a scenario like, I want to make a proforma invoice partially/fully for the customer order(sales order) with excise duty and I will receive payment against this invoice.
    I tried to use AR down payment request , thus I can create proforma invoice for partially/fully and I can do incoming payment also, but the problem is I can't use Excise duty(CENVAT) in down payment document. Is there a way or work around for my issue?
    Thanks in advance.
    Pravin

    Hi,
    In standard SAP B1, we can't select Excise tax code in Down payment request document and it will not allow also
    Find below the workaround solution:
    1. When you are raising Down payment request, enter DPM value including Excise Duty. i.e. If the base value is 1000 and Excise duty 120, enter 1120 in DPM value, the percentage will become 112%. In case of partial also calculate partial excise duty and add in base value and enter in DPM value.
    2. Based on Down payment request book the incoming payment
    3. Adjust Down payment request in final AR Invoice it will get adjusted in total value.
    Note: The Excise duties will book at the time of OEI booking (as per legal req). We can't book the excise at the time of Down payment. 
    Regards,
    Kiran 

  • Report to List Incoming Payments and related Invoices

    Hi Experts,
    I would like a query which lists Incoming Payments and also the related Invoices which were paid.
    Is there a table which links together the ORCT and OINV tables?
    Thanks
    Greig

    Hi Greig,
    Link to ORCT - OINV( SELECT * FROM ORCT T0  INNER JOIN OINV T1 ON T0.DocEntry = T1.ReceiptNum )
    Link to ORCT -RCT1 - OINV( SELECT * FROM ORCT T0  INNER JOIN RCT1 T1 ON T0.DocNum = T1.DocNum
    NNER JOIN OINV T2 ON T0.DocEntry = T2.ReceiptNum)
    Try this,
    Lists of Incoming Payments and related Invoices.
    SELECT T0.DocNum,
    COUNT(T0.DocEntry) 'No of Invoice'
    FROM RCT2 T0
    INNER JOIN OINV T1 ON T0.DocEntry = T1.DocEntry
    GROUP BY T0.DocNum
    Regards,
    Madhan.
    Edited by: Madhan Babu C on Aug 28, 2009 9:23 AM

Maybe you are looking for

  • Using a variable's definition as a variable name

    I have a string variable with definition I need to use as a variable name. For example, this is super simplified: var newVariable = 'it is working'; var partOne:String = 'new'; var partTwo:String = 'Variable'; var partThree = partOne + partTwo; trace

  • HP Officejet Pro 8600 "Problem with Printer or Ink System'

    A gander at this forum suggests I am one ofa multitude of people perplexed by this issue. There is a notation beside one enquiry which says 'Problem Solved'.... well it isn't for me. My printer (typical!) is one month out of warranty. I had to replac

  • Notification emails not getting into ical?

    We frequently have a problem whereby invites and notifications of responses to invites don't make it into people's ical.  We are a small office of mac users, most of whom also have an iphone. Taking my computer as the example: 2010 iMac, 10.6.8, ical

  • Installing / Booting Between a SSD and HD

    I recently purchase a Toshiba P500 series computer with a 64GB SSD and a 500 GB HD. I want to install Microsoft Office and other apps were I am not interested in the speed the SSD provides ; I want to conserve the SSD disk space. I understand how to

  • Had youtube add on, now it's gone; how do I get it back ?

    I had a program called Medium Human Audio Converter on Firefox (with a little YouTube icon on the Firefox 21.0 home page). It made it possible for me to take a YouTube song and put the song into ITunes. The "Medium Human Audio Converter" icon is STIL