Add Outgoing Payment

This is my code for creating Outgoing Payment.
Dim payment As SAPbobsCOM.Payments = SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oVendorPayments)
payment.DocDate = Date.Now
payment.CardCode = "Testing"
payment.PayToCode = "Testing PTD"
payment.DocType = SAPbobsCOM.BoRcptTypes.rCustomer
payment.IsPayToBank = SAPbobsCOM.BoYesNoEnum.tNO
payment.CashSum = 15
payment.CashAccount = 123456
if payment.Add() 0 Then
oWrite.WriteLine(SBO_Company.GetLastErrorDescription)
oWrite.WriteLine("Add Outcoming Payment: Record Fail")
end if
Question:
When the CashSum is 15, the AddOn will have an error message: Data cannot be empty in one of the tables Doc1, Doc3, Doc10. http://VPM2.InvoiceIdline: 0
But When the CashSum is changed to 50, the outgoing payment can successfully create.
Do the code have any problem to make this error?
SAP Version: SAP Business One Verison 2005B Patch 35

Yes, it can successfully create in SAP B1 (UI).
But Using the addon for the same data, the error will orrur.
Actually, I don't know why it can create when I change the Amount of the payment using the addon.
PE: FOR MY FINDING: the DI API cannot create the payment when it is lower than or equal than $30.
Which version of SAP Business One can solve this problem?
Edited by: Gordon Ho on Apr 19, 2010 8:04 AM
Edited by: Gordon Ho on Apr 19, 2010 9:02 AM
Edited by: Gordon Ho on Apr 19, 2010 9:03 AM

