SDK Outgoing Payment o Pagos efectuados

Buenas, Necesito ayuda para saber cual es el Objeto para manejar los Outgoin Payment o Pagos efectuados con el SDK, tengo para trabajar con los Incoming Payment o Pagos Recibidos, pero no logro conseguir o ver el de los Outgoing Payment.
El codigo para el incoming o pagos recibidos es  :
oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
necesito este misma linea de codigo para el outgoinpayment pero no lo consigo, si alguien me ayuda y me dice que poner se lo agradeceria muchisimo
oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.????????????)

Buenas necesito una ayuda en este tema de pagos recibidos, use el ejemplo expuesto pero no tengo claro que campos son realmente necesarios y el orden , por ejemplo como indico cual es la factura a la cual estoy haciendo el pago?
tendran algun codigo para efecturar pagos recibidos?
el codigo de mi funcion es este pero aun no logro ingresar el pago recibido y no se aun como indicar la factura que sera afectada por este pago
On Error GoTo ErrorHandler
        Dim vCompany As SAPbobsCOM.Company
        'create company object
        vCompany = New SAPbobsCOM.Company
       'PARAMETROS DE CONEXION A SAP
        vCompany = New SAPbobsCOM.Company
        vCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008
        vCompany.DbUserName = "user"
        vCompany.DbPassword = "clave"
        vCompany.Server = "SAP"
        vCompany.CompanyDB = "Pruebas"
        vCompany.UserName = "manager"
        vCompany.Password = "clavemanager"
        vCompany.UseTrusted = False
        'connect to database server
        If (0 <> vCompany.Connect()) Then
            MsgBox("Failed to connect")
            Exit Sub
        End If
        Dim nErr As Long
        Dim errMsg As String
        'ENCABEZADP DE´PAGO RECIBODO
        Dim vPay As SAPbobsCOM.Payments
        vPay = vCompany.GetBusinessObject(BoObjectTypes.oIncomingPayments)
        vPay.DocNum = 19015000
        vPay.Address = "622-7"
        vPay.ApplyVAT = 1
        vPay.CardCode = "C502-1003"
        vPay.CardName = "ABASTECEDOR EL HIGUERON   ((LAS JUNTAS))"
        vPay.CashAccount = "10100101001"
        vPay.CashSum = 0
        'vPay.CheckAccount = "280001"
        vPay.ContactPersonCode = 1
        vPay.DocCurrency = "COL"
        vPay.DocDate = Now
        vPay.DocRate = 0
        vPay.DocTypte = 0
        vPay.HandWritten = 0
        vPay.JournalRemarks = "Incoming - D10004"
        vPay.LocalCurrency = BoYesNoEnum.tYES
        'vPay.Printed = 0
        vPay.Reference1 = 8
        vPay.Series = 0
        'vPay.SplitTransaction = 0
        vPay.TaxDate = Now
        vPay.DocNum = 1
        'TRANSFEREMCOA INFO
        vPay.TransferAccount = "10100101001"
        vPay.TransferDate = Now
        vPay.TransferSum = 5031.2
        vPay.TransferReference = "Refenecia de transferencia"
        'CHEQUE1 INFO
        vPay.Checks.CheckNumber = 1
        vPay.CheckAccount = "10100101002"
        vPay.Checks.CheckSum = 23.2
        vPay.Checks.CountryCode = "CR"
        vPay.Checks.Details = "Detalle del cheque"
        vPay.Checks.DueDate = Now
        'vPay.Checks.LineNum = CInt(0)
        vPay.Checks.BankCode = "BCR"
        vPay.Checks.Add()
        'CHEQUE 2 INFO
        vPay.Checks.CheckNumber = 1
        vPay.CheckAccount = "3343"
        vPay.Checks.CheckSum = 23.2
        vPay.Checks.CountryCode = "CR"
        vPay.Checks.Details = "Detalle del cheque"
        vPay.Checks.DueDate = Now
        'vPay.Checks.LineNum = CInt(0)
        vPay.Checks.BankCode = "BCR"
        If (vPay.Add() <> 0) Then
            MsgBox("Failed to add a payment")
        End If
        'Check Error
        Call vCompany.GetLastError(nErr, errMsg)
        If (0 <> nErr) Then
            MsgBox("Found error:" + Str(nErr) + "," + errMsg)
        Else
            MsgBox("Succeed in payment.add")
        End If
        'disconnect the company object, and release resource
        Call vCompany.Disconnect()
        vCompany = Nothing
        Exit Sub
