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

Similar Messages

  • Outgoing Payment- Check

    Hi All
    How can i do payment for vendor by using outgoing payment, I will be using check as my payment mean.
    I need to print the check also( I need to enter manual check number) in the payment mean window.
    Reason for this question is i reported a question with SAP
    Detailed problem description:
    Hi
    Facing a problem while printing "Outgoing Payment", While making out
    going payment we make manual cheque and print the same by using Cheque
    for payment.In the first print out of Outgoing payment amount and cheque
    number will print properly, if i take a second print out of the same
    outgoing payment it will print a different Cheque Number
    I will give an example
    First Printout
    Outgoing Payment No:33129
    Amount: 9239.95
    Cheque Number 602975
    Second Printout
    Outgoing Payment No:33129
    Amount:9239.95
    Cheque Number:590078.
    Help me
    Regards
    Rashid

    Hi Rashid,
    In Outgoing Payment Transaction when making payment through Cheque if you select as manul then then understands it as that you have handwritten the cheque, hence no need for print.
    If you are taking the print out again then it will automatically allocate the cheque No Manually(serially) which is defined in" House Banks Accounts " setup screen in Administration-> Setup->Bank
    So for you to have a proper cheque No display you define the Next Cheque No in House of Bank setup window. and also while taking the print out, you will get a screen once print of cheque has come stating if the print out is confirmed, not printed or damaged. fill in the correct data, like if you need to print the cheque again fill in as not printed then same cheque No will reflect again.
    hope this information helps you out.
    regards,
    Shreyas

  • Outgoing Payment Check Payment Means

    Hi all
    Is it possible to have a default outgoing payment Bank Name in Check Payment Means?
    I am able to get a default incoming payment Bank Name in Check Payment Means based on the BP Master Data House Bank under Payment Terms.
    Kedalene

    Hi,
    Yes possible.  Add default bank details at Company details---Basic initialization tab.
    Thanks & Regards,
    Nagarajan

  • Outgoing payment/ Check Printing

    Hello SAP Experts,
    I have been asked to take care of outgoing payments and check printing to vendors. I have no idea how this can be done. I have created vendor master data and have setup the house banks.
    Please guide me how can I perform a check run for payments and print checks.
    I need this help urgently. Will award point immediately.
    Thanks,
    Elizaa

    hi Elizaa,
    Follow these steps
    Enter <b>Run Date</b>- May be current or the date to be printed on the cheque/ advice
    Enter Identification- to identify your proposal
    Click on <b>Tab Parameters</b>
    <b>Enter-Posting Date</b>
    Docs entered up to- system date for the considering the documents for the payment.
    Enter company codes for which u want to execute APP, payment method and the Next payment date will be the date after the run date mentioned above.
    Enter range of Vendors and/or Customers for the payment run
    If you are doing Forex payments enter the rate type
    U can leave the Free Selection Tab as blank
    Tab-Additional Log check 1,2 & 4th boxes enter the vendor or/and customer range
    Tab- Printout/data Medium select the variant against the program created for the payment method.
    Save the parameters- Ctrl+S
    Tab- Status- Message "Parameters have been entered" is found
    Click on the Schedule Proposal button
    a pop up will appear check the tick box Start Immediately
    Press Continue
    "Proposal is ready to be started" message appears on the status Tab
    Press enter until " Payment proposal has been created" message appears on the Status Tab.
    Click on the Pmnt Run button ,
    Press Continue in the pop up
    "Payment run is ready to be started" message appears on the status Tab
    Press enter till the message" Posting orders: XX generated, XX completed" appears.
    Now F110 is over and cheques are ready for printing.
    Click on the Printout button to print the cheques
    Note: Hope you have completed all the required config in FBZP.
    <b>OR</b>
    Automatic Payment Program:
    •     House Bank Configuration – FI12.
    Enter Company code and select House Bank tab. Click on the Create bank to create a new house bank Enter Bank Country and bank key details and click Bank Accounts. Enter the Bank Account num and the Bank GL account.
    •     Payment Program Configuration – FBZP
    o     All Company Codes – Enter Sending and Paying Company Code, outgoing payment with cash discount from.
    o     Paying Company Code – Enter Minimum amount of Incoming and outgoing  payment and Form for the Payment advice.
    o     Payment methods by country – Select Check will be created, Allowed  for personal payments, Street P.O. box or P.O. box pst code (bank details for Wire transfer) and RFFOUS_C (RFFOUS_T for wire transfer)  as the print (payment) program.
    o     Payment methods by Company Code – Enter min and max amounts and form
    for payment transfer. Payment per due day, optimize by bank group or postal code can also be selected.
    o     Bank Selection – If more than one house bank, ranking order can be  given. Under Amounts, amount available for outgoing payment should  be given. Under Accounts, enter bank-clearing account for bank sub account.
    •     Define Check numbers – FCHI and Void Reasons - FCHV
    •     Payment Run – F110
    Enter Run Date and Identification and go to parameters tab. Enter Company codes, payment methods, next pay date and vendor accounts. Go to Additional Log Tab and select Due date check, Payment method selection in all cases and line items of the payment documents. Go to Print out/data medium tab, enter variant against the Payment program and select Maintain Variants. Enter Paying company code, House bank details, and check lot number. Select Print Checks and Print payment summary for checks and Print payment advice notes for Wire (enter printer and select print immediately). Also make no. of sample printouts to zero. Then execute Proposal, Payment run and Printout. Number range 20 should be defined.
    <b>For Check Printing.</b>
    Go to Tcode SE38 and enter the program as RFFOUS_C and execute it.
    In that screen enter the Identification and program run date and enter all the required firelds and then again execute it....
    So that u can print the Check with the check lot number that u have created
    Please create the check lot number in FCHI.
    If u want to see the spool then go to SP01 and see there...
    Hope this will solve ur problem.....
    ifu want i can send U with the screen shots..
    Ranjit
    null

  • 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

  • Export open checks for outgoing payment

    I am trying to export those outgoing payment checks which have not been deposited. Where would I find them and how would I get the payees name to be included.
    thx, Richard.

    Richard,
    what do you mean the term export here ? is it export to excel ?
    if yes, you could use query.
    Rgds,

  • How to set a different PLD for checks payment vs. outgoing payments?

    Hi Experts,
    Is there a way to configure B1 to use one PLD for checks that originate from the 'Checks for Payment' window/process and another for checks that originate from the 'Outgoing Payments' window/process? I see in our current configuration that they are sharing the same PLD and I would like to change that.
    Thanks!

    Hi Lang,
    If they are issued from the same bank, then it would be the same cheque stock that is used for printing which is why they use the same PLD template. Whether the payment is created through Outgoing Payments, Checks for Payment or Payment Wizard, the end result uses the same template if the same bank is used.
    If it's issued from different banks, you would select the applicable bank and could have different templates. In this case, the PLD template would be determined under Setup / House Bank Accounts.
    Hope that helps,
    Heather

  • 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

  • Outgoing Payment - Payment Means - Check No becomes ZERO

    Hi All Experts,
    When I am adding outgoing payment, I am facing problem i.e. after selecting Check No in reference on outgoing payment, then i am going to enter payment means. I checked Manual then enter check no in check no column, then get amount by pressing ctrl + B and click ok and back to outgoing payment. After that i press Add. When i review the ledger, the check no is missing. It is not showing in Ref.3.
    Can any body help me in this reagards.
    With Warm Regards,
    Chintesh Soni

    Thanks Shridharan for response,
    I am working with SAP Business ONE 2005 B PL 25.
    Have you checked in same ?
    If yes, and there is no problem, then how do i get the PL 38 ?
    I am working as System Support Exe. as end user.
    Pl Help..!!
    With Warm Regards,
    Chintesh Soni
    sonichintesh on msngr yahoo
    sonichintesh at  yahoo co in

  • DI FOR OUTGOING PAYMENT(VENDOR) PAYMENT MEANS CHECKS

    Hi Experts,
    Can you give me a sample DI code for outgoing payments(vendor) through payment means on check. thanks
    Regards,
    Phoenix

    Hi Lucas,
    Are you trying to refund a customer or pay a supplier's invoice? If it's the latter then you need to use SAPbobsCOM.BoRcptInvTypes.it_PurchaseInvoice as the document type rather then it_Invoice.
    Kind Regards,
    Owen

  • Outgoing Payment as a check

    I am attempting to import outgoing payments to close out corresponding invoices which I have been able to do.  Under oVendorPayments, I am using Payment.xlt, Payment_Invoices.xlt, and Payments_Checks.xlt. 
    I can import the Payment and Payment Invoices pieces, but when I try to include Payment_Checks I receive a no matching documents error.
    The only problem that I am having is that I can only associate the outgoing payments with a payments means of 'Bank Transfer', but I want to tie it to a Check.  Do I need to bring in ChecksforPayment first,  or should an import of the outgoing Payments automatically produce that Check?  Could someone identify on the Outgoing Payments import which field I would use to identify between Check, Bank Transfer, Credit Card, or Cash?

    Hi Chris,
    On your Payments template, IsPaytoBank should be tNO for check payment.
    Thanks,
    Gordon

  • Invalid Check Number in the Outgoing Payment SAP 8.8

    Hi Experts,
    Can somebody help me give the reason why system was not able to accept manual check number 31234578910 in the Outgoing Payment?. System message is "Numeric Value deviates from legal range". Based on the system information displayed Cheque Number (Number from -2147483648 to 2147483648. Is there set up for the valid check number in SAP 8.8 UK Localization?
    Hope to hear from you soon
    Sandra

    Sorry it's supposed to be 3123456789.  Data Type for checkNum is int, null.  As per system message in the status bar, allowable number is -2147483648 to 2147483647.  I was wondering, if it's an integer then why is it there is number range allowed.
    Thanks
    Sandra

  • Copying Comments from Outgoing Payments form to its checks for payment

    Hi!, is there a way to pass the comments from the Outgoing Payments to the comments of the check for payment of the same outgoing payment?
    We want to see in the checks for payments comments field, the same comment from the outgoing payment which the check was originated.
    Thank you!

    If you are talking about bringing the Outgoing Payment comments to the Check Journal Remarks field, you could do it using a formatted search.  Save the following SQL and link the query to the Journal Remarks field
    SELECT T0.Comments FROM [dbo].[OVPM] T0 WHERE T0.DocNum = $[OCHO.TransRef]

  • Linking Outgoing Payment to Checks for Payment

    Hello Experts,
    Is there a way i can link the already processed outgoing payment (under Banking) to my Checks for payments?
    I need to have the AP Invoice No. copied to the Remarks in the Checks for Payments and the journal remarks to be the same in both the documents.
    Thanks.
    Feroz

    Feroz,
    You can manually update those fields but there's no way to create a link between the two documents. You can cancel the original ones and process them again including the new outgoing payment.
    Regards,
    Nat

  • Outgoing payment via credit card

    Hi,
    We recently implemented SAP Business one and I have no idea how to handle the credit card transactions when we payout our vendors using Amex. How does SAP handle the credit card transactions, paying to the vendor and payingback to Amex. Can somebody help me.
    Thanks.
    Abdul...

    Hi Abdul,
    When you get the vendor invoice, create your own purchase invoice.
    1 Then go to Banking Outgoing payment. Search for the Vendor, it brings up the open invoices. Select the invoice, then right click to choose Payment Option or the Money bag icon on the top tool bar.
    2 From the payment screen choose the Cheque Tab and enter the amount and Click on Add. A check number of 0 means, it picks up the next number from banking setup during check printing. Automatically a check has been created.
    3 Now go to banking ->Checks for payment, and pull up the last record. You can see your check that is ready for printing.
    Note: Housebank and matching accounts need to be defined first.

Maybe you are looking for

  • Not able to install BB Maps on 8520

    Hi frnds ! New to this community, I got BB 8520 just few days back, I am trying to install MAPS on it, it get installed but when i try to run it i found an error saying: " Error starting net_rim_bb_lbs: Class'net.rim.device.apps.api.quickcontact.Quic

  • How to get the Empty page in Webi report

    Hi, I have to insert the charts in the report but i don't have the space to insert the charts in same page so i need one more page how to get the blank page in report thanks,

  • Using a concastinated variable to indentify an object

    Hi, what I'm trying to do is loop through 81 jTextFields and disable them using concastinated variable names. I don't even know if this is possible. To clarify : I have 9 jPanes, (named Pane1 to Pane9). Each jPane has 9 jTextFields, (named a11 -> a19

  • AS3 Project in Flash Builder

    Hi I am an experienced AS3 developer working on a Mac, been working in the CS4 IDE and using Textmate for html, PHP etc. I am very keen to use Flash Builder IDE to build my AS3 projects. I have been able to create actionscript projects but when I try

  • Mac Pro 1.1 2006-2007

    Originally this posted as 1996-1997 as I was attempting to post this at 2:30am. I recently had an experience with my Mac Pro 1.1 where it started lagging badly and when I attempted to reboot it locked up. At one point the Time Machine external drive