Linked btn for AR invoice returnes "no matching record found AR inv. OINV"

hi all,
linked button (see the code bellow)  upon click returns "no matching record found AR invoice OINV" error message. If I cut & paste the number into AR Invoice FORM, invoice 'opens'  without any problems.
Please help
oUserDataSource= oForm.DataSources.UserDataSources.Add("DocNum",SAPbouiCOM.BoDataType.dt_SHORT_TEXT,100);
oColumn = oColumns.Item("DocNum");
oColumn.DataBind.SetBound(true,"","DocNum");
oLink=(LinkedButton)oColumn.ExtendedObject;
oLink.LinkedObject=SAPbouiCOM.BoLinkedObject.lf_Invoice;

Hi Oleksiy,
If I'm not mistaken, linking of documents works on the DocEntry rather than the DocNum. Just try it in your code so we can see if it works.
oUserDataSource= oForm.DataSources.UserDataSources.Add("DocEntry",SAPbouiCOM.BoDataType.dt_SHORT_TEXT,100);
oColumn = oColumns.Item("DocEntry");
oColumn.DataBind.SetBound(true,"","DocEntry");
oLink=(LinkedButton)oColumn.ExtendedObject;
oLink.LinkedObject=SAPbouiCOM.BoLinkedObject.lf_Invoice;
DocEntry is the primary key and not DocNum. I know this isn't ideal, but I don't know if it is possible otherwise. If you have (for example) a choose from list on the same field, you should change the CFL to return the DocEntry rather than the DocNum.
Hope it helps,
Adele