Similar Messages

  • Not able to add outgoing payment for vendor

    Hi to all Experts,
    I am facing problem i.e I am not able to add outgoing payment for Vendor. I have tried to multipul time using different users also. I have booked purchase first and then tried to make payment to the vendor.Docdate is 14th Jul 08, and docdue date is 18th Aug. 08.
    I have made two entries for outgoing payment using G/L A/c. option before trying to do this entry successfully.
    Can any body plz help me to resolve this issue.
    Warm Regards,
    Chintesh Soni

    Hello Chintesh,
    The scenario seems to be similar to the one described in Note 1027043.
    Here is the text from the Note:
    "You are trying to add the an Outgoing Payment for an A/P Invoice or A/P Credit Memo using Checks as Payment Means. However, after pressing the 'Add' button, the payment is not added and the system does not send an error message."
    This issue occurs when the Vendor Ref. No. field in the A/P invoice or the A/P credit memo has more than 39 characters.
    It is an application error that is fixed in PL26, 2005B (Note 1073858). Kindly upgrade to the latest patch. If not possible at the moment, you can use the workaround provided in the Note.
    I hope this helps.
    Regards,
    Lorna Real

  • Outgoing payment automatically printed once add.

    Hi,
    I'm facing a problem, when user add outgoing payment (payment mean by cheque), after successful add the outgoing payment, SAP system automatically print (send to printer) the outgoing payment.
    Anyone face the same problem?
    Regards,
    Muhamad

    Hi Muhamad,
    Check if any user default is set for the particular user. go to Administration> Set up. General>Users. user default>Print> Add button will also--> untick print document. Hope this wil solve your problem.
    Also check under system initialization>Print preferences>per document> outgoing payment> untick print document.
    Thanks,
    Joseph
    Edited by: Joseph Antony on Dec 15, 2010 11:40 AM

  • Restrict Outgoing payment document, if cash is more than Rs.20,000

    Hai!
    I am using SAP B1 PL40.
    can u help me out on this issue.
    I want to restrict the users to ADD
    Outgoing Payment document if they choose,more than 20,000 payment by cash mean.
    pl let me know if u want more detailed explanation.
    Thank u,
    Thanga Raj.K

    Hi Thangaraj,
    Try the following Stored Procedure. I checked in my system and works fine.
    Try the same in the Test System. Then get the approval and load in Live System.
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(25),                     -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    -- Return values
    declare @error  int                    -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    select @error = 0
    select @error_message = N'Ok'
    IF @transaction_type = 'A' AND @object_type = '46'
    BEGIN
    If exists (SELECT T0.docentry  FROM OVPM T0 where T0.cashsum>=20000)
         begin
              SET @error = 10
              SET @error_message = N'You cannot Pay Cash More than Rs. 20000/-'
         end
    END
    select @error, @error_message
    END
    Edited by: Sridharan T on Aug 25, 2008 11:35 AM

  • Outgoing Payment not allowed with witholding Tax 8.8

    I am getting error "No Matching Record Found - PCH4 ODBC-2028" while making outgoing payment
    in SBO 8.8
    W.Tax applied on A/P invoice and showing correctly but error is coming while making payment against
    this invoice.
    What's wrong.
    OPS

    Hi Sanju,
    I have tried both way:
    (1) First  I created service Invoice and applying witholding tax... It calcualted TDS correctly.
          When I try to make payment against this Invoice, Outstand Amt showing correctly.
          But it does not allow me to add outgoing payment and giving error "matching record not
          found PCH4-ODBC-2028"
    (2) I created service Invoice and not applying WTax. Even it is not allowing to make payment
          as same error is coming.
    In gen practice, we have to deduct, TDS of all contractors. let me know some clue. I did setup
    exactly as per guideline of How-To documents of SAP.
    Any clue by any one
    OPS

  • SBO object for outgoing payment

    HI All,
    I am using SBO 2004. I am trying to add Outgoing payment through DI. There is only one object for this Payment.When i try to intialise Payment object, I couldn't see outgoing payment, it shows only incoming payment. How will initialise outgoing payment?
    Please help
    thanks in advance
    BBN

    Hi Kevin,
    You have a type property on the VendorPayments object where you can specify that the outgoing payment should go to a customer, supplier or account.
    rCustomer Payment to or from a customer.  0 
    rAccount  Payment is not directly connected with customer or vendor.  1 
    rSupplier Payment to or from a Vendor.  2
    Code as follows:
    oPayment.DocType = rCustomer
    Hope it helps,
    Adele

  • How to add the Assignment column on this post outgoing payment in f-53

    Hi all,
    how to add the Assignment column on this post outgoing payment in f-53?
    thanks.
    Joo

    Hi ,
    If you want to see the assignment column in f-53 process open item screen
    1. First in O7V3 check for t.code FBz2 which line layout ( 2 digit code is assigned)
    2. Then in t.code O7z4s check in the line layout and if assignment field is not there then insert the field.
    then check in F-53.
    Hopw it will solve your problem.
    Assign points if useful
    Regards
    Prabhat

  • Add additional table in Outgoing payment PLD.

    Dear Expert,
    Can i know how to add additional table which is VPM4 to my Outgoing payment PLD to show out the Bank GL account number? In original outgoing payment PLD does not have this table.
    Regards,
    Vivian

    The "system print layout templates" provided with SAP Business One can be "saved as" and users can customize them according to their company needs. Due to the database structure not all the tables can be related to any field in any template.
    You can bring additional table in to PLD by Using ALT + clicking on the "Table" field opens the entire list of tables, including the tables that do not appear by default.

  • Error doing outgoing payment against A/P Downpayment Request

    Hi,
    I am working on SAP B1 8.8 PL00(evaluation version). While posting Outgoing Payment against A/P Downpayment Request,system  displays following error message-'Invalid Account Code'. It happens for both the payment means-Check as well as Cash. In G/L Account Determination -Purchase Tab-General Tab I have assigned G/L account to 'Down Payment Tax Offset Account'. Also in BP Master following accounts have been assigned-1.Accounts Payable 2.Down Payment Clearing Account.
    What could be the reason of the error?Please guide me.
    Regards
    Sudhir

    Dear Sudhir Jadhav,
    Apart from the accounts that you have mentioned there is also the Down Payment Interim Account in the General Tab of the Purchasing and Sales tab of the G/L Account Determination.
    I have tested the creation of the payment for the Down Payment and at first I could not add it because of an account issue. When I added this account it worked.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Is there any way to cancel only 1 transaction in an Outgoing Payment?

    Dear Experts,
    If I have an Outgoing Payment that was already posted, and it consists of 100 invoices. Lets say one day I realized 1 of the invoice was posted wrongly, and I wish to cancel that invoice (with credit memo) and also from the Outgoing Payment. Is there any other efficient way where I can cancel only that invoice in the Outgoing Payment, without canceling the Whole Outgoing Payment?
    Because, canceling the Whole Outgoing Payment will mean that I need to re-add the 99 invoices again in a new Outgoing Payment, which is very troublesome. Is there a way to do this? Or is there any efficient workaround this procedures.
    Much Thanks in Advance for your advice.
    Warmest Regards,
    Chinho

    Chinho,
    You may post your request to the following forum, so that it will be a candidate to be developed in future version:
    /community [original link is broken]
    Thanks,
    Gordon

  • 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

  • Creation of EDI 820 fromat for outgoing payments in SAP

    Hi Experts,
    We have a requirement where in we need to create an outgoing  payment file in EDI820 with in SAP.
    We basically need to create specifications in EDI820 format for the bank to print checks and make wires and EFT payments.
    That EDI820 file will be created at the time of Automatic Payment Run(F110).
    Right now our client is sending a flat file to external service provider and they are creating EDI820 files and sending to the banks. Going forward the services of this service provider will be decommissioned and  an EDI820 file is to be generated in SAP and sent to the bank via SWIFT Net.
    Bank has provided us a sample file and file format for EDI820. This file format contains ST, BPR, RMR, REF etc records. There records have different codes and qualifiers.
    As far as we have analyzed, there are no standard SAP programs that can generate flat file in the EDI 820 format. Therefore we are heading towards developing a Z program for creating an EDI820 format.
    We are facing problem in mapping this file with SAP fields. We need to know how exactly we can map this file in SAP so as to create a program to generate EDI820. If anybody has had a similar requirement (for creating outbound EDI820 in SAP) and can provide us some lead, it will be greatly helpful for us.
    Thanks in advance for the help!

    The program that sends the flat file should give you all the necessary fields, selection criteria, etc.  If the third-party constructs EDI820 from it, then there is enough data in that file for you to add steps to create an 820. 
    So, I'd start with the existing program, a particular outbound file and a copy of the 820 file created from it (if that can be obtained) and figure out how the intermediary converted the data to the correct format.  Piece of cake, right?

  • 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

  • Document Date on Outgoing Payment/Statement Report PLD

    Hi,
    Is there a way to display the Document Date of the paid/outstanding invoice on the print layout for Remittances (Outgoing Payment) and Customer Statement (Ageing - Customer Statement Report)? At the moment it's only the Posting Date for the Outgoing Payment and Posting Date + Due Date for the Statement Report but would be great to have the Document Date too.
    Regards,
    Nat

    Hi Natalia,
    for adding the Document date to the Outgoing payments form you can add field via modification of the print layout. For example OVTG.Tax Date should represent the document date.
    I would like to know what is the scenario for the document date to be visible on the Aging report.
    Best Regards,
    Martin Slavik
    SAP Business One Solution Manager

  • Outgoing payment print layout

    I want to add journal entry details in Outgoing Payment print layout
    but when I choose source: database, I can not find Journal Entries-Rows in that list
    How can I display journal entries in Outgoing payment report
    because my accountant need it
    Regards,
    Fransiskus

    You can press the alt key and click on the table dropdown in properties. That will display all tables. Be careful though - the document might not work anymore without there being a relationship between the document and the field you want to display.
    Regards
    Daan

Maybe you are looking for

  • Can't load itunes on windows 7.  Received Apple update and something went wrong.  Now it won't install from the apple website at all

    Apple sent an update to itunes program and it didn't complete installation correctly.  Now I can't load it and get a consistent error message and the iiPhone can't sync without itunes installed.  Anyone able to help with this?

  • Issue in third party sale

    Dear All, Issue is that i m doing third party sale. Made sales order with Item Catagory TAS.Quantity 10.Linr item 10.PR created. Then i've made PO with refrence of line item 10,quantity 5 EA.Quantity 5 remains open. Then with the refrence of PO i've

  • Down payment against assets

    hi how to do down payments against the asset acquisitions

  • Generate SWF in runtime

    Hello, Can any one tell me what exactly will be sent to mobile phones from http://www.mobidoki.com/moods/ when we click on "Send" button. I guess its swf, but how to create SWF in runtime? Is anyone having some idea? Thanks in Advance Tanweer

  • Reg: Mode of the info package

    Hi Experts, As we can run an info pakage in different modes like 'INIT', 'FULL' & 'DELTA' - this mode will be given as input in i_updmode for the extractor function module. But we are unable to get that value. whenever we run, the i_updmode is coming