A\R Invoice Payment adding problem,

Hello all
I am trying to add invoice details by SDK  from a XML file which is generated by another application, A/R Invoice  details are adding successfully, but when I am inserting Payment details from SDK(VB.net) Its generating error message
The contact person defined in the Business Partner Master Data is not valid  ORCT.CntctCode
and so payment details is not inserting in SAP B1, Please help me, I am giving sample code below please tell me what to do.
Strange thing is running well in our server but in client's server its only generating error.
/* there has some code to fill myInvoice which is working properly*/
status = myInvoice.Add()
Dim vPay As SAPbobsCOM.Payments
                    Dim vCustomer As SAPbobsCOM.BusinessPartners
                    Dim sqlstr As String
                    vCustomer = CType(ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners), BusinessPartners)
                    vCustomer.GetByKey(xml.Order_Details.custCode)
                    vPay = CType(ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments), Payments)
                    vPay.CardCode = vCustomer.CardCode
                    sqlstr = String.Format("SELECT TOP 1 * FROM OCPR Where CardCode=''", vCustomer.CardCode)
                    lRecordset.DoQuery(sqlstr)
                    If (Not lRecordset.EoF) Then
                        lRecordset.MoveFirst()
                        vPay.ContactPersonCode = CInt(lRecordset.Fields.Item("CntctCode").Value)
                        logger.Info("ContactPersonCode:" & lRecordset.Fields.Item("CntctCode").Value.ToString())
                        'logger.Info(vCustomer.GetAsXML())
                    End If
                    vPay.Invoices.DocEntry = CType(DocEntry, Integer)
                    vPay.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice
                    vPay.Invoices.SumApplied = xml.Order_Details.subtotal
                    vPay.Invoices.Add()
vPay.CashSum = xml.Order_Details.cash
                    'vPay.DocDate = DateTime.Now
                    vPay.DocTypte = SAPbobsCOM.BoRcptTypes.rCustomer
status = vPay.Add() /* In this line its generating Error code -10 and following message*/
The contact person defined in the Business Partner Master Data is not valid  ORCT.CntctCode
Please help me. How can I get ORCT.CntctCode how to initialize properly in run time.
Edited by: kishorebarik26 on Nov 9, 2010 3:24 PM

Hello to All,
This problem occurs, when you duplicate a Business Partner, and you make payment over the duplicated BP.
You may check the OCRD table, and look for default contact field (cntctPrsn). please check he value inside, maybe this value is not belogns to the user.
You may also check the BilltoDef and ShiptoDef fields, maybe the error comes from these fiedls, but the error message is put you into an incorrect path.
I had similar problem in payments whith the addresses, so i know this situation from there. Also logged the support ticket to GSC, and the answer was: this issue is coming from the usage not from the application.
Regards
János