ErrorHandler:
        MsgBox("Exception:" + Err.Description)
    End Sub

Similar Messages

  • Outgoing Payment (Check) via DI API SDK

    Hey everyone, I'm trying to create an outgoing payment to a customer as a check through the DI API and I'm getting this error "[ORCT] , 'Error (-1004) encountered.'". I believe this is the incoming payment table so I'm not sure why it's part of the message.
    The payment object I am creating is "GetBusinessObject(oIncomingPayments)" so that may be part of it but there isn't an "oOutgoingPayments" for me to use. I've only completed the required fields to reduce the chance of errors being caused by something else (except for object code indicating it's an outgoing payment but maybe outgoing payments require more info). Also, these checks aren't based on any invoices.
    I noticed there is an "oVendorPayments" object as well so I'm not sure if I should be using this one or not.
    Here's the code I am using:
    Payments _payment = (Payments)SBOCompany.GetBusinessObject(BoObjectTypes.oIncomingPayments);
    _payment.CardCode = "C0001";
    _payment.CashSum = 19.95;
    _payment.TransferAccount = "112200-01";
    _payment.TransferSum = 19.95;
    payment.DocObjectCode = BoPaymentsObjectType.bopotOutgoingPayments;
    _payment.Checks.BankCode = "CBT-GA";
    _payment.Checks.CheckSum = 19.95;
    _payment.Checks.Add();
    if (_payment.Add() != 0)
      //failed

    Hi Barend,
    Thanks for the help. I'm now able to create outgoing payments after much trial and error ;). My only question now is how can I use the GL Account number (eg. 112200) instead of the internal account code (_SYS00000000004)? If I switch to 112200 or 112200-01 I get an error "[OACT] , 'No matching records found (ODBC -2028)'" but when I look in the OACT table, the SYS00000000004 record has 112200 for Segment0 and 01 for Segment_1. All the samples I've seen just use the GL account number so I'm not sure what I'm doing wrong.
    Payments _payment = (Payments)SBOCompany.GetBusinessObject(BoObjectTypes.oVendorPayments);
    _payment.CardCode = "C0001";
    _payment.DocDate = DateTime.Now;
    _payment.DocType = BoRcptTypes.rCustomer;
    payment.CheckAccount = "SYS00000000004";
    _payment.Checks.BankCode = "TEST";
    _payment.Checks.CheckSum = 19.95;
    _payment.Checks.Add();
    if (_payment.Add() != 0)
      //failed

  • Making Account  Outgoing Payments by Check means

    Hello everyone, I'm trying to make an Outgoing Payment of type Account and by Check payment means.
    This is my code:
                SAPbobsCOM.Payments pago;
                pago = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oVendorPayments);
                pago.DocType = SAPbobsCOM.BoRcptTypes.rAccount;
                pago.DocObjectCode = SAPbobsCOM.BoPaymentsObjectType.bopot_OutgoingPayments;
                pago.CardCode = "";
                pago.CardName = "***** KAREN GUDIEL *****";
                pago.CashSum = 0;
                pago.TransferAccount = "";
                pago.TransferDate = System.DateTime.Now;
                pago.TransferSum = 0;
                /* Definir las otras propiedades */
                pago.CheckAccount = "11100001";
                pago.Checks.AccounttNum = "01-101-35219";
                pago.Checks.BankCode = "FICOHSA";           
                pago.Checks.CheckSum = 1000;
                pago.Checks.Add();
                pago.Add();
                oCompany.GetLastError(out errCode, out errStr);
    I call the GetLastError after Add(), and the error string reads:
    G/L account is not valid  [VPM4.AcctCode] [line: 1]
    I have retrieved a similar outgoing payment from a Database I'm working with, which has exactly the same properties except for the sum values. I still have no idea how to fix it, I've tried everything.
    The database I'm working with does not use segmentation for Account Codes.
    I have also read [this thread|Outgoing Payment (Check) via DI API SDK;, it helped me alot but now I'm stuck again.
    I would appreciate any help, thanks in advance.
    Edited by: James A. on Sep 5, 2011 6:12 PM
    Edited by: James A. on Sep 5, 2011 6:13 PM
    Edited by: James A. on Sep 5, 2011 6:16 PM

    Hi James,
    Refer This......
    Link: [url] Outgoing Payment (Check) via DI API SDK
    Thanks
    Shafi

  • A/R Invoice - Create two outgoing payments

    Hi,
    We have issue here regading A/R Invoice Payment.
    The A/R Invoice is $100, the payment is $200 with Interact card (Direct account payment) with $100 cash return.
    The present does not work in B1; but will be developed in future release.
    The present can be solved according to Peter Dominik, B1 Solution Management as follow:
    Create two outgoing payments:
    - payment to vendor (payment for his bill)
    - payment on account reposting balance from Bank Account to some
    PettyCash account (cash
    withdrawal from bank account)
    Now I need to source code for the present solution; because all SDK is 1 A/R Invoice and 1 Payment. Now we have to do 2 outgoing payments. We need your help for this solution.
    Please find the code for one transaction below; we need 2 payment transactions.
    Thank you,
    Rune
    oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
    oPayments.Invoices.DiscountPercent = 0;
    oPayments.Invoices.DocEntry = vmp_DocEntry_Int32;
    oPayments.Invoices.DocLine = 0;
    oPayments.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;//13;
    oPayments.Invoices.SumApplied = vmp_Amount_double;
    oPayments.Invoices.Add();
    oPayments.CardCode = vmp_CardCode_string;
    oPayments.DocDate = DateTime.Now;
    oPayments.JournalRemarks = "Incoming - Payment Bank Transfer";
    oPayments.TaxDate = DateTime.Now;
    oPayments.TransferAccount = vmp_BankAccount_string;// "_SYS00000000343";
    oPayments.TransferDate = DateTime.Now;
    oPayments.TransferReference = vmp_CardCode_string;
    oPayments.TransferSum = vmp_Amount_double;
    vc_Message_Result_Int32 = oPayments.Add();
    if (vc_Message_Result_Int32 != 0)

    hi Vitor,
    I need a code sample for Peter's suggestion using the code I provided:
    Create two outgoing payments:
    - payment to vendor (payment for his bill)
    - payment on account reposting balance from Bank Account to some
    PettyCash account (cash
    withdrawal from bank account)
    Thank you,
    Rune

  • Bank Charge for Outgoing payment. Any workaround

    Hi,
    Has anyone develop solution for the Bank Charges in Outgoing payment ?
    Under Incoming Payment, there is a bank charge field which is will post together with the amount received from customer.
    We would like to have the same function in Outgoing Payment and automatically post in Journals. How can SDK help ?

    Hi ,
    Try this work around for bank charges involved while making payments.
    Example
    Amount due to supplier-10000
    Bank charges - 100
    Total payment - 10100
    1)Go to outgoing payment screen/type the vendor and select the invoice of 10000.
    2)Go to payment means and against bank column enter 10100
    3)In payment means in row two type bank charges for 100
    The system will throw an error saying bank charges is not cash account.still u can post the entry.
    The accounting entry will be
    Supplier a/c Debit - 10000
    To bank a/c Credit -10100
    To Bank charges a/c credit - (100)
    (instead of debiting bank charge expenses it is crediting the charges in negative figure / impact is same)

  • Approval on Outgoing Payment

    Hi,
    I am using SAP 2007 A (8.00.175) SP 00 PL 30 our requirement is to block some uses from perform  outgoing payment, that means SAP Systems should trigger for approval if a user xyz want to do outgoing payment but other users who authorized can do outgoing payment without being blocked by SAP System.Is this requirement possible? please advice
    Best Regards
    Grayson

    Unfortunatly there is no way to get an approval for an incoming or outgoing payment in business one. When you are defining the approval
    template there is no option to  choose an incoming or outgoing payment.
    Consequently even if a query were developed to check for when a payment has been made the only the invoice would be sent for approval. As a work around I suggest that you send an alert to the approvers everytime an incoming or outgoing payment is added. If the payment is not agreed on then the payment can be canceled before any other action is performed.
    For other users you should not give them authorization for Outgoing payments under Administration ->General Authorization
    Also you can try using SDK for this issue.
    Regards
    Vikas

  • JE details after posting outgoing payment  can't captured in the Form

    Hi Everyone,
    Im using both SAP B1 2005B PL32 and PL40. I got this problem.
    Our client ask me to customize the AP Invoice and Outgoing payment forms primarily because they wanted to  make the GL entries be included during form printing. However only the AP Invoice is working after customizing the two forms.
    Im using OJDT and JDT1 tables to capture the GL entries after posting the transactions. I really wonder why, Outgoing Payment form is not working when in upon posting of this transaction it still goes to OJDT and JDT1 tables.
    Anyone can help me out. huhuhu..This is really ASAP!
    Regards,
    Beth

    Hi Lilibeth,
    What customization you have done ? Are they one of these following:
    1. SDK code UI/DI ?
    2. Query report ?
    3. Formatted search in UDF ?
    OJDT/JDT1 are the tables to record the JE transaction posted to general ledger for outgoing payment document. So there is certainly link field among them.
    Rgds,

  • Pick TDS Entries in Outgoing Payment

    Hi,
    While making Outgoing payment for TDS type, we need to click on Pick TDS Entries, where we get the list of documents where TDS has been deducted but i need a filteration in there because the list is so long to choose the documents against which TDS needs to be deducted.
    Kindly advice.
    Regards,
    Ashish

    hi
    i am sorry thats the only basis functionality available in the standard b1 however u can customize or generate it as per our liking with the help of SDK
    U would require to take help of coding
    Regards.
    Manish

  • How to create a single outgoing payment?

    Hi All,
    Can any body tell me that how can i create an Outgoing Payment without Invoic references? I can In the BusinessOne UI, but I can't with DI API.
    If any body having the code for creating Outgoing Payment without Invoice reference, please send to me.
    Please Help me!
    Thanks in Advance,
    J

    Hi József,
    Just look at the SDK Helpcenter for the Payment sample,  and don't use the oPayment.Invoice part.
    Hope this helps,
    Ian

  • Pagos EFECTUADOS Y RECIBIDOS POR DTW

    Hola alguien tendra algun ejemplo de cuales son los templates que se deben llenar para realizar pagos efectuados y recibidos por DTW, ligados a facturas ??? ... logro subir el pago, pero no se liga a la factura, sube como pago a cuenta del SN.
    Gracias por la ayuda.

    Hola Jessic,
    Te comento que he utilizados las plantillas de oIncomingPayments para subir pagos (recibidos o efectuados) como draft. Y me ocurrión que cuando utilicé soló la plantilla Payments el pago subía como pago a cuenta, así que tuve que subir  tanto la Payments como la Payments_Invoices. 
    Por otro lado, verifica que el monto a pagar de la factura sea igual al monto total de la forma de pago que deseas subir, pues si no es así la diferencia te la va a llevar como un abono a la cuenta del cliente.
    Espero que la información sea de ayuda.
    Saludos,
    Edited by: Alba Avila on Dec 16, 2009 10:47 AM

  • Table in SQL for Outgoing payments

    Hi,
    I am creating a SQL Statement to pull some information out regarding outgoing payments to the G/L and I expected to see the transaction lines in the RCT4 table but they don't appear.
    Can anyone tell me which table this is stored in please?
    thanks

    Hi,
    Outgoing payments table are OVPM, VPM1 etc.
    Regards,
    Jitin
    SAP Business One Forum Team

  • I encountered an error in the Payment Wizard screen as I was creating an Outgoing Payment for petty cash expenses. On the "Recommendation Report" screen, I clicked "Non-Included Trans." and saw that one of the vendors (Vendor Code: WILCO) has the followi

    Hello,
    I encountered an error in the Payment Wizard screen as I was creating an Outgoing Payment for petty cash expenses. On the “Recommendation Report” screen, I clicked “Non-Included Trans.” and saw that one of the vendors (Vendor Code: WILCO) has the following error:
    “The document amount is greater than the max. amount allowed in the payment methods linked to the BP”
    Upon checking, the “PCF-W” Payment Method linked to WILCO does not have any restrictions, nor does WILCO have any credit/commitment limit set. I have also appropriately defined the Dummy Business Partner Bank (under Payment Terms) as well as checked the “Included” box for PCF-W on the Payment Run-Payment Methods screen.
    Could anyone please help me on this?
    Salamat,
    Cat

    PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
    If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!!

  • Daily Outgoing Payment Report

    Hello,
    We have a Query shown below that allows us to view Incoming payments made each day to an invoice.
    SELECT T2.CardCode [BP Acct#], T2.CardName [BP Company Name], T2.DocNum [Invoice #], T1.DocDate [Receipt Date], T2.DocTotal [Invoice Sum], T0.DcntSum, T0.SumApplied AS 'Paid to Invoice' FROM [dbo].[RCT2] T0 INNER JOIN [dbo].[ORCT] T1 ON T1.DocNum = T0.DocNum INNER JOIN [dbo].[OINV] T2 ON T2.DocEntry = T0.DocEntry WHERE T1.DocDate = '[%0]'
    We would like to modify this query so that the last column of information shows the Outgoing payments made.  Meaning, any amount of money that we owe a customer and therefore apply to their outstanding invoice or as a credit memo, etc.
    Can someone show us how to do this modification?
    Thanks!

    Mike,
    Try this, this is your query, and it works perfect on my DB
    1) SELECT T2.CardCode BP, T2.CardName CompanyName, T2.DocNum Invoice, T1.DocDate ReceiptDate, T2.DocTotal InvoiceSum, T0.DcntSum, T0.SumApplied AS 'Credit to Invoice'
    FROM dbo.VPM2 T0 INNER JOIN dbo.OVPM T1 ON T1.DocNum = T0.DocNum INNER JOIN dbo.OPCH T2 ON T2.DocEntry = T0.DocEntry
    if this query give you results, the problem could it be in the WHERE clause "where T0.DocDate = '[%0]'
    Because you are not inserting a valid value in the '[%0]', maybe you are writing a date that doesnt existe in the "Existing Values" buttom.
    Slds,.
    Esteban Martinez

  • Outgoing PAyment Report

    Hi Experts..
    In which table outgoing payment row level data stores. There are no row level data stores in both OVPM & VPM1 table.
    Here I am clearing my point that I need a report in which I can show A/P Invoice, A/P Credit Memo & JE details in deiff coloums.
    That's why I need the same. My client wants PLD in which he can differentiate all Open Invoices, Cr Memo & JE's.
    Sry if I am not much clear.
    Awaiting for kind reply.
    Regards,
    Ravi

    Hi ...
    Actually My vendors need a Deduction details on Outgoing Payments print layout. In basic PLD it is not possible.
    They need Diff Amounts of diff. forms(deduction) like A/P Invoice- Post Date- doctotal, A/P Cr. Memo - doctotal, JE if any.
    And they need it on Payment Advice Print Layout(Outoign payment). Then I thought to create UDF & set FMS on them & then set on PLD.
    Plz suggest if you have better ideas. Every idea would be highly appreciated.
    Regards,
    Ravi
    Edited by: RAVI_JHA_SAP on May 27, 2011 2:24 PM

  • Outgoing Payment Report - Bank Transfer

    Does SAP Business One have a built in "Outgoing Payments report" that would display payments made via bank transfers?
    Or the only option is to create a query?
    Thanks,

    Hi
    How about checking at forum too.
    Here is one of the query
    Reg: Bank Transfer Repor
    Thank you
    Bishal

Maybe you are looking for