Similar Messages

  • Goods return - No Matching Record Found

    Hi,
    i made Goods return through DI for my add-on.. its worked fine sofar.. i made lot of GRN(goods return) sofar.
    but suddenly its saying error No Matching Record Found(-2028)...
    Any Suggestions?
    Regards,
    Ganesh K
    Anyone post sample coding for Goods returs using DI..
    Edited by: Ganesh Karunakaran on Nov 17, 2008 8:16 PM
    Edited by: Rui Pereira on Dec 23, 2008 3:39 PM

    I don't have a specific answer to the goods return object but usually when I get the message about no matching records found, it is referring to a foreign key field that doesn't exist in a master table.  Perhaps a bad item number or some other value that you are trying to put into a field that gets edited against another B1 master table somwhere.

  • A\R Invoice. No matching record found

    Hi,
    2004C, PL69.
    User creates A\R Invoice and payment at once. When he tries to add A\R invoice to system he gets message: u201C[OINV], no matching record found A\R Invoice (ODBC-2028)u201D. If I (other user) do the same it runs smoothly, moreover when I made a backup of database and restored it to other database and  entered it as that user it ran smoothly too. what should I do to solve this problem?
    With regards
    Maxim Groonis

    This seems to be a strange system behaviour.  If you are able to move ahead by using the other user account to post the AR Invoice + Payment, you should just continue without worrying about the error.
    In the meanwhile I would suggest that you report this to SAP by opening a Support message so that they could investigate on the causes.
    Suda

  • No matching records found 'AR Down payment invoice'

    Hello,
    We are on SAP B1 2005A PL50.
    We have entered AR downpayment invoice copied from a sales order. Then we entered sales delivery copying from the same sales order.
    On the AR invoice screen upon clicking the 'Total downpayment'  we get the message : "No matching records found 'AR downpayment' (ODPI) ODBC -2028.
    Please advice on what could possibly cause this.
    Thanks & Regards,
    Asif

    Hi,
    If you have credit balance of customer, then how did you taken the amount in to the customer's credit?
    If you received the customer's credit thru Journal entry, then the customer's account will get credited.
    If this is the case, then you generate the A/R Invoice for actual amount (ie., without linking the Downpayment in Invoice). While making the Incoming Payment, You select the Journal Entry and A/R Invoice and select "payment Means" button. Now you can make payment to the balance amount.
    If this is not the case, then please explain the method you have taken to amount into customer's credit.
    Raja.S

  • Error in adding A/R Invoice - 'No Matching Records Found'

    Hi Folks,
    This one is related to 'thunderclap8's post last month (June 01, 2011)
    As we create an A/R Invoice, we have encountered an error that says:
    [A/R Invoice  Rows  Warehouse Code] [line: 0] , 'No matching records found  'Inventory Log Message' (OILM) (ODBC -2028)'  [Message 131-183]
    As with the process, the supposed A/R Invoice we're making came from a Delivery/Release that came also to a Sales Order.
    But when we make the same transaction for other Customers, it ends successfully. I'm not trying to point out that it's because of the Customer since the error shows inventory-related concern.
    Any theory on how did it come to this? and any remedy?
    Thanks!
    Fringe

    Hi Raja!
    First and foremost, I would like to thank you for your answer.
    I have checked it and there are no restrictions involved with the item nor with the BP.
    I can't exactly determine the cause of this error.
    I believe you do have other suggestions, don't hesitate to post it here.
    Thanks!
    Fringe

  • No matching Records Found (OACT) for G/L Accounts -2028

    Hi,
    While Adding APInvoice got copied from GRPO shows NoMatching Records Found (OACT) GLAccounts -2028 for a user for a particular document series. For the same user, for different docseries, APInvoice(Copy from GRPO) can able to add. Also, the same document showing error can be added by user having FullAuthorization.
    Also Direct APInvoice without copy from GRPO can be add.
    What might be the problem?
    Any suggestion is appreciated.
    Thanks in Advance,
    Parvatha Solai.N

    Hi,
    Please refer threads No matching Records Found (OACT) for G/L Accounts -2028
    Can't Copy from Good Receipt PO to AP Invoice
    Thanks & Regards,
    Nagarajan

  • No matching records found 'Loading Factors'(OOCR)(ODBC-2028) in A/R Invoice

    Hello everyone,
    We are adding an A/R Invoice and we're getting this error:
    No matching records found 'Loading Factors' (OOCR) (ODBC-2028)
    The invoice can be successfully added, however, the quantity of the items is not being deducted from the warehouse. Hence, we manually change the quantity in the warehouse inventory. This is true for all customer codes and all item codes.
    Need help in here. Thanks.
    Derrick

    Hai!
    Check,
    1. is your company having perpetual inventory system?
    > check under company details>Basic intialization
    2. is your item a inventory item?
    > check in item master.
    3. is your warehouse a nettable one?
    > check in warehouse master.
    These are the possible cases which doesn't affect inventories.
    Regards,
    Thanga Raj.K

  • Incoming Excise Invoice - No matching Records Found

    Hello Experts
    I have a situation where while adding Incoming Excise Invoice , i am getting an error as
    " No matching Records Found  "
    But its has the base document .
    Also all the necessary detaisl required are entered , but still it is showing error
    Please any suggestions from experts
    Regards
    KV

    Hi KrishnaVamsi........
    You need to remap the accounts hit at Incoming Excise Level Like Incoming Cenvat account, Tax Account, Accounts in Warehouse/ItemGroup/Item Level..........
    Hope remap helps you........
    Regards,
    Rahul

  • No matching records found ' cheque for payment '(OCHO) (ODBC -2028).

    Hi All,
    Check number confirmation window does not automatically appear.
    I make all setting with SAP Note 1059752- cheque for payment skipping confirmation screen.
    I get the error message ' No matching records found ' cheque for payment '  (OCHO) (ODBC -2028).
    Can anyone guide  me to resolve this issue.
    Regards
    Vinod G

    Hi Manish,
    Yes, I am able to open the check for payment window manually and in the option credited GL Account , i found account is listed.
    And also i done all setting in house bank setup as per SAP note 1059752.
    Banking -
    > check number confirmation
    check number confirmation - Selection criteria  -
    > Window open
    After data is put and enter
    Error message is display "No matching records found 'Cheques for payment' (OCHO) (ODBC -2028) [ Message 131-183 ] ..
    Till not resolve .
    Regards
    Vinod G

  • No matching record found 'G/L Accounts'

    Hello,
    When I try to copy an A/P Credit memo from an A/P invoice, the following error message appears: "No matching record found 'G/L Accounts' (OACT)[ODBC 2028]"
    This message appears only when I select some lines from the credit memo. If I choose all lines, the credit memo is created.
    SAP 8.8 PL 18
    Any idea please?

    Hi NADIA BENLAMLIH,
    Check This Link.
    http://forums.sdn.sap.com/search.jspa?threadID=&q=Nomatchingrecordfound%27G%2FL+Accounts%27&objID=f264&dateRange=all&numResults=15&rankBy=10001
    Generaly this type Error occured for the G/L Account Determination check it.
    Thanks,
    Srujal Patel

  • No Matching Records Found ''G/L Account''

    Dear All ,
    I am Posting A/P Invoice which is based on GRPO, but while adding document system is showing the following error
    No Matching records found ''G/L Accounts'' (OACT) (ODBC-2028) [Message 131-183].
    The G/L Account determination is Item Group wise and i have checked the Account determination in Item Group everything is fine and i would like to know the Possible reasons for this error.
    Regards,
    Kashi

    Hi,
    Kindly check the following settings :
    1. Check the G/L account setting of the item.
    If managed by Warehouse, then check warehouse -> Accounting tab.
    If item group, then check item group -> accounting tab.
    If item level, then check the item master data.
    Defined all acccounts for the warehouse/item group/item.
    2. Check administration -> setup -> financials -> G/L Account Determination -> General tab. Define the Rounding Account.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • No matching record found G/L Account (OACT) A/P Credit Memo

    Hello Experts,
                                   When i post A/P Credit Memo i get message as No matching record found G/L Account (OACT).
                                    Version SAP B1 8.8 PL11
    I tried following
       check  the rounding account In G\L determination.
       check  the offset account in G\L determination.
    everything is properly set.
    We did upgrade from 2007B to SAP B1 8.8
    Please Suggest
    Quick reply will be helpful

    Hello Gordon & Sachin,
                                                                                    I have even tried in test system , same error it gives,
                                                   I have check the Purchase return , Purchase credit and Expense Account , everything is
                                                   properly set.
                                                   When i do copy to from A/P Invoice , it is getting added                                                                               
    One more error it gives mewhen  i load or open   the from of Purchase A/p credit Memo, it
                                                  Gives error in red color as "Divide By zero error encountered (NFN1)
    Please Suggest

  • Payment wizard -No matching records found  'Bank Codes' (ODSC) (ODBC -2028)

    Hello dear experts,
    I'm trying to execute the payment wizard to receive a payment from a vendor
    The invoice appears in the recommendation report but the payment isn't added when i execute the payment run.
    It appears after that in the Non-Included transactions with the following error message :
    No matching records found  'Bank Codes' (ODSC) (ODBC -2028)
    Can you solve this problem?
    Thank you

    Hi,
    Could you find the followings regarding bank information and check if all the settings are correctly defined
    1. Define payment run defaults > Payment method
       Check payment method details from Administration > Setup > Banking
       > Define payment methods
       Payment method which is linked to BP > payment means - Bank transfer
    2. ODSC table, Bank Code (just to check bank codes are stored well)
    3. BP master data > Payment terms > BP Bank accounts
    4. BP master data > Payment system > House bank.
    Also Check Note no [971105|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=0000971105].
    Regards
    VIkas
    SAP Business One Forums Team

  • Error: No matching records found 'G/L Accounts' (OACT) ( ODBC-2028)'

    Hi all
    While adding outgoing excise invoice from Delivery the system gives the foll error:
    No matching records found 'G/L Accounts' (OACT) ( ODBC-2028)'
    Please note that
    1. I have already mapped cenvat accounts in outgoing/incoming in general tab of G/L account determination.
    2. I have two fiscal years 09-10 and 10-11. Both are unlock. Im working on 09-10 fiscal year and cenvat accounts are mapped for both fiscal years.
    3. For rounding i have also mapped rounding account.
    4. I am easily able to create incoming excise invoice.
    5. I am able to  add some of outgoing excise invoice but in the accounting tab there is no transaction.
    6. My excise tax codes are BED+VAT in which BED is of 0 rate and VAT is of 12.5% or 4% rate, the reason for taking BED as 0 is the comapany is trading and we have to pass excise to customer by taking item as batch.
    This is whole scenario.
    Plz solve my problem considering all these points. Waiting.
    Thanks
    Edited by: Malhotra Saurabh on May 11, 2010 7:13 AM

    I have managed item by groups and warehouse is excisable as i have done GRPO in that warehouse.
    I have already given cenvat accounts in Warehouse too.
    Edited by: Malhotra Saurabh on May 11, 2010 7:55 AM
    Edited by: Malhotra Saurabh on May 11, 2010 7:57 AM

  • Kind Attn.: No Matching Records Found G/L Accounts

    Hi Experts,
    I am stuck up in an Issue.I add a new Sales Order.Convert the sales order to delivery.When I try to add the delivery document,i get an error message saying "No Matching Records found G/L Accounts (OACT).My configurations are as below,
    G/L Accounts are set up by Item Group.
    I have also linked all the accounts to the respective Item Group and also in G/L Account determination including Rounding account.
    I am not sure, whether am i missing anything here.
    And for your information....the delivery document contains 2 items,one in Moving Average and the other in FIFO.
    Regards
    Deepak

    hii Deepak
    Does your system uses User Defined Chart Of Accounts..?
    in that case this Note may be helpfull to you
    While adding the marketing document into the system error message [OACT] 'No matching records found - 'G/L Accounts' '(ODBC 2028)' appears. When the user checks all definitions it looks like all accounts are defined.
    Reason and Prerequisites
    The User Defined Chart of Accounts is used.
    Solution
    When the user chooses User Defined Chart of Accounts under Administration -> System Initialization -> Company details -> Basis Initialization tab , the default accounts remain in the "G/L Account Determination", "Define Tax", "Define Warehouse" windows under Administration -> Definitions -> Financials and Administration -> Definitions -> Inventory. User has to check and define all accounts.
    Rizz

Maybe you are looking for