Similar Messages

  • Problems Printing AR Downpayment Invoice + Payment

    Hi Experts,
    I have searched high and low in the forum but I have not been able to find a solution to my problem.
    Currently, what I have done is that I have created a print layout with Crystal Report for my AR Downpayment Invoice and have set this to the default layout.
    I have also created a print layout with Crystal Report for Incoming Payment and have also set this to be the default layout.
    Now, when I click on the print button, I am presented with 3 options:-
    Invoice Only
    Invoice and Payment In Succession
    A/R Invoice + Payment
    Now, when I select A/R Invoice + Payment, and click OK, the system only prints the invoice and does not print the payment document.
    However, if I set the A/R Downpayment with a PLD print out as default, the prints both the Invoice and the Payment document which I have defaulted in the Incoming Payment document.
    Am I doing something wrong here or does SAP not support the print out of 2 Crystal Report layouts?
    Regards,
    Alvin

    Hi Rahul,
    I went to printing sequence to check. From Invoice + Payment, the sequence does not allow me to select print layouts from anything other than AR Invoices, Deliveries, Sales Orders and Sales Quotations. Hence, there is still no way I can access my payment print layout which is in the Incoming Payment module.
    Printing the document directly from Incoming Payment screen is not an option as my client needs to forbid the access to the incoming payment screen for this particular group of users.
    Regards,
    Alvin

  • ETax Module - Problems displaying in req, PO, invoice, Payment, reports...

    Hi,
    We are in the midst of a 12.1.1 implementation and we have encountered a significant problem with Oracle eTax module.
    Are there others that are encountered problems we are faced with?
    1. Currently eTax information is not displayed on any existing requisitions, purchase order, receiving, invoice, payment, reports or forms.
    2. eTax distinct tax accounts are not being applied to every transaction
    3. eTax has rounding errors, when processing small amounts having multiple distirbutions.
    4. eTax information is only generated on purchasing document, after accessing the Tools bar and selecting, 'Manage Tax'. If you don't do this step no taxes are applied.
    This is just a fluke or am I in the same boat as everyone else?
    Thank you in advance for your comments, advice and expert opinion.
    John

    11Albert11 wrote:
    bpont wrote:I am having similar problems...not sure if it's related, but have a look at my post: https://bbs.archlinux.org/viewtopic.php?pid=1253942
    We have the same Intel Chip Maybe some problem with the driver or de dri I'll try the SNA method to se if it helps.
    Using SNA in 20-intel.conf solved my problem, I see the desktop and programs right and I have Slim login back. But now I have another problem flash content in firefox is displaying weird and I think is not a flash problem because it happens in Chromium too.

  • AR Invoice + Payment

    Hi all,
    Pardon me if anyone has posted on this. I have tried searching the forum and found nothing. If this has been posted, please lead me to the right thread.
    Anyway, I have a client with a problem with their AR Invoice + Payment. Normally, we will need to complete full payment before we can add the AR Invoice + Payment. Otherwise, we will not be able to add the invoice into the system.
    However, in the case of my client, they are able to add the AR Invoice even without making payment. They have been complaining to me several times.
    Is there any settings I am missing or is there any solution to this problem? Thanks.
    Regards,
    Alvin Chong

    Hi,
    The only setting needed for AR Invoice + Payment is that the BP Code is defined in the G\L Determination.
    You are mentioning that when you click on the AR Invoice + Payment, then the document window opens with a default BP Code, and then when you add the document, it does not ask for payment to be created.
    If the above case :
    1) Check for the additonal code in the SP_transactionNotification, any FMS etc
    2) Test the same by upgrading the copy of the database in Test Enviorment to the Latest Patch.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Unlimited qty item blocked for invoice payment

    Hi All,
    I am facing problem in invoice payment.The items has been already assigned for overdelivery tolerance as unlimited quantity, but even then they get blocked for invoice payment telling as because of quantity variance they have been blocked.
    Kindly guide for some debugging or parameters to be looked upon.
    Regards
    Dinesh Singh

    Vadim,
    You are a real fellow !!!
    There is a copyright on myposts !!!
    You could at least change a word...
    Re: confirmation over PO quantity not possible despite TOG tolerances
    Dinesh,
    Have you checked all tolerance keys in SRM ?
    There are some tolerance key for GR qty, and some for INV amounts.
    Rgds
    Christophe

  • "CREATE ACCOUNTING"프로그램이 INVOICE나 PAYMENT등을 SELECT하지 못할때

    제품 : FIN_AP
    작성날짜 : 2003-04-07
    "CREATE ACCOUNTING"프로그램이 INVOICE나 PAYMENT등을 SELECT하지 못할때
    ========================================================
    PURPOSE
    Invoice나 Payment정보에 대해 Account정보를 생성한 다음
    GL로 그 정보를 transfer해야 한다.
    그렇게 Account정보를 생성하기 위해 "Create Accounting" 프로그램이
    Concurrent list에 등록되어 있다.
    Problem Description
    "Create Accounting"프로그램을 실행했음에도 불구하고,
    Accounting정보가 생성되지 않음.
    Workaround
    Solution Description
    ap_invoice_payments_all과 ap_checks_all table에 있는 exchange_rate column값이 NULL이었다.
    Concurrent 프로그램 중 "AutoRate"를 실행한 후, 다시 Accounting프로그램을
    실행한다.
    Reference Documents
    -------------------

  • Invoice and reciept must be paid exactly in A/R Invoice + Payment

    We have set the option of overpayment/undepayment amount to 1.00 in the incoming payment of per document tab in the document settings. However, when we enter an invoice and then pay the document with under/overpayment of 1.00 or less in the A/R invoice +payment screen we get the following error: invoice and reciept must be paid paid exactly (message 131-45).
    Is there an option of adding the document for cash sale customers even if the payment is greater than or less then by atleast 1.00 due to rounding/adjustments.

    Hi Asif
    A/R invoice+ Payment
    SAP Business One provides the A/R Invoice + Payment transaction for sales to one-time customers.
    Prerequisites
    The customer pays the entire amount at once (for example, in a shop).
    The customer does not need documents such as an order or delivery note document.
    Settings in the System
    You maintain a representative master record for one-time customers in the system (Administration - Setup - Financials - G/L Account Determination, choose the Sales tab page, then choose Default Customer for A/R Invoice + Payment)
    The system automatically calls up this customer when you enter the invoice. You cannot change the customer number in the document. You can, however, change the customer's name and address in the fields provided.
    Using the default values in the user parameters, you can also assign a separate customer master record to each user for the A/R Invoice + Payment transaction.
    Exception: The customer only makes a partial payment
    In this case, you should create a separate customer master record for this customer so that you can monitor the incoming payments.
    Regards
    Rashid

  • Automatic place invoice payment On Hold when invoice status 'Validated' ...

    Hi..I need a quick help on the following -
    Here is the scenario...I have an Invoice with status ‘Validated’ and Approval field on the Invoice Header (Descriptive Flex Field) with status ‘Not Approved’
    based on the above condition, I am trying to place invoice payment 'On Hold' on schedule payments tab on invoice workbench ... I want to achieve this by a custom program..let me know if we have any standard API to do this(or do we need to directly update ap_payment_schedules_all.hold_flag to 'Y' when above condition is met)...please let me know your thoughts..Thanks!!
    Edited by: user600637 on Feb 21, 2012 2:06 PM

     If it was marked as an invoice then its probably a scam doing the rounds as its been sent by a buyer and altered to look as though he has paid you.
    Signs its a scam are >>>
    its an invoice BUT sellers send invoices not buyers
    marked as paid
    marked as gift
    says payment won't show in your balance for eg 24 hours
    can't be chargedback.
    Paypal NEVER tell you to send anything until the funds are showing in your paypal account balance.
    Paypal payments are more or less instant.
    Paypal will never tell you that a payment can't be subject to a chargeback.      ****************************************** I give up my time to help you so a thank you or kudos would be cool.
    Marking one of my replies as a solution would be appreciated if I sorted your problem.

  • A/R Downpayment Invoice + Payment Print Out Issue

    Dear Experts,
    I have been searching around the forum but have not found an answer to my question.
    I have a user whose license is a combination of the limited CRM and limited Logistics license.
    This user is able to create an A/R downpayment invoice and enter the payment means. He later adds the document into the system.
    Here is the problem:-
    1.  When he retrieves back the downpayment invoice to print, he selects to print "A/R Invoice + Payment". When he does that, a message prompts that he is not allowed to perform the action.
    I am half suspecting that this may be a limitation imposed by the license, considering that he has no access to the Banking module. I do find it weird that the system allows for payment means and downpayment invoices but does not allow for the user to print the payment document.
    Appreciate if someone could shed some light as to what is going on here. Thank you.
    Regards,
    Alvin Chong

    Dear Alvin Chong,
    This is the limitation for user's license type. In fact, those limited license is not allowed to access all final financial document. Not only Banking module.
    Down payment invoice is an exception because it has to be finalized by formal invoice.
    Thanks,
    Gordon

  • Invoice payment status will update in SRM

    Dear Experts,
    I  have done the invoice in SRM and invoice created in ECC and the same invoice number has been updated in SRM with status 'posted in the backend'.
    for thi invoice, i have completed the payment. I would like to know whehter these status will be updated in SRM or not?
    Thanks
    Ravi

    Hi
    It is not possible to see, but there is a way.  You need to check in ECC in FBL1N for this invoice for the invoice payment. and if you are confirm that no further invoice you need to tick final invoice posted in PO.
    With this tick you can confirm the status of the payment.
    regards
    Satish

  • Invoice Payment status in SRM Browser

    Dear SRMers,
    System Information: SRM 4.0, R/3 4.6 c
    We have a situation where users want to see the invoice payment status in the SRM browser. We have not implemented the Invoice module in SRM and invoices are posted and updated in R/3.
    Please suggest what is the best way to accomplish displaying the invoice payment status in SRM browser preferrably in the shopping cart header or in the follow on documents area with less custom work ? Any ideas are welcome.
    Points will be rewarded for answers
    Thanks in advance,
    Bob.

    Hi,
       As explained in one of my previous thread,running the report "BBP_IV_UPDATE_PAYMENT_STATUS" does not update the status in SRM .So for this there will be a lot of std modifictaions required to update the status in the SRM browser(SC history/follow on docs) i.e. ITS template as well as the std includes.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Invoice Payment Block (RBKP-ZLSPR / BSEG-ZLSPR) Update

    Hi ABAP Gurus,
    Good day.
    Basically, I need to update Invoice Payment Block from "W" to "R".  I have tried BAPI_INCOMINGINVOICE_CHANGE but could not change the Payment from "W" to "R".  I believe that this is part of the said FM's restriction.  As per documentation, "it is not possible to change invoice documents flagged for invoice verification in background using this method".  Payment Block "W" is basically Invoice Verification via Workflow.
    On the other hand, I have also tried to use FM FI_DOCUMENT_CHANGE without any success. I keep on getting no document found.  I have played around with the parameters being passed but without any luck.
    Can you kindly provide a solution for this?  Thanks in advance for your help.
    Best regards.
    Brando Braganza

    Hi,
    You want to release a blocked invoice.You can use following BAPI
    'BAPI_INCOMINGINVOICE_RELEASE'
    For sample code
    goto>SWO1>Enter BUS2081
    Method-->Releasesingle
    Thanks
    Nabheet

  • Invoice payment due date.

    Dear all,
    I would like to display the invoice payment due date in my SAPscript. I've heard about the FI_TERMS_OF_PAYMENT_PROPOSE function module and thought that it could feet my need. But I'm wondering if there is no other way to proceed since I can't find documentation on the above function module. Also I'm surprise to do not find in standard among the structured tables the invoice payment due date data.
    Best regards.
    Nozome.

    Hi Nozome,
    You may look at the following post.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/forums/sdn_jive_forums/thread{74687265616449443d3731303434}.jspa
    Cheers
    Vinod

  • Invoice payment made but document not displaying

    HI gurus ,
    I have made an invoice payment  but the document  is not displaying in FB03. How could I know if the posting went through properly or not?
    many thanks for your help
    regards
    cecile

    Hi,
    TIP 1]
    in F110 ( payment run ) you can find a icon Payment ( that one that looks like a paper scheet ). This is payment log and here you can also find which documents were posted by payment and also by which open postings positions. This requires by payment run addtional log check box and vendor/customer number.
    TIP 2]
    In FB03 you can find also by using dynamic selection and selection option Transaction with value "F110" than a list of documents posted in F110 will popup. With another dynamic seletion option it will be more accurately.
    TIP 3]
    Use FBL1N with specific select option to see cleared items to specific date. By generated list of line items you can find your invoice and clearing document as wrote Nitin abov.
    Hope it helps
    Jan

  • A/R invoice+payment and A/R invoice PLD reports

    We are using PLD to generate our reports. Our A/R Invoice+payment report is different from our AR invoice. We have designed to report formats for this in PLD. However, PLD allows to preview only one report that has been made default. Is there an option that we can use to select the type of report to print especially for these reports?
    Regards,
    Asif

    Hi
    I don't think there is any alternative way beside selecting PLD everytime you print the layout .
    I believe it is done by same person (both A/R+ payment and A/R invoice )
    If not you can do :
    1. make your PLD  default  by user  or
    2. In most cases ,only few customer pays right away , you can set PLD default by Business partner or customer who does that
    Hope this helps
    Bishal

Maybe you are looking for