Creating a Good Receipt PO via DI API No matching records found (ODBC -2028)

Hi,
I trying to create a Good Receipt PO via DI API.  It is working when the user I used to log in to SAP via the DI API is a Professional User but when I changed it to a Limited Logistics User, I'm receiving the No matching records found (ODBC -2028). I have already added the SDK Tools license to that user but still I'm receiving that error.
So is it that the DI API will only work with a Professional User license or I can still use a Limited Logistics User?

HI J S L,
I get same error when I use different user that I just now add the SDK Tools without restarting the database server.  But previous user that I added SDK Tools before restart, no error.
Today
User 1 - add SDK Tools, no restart, error
Last Wednesday
User 2 - add SDK Tools, no restart, error
Today - database server restarted this morning
User 2 - no more error
Both User 1 and 2 are Limited Logistics User.
Best regards,
Dennis

Similar Messages

  • Problems in creating a Goods Receipt Draft

    Hello,
    I am trying to use the DI-API and the SDK to create a Goods Receipt Draft document and link it to an existing Purchase Order.  When I try to add the draft object, I receive an internal error (-2010).  Here is the code that I am using.  Can someone see if anything is wrong with this, or does anyone have any insights into this type of error?
    SAPbobsCOM.Documents draft = null;
    draft = company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
    draft.Reference1 = tempDocEntry;
    draft.CardCode = tempCardCode;
    draft.DocDate = DateTime.Now;
    draft.NumAtCard = tempOrderNumber;
    draft.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes;     // Used so that the objType will be 20 for a Goods Receipt Draft
    draft.Comments = "";
    draft.Lines.BaseEntry = System.Convert.ToInt32(tempDocEntry);
    draft.Lines.BaseLine = System.Convert.ToInt32(row["Line #"].ToString());
    draft.Lines.BaseType = System.Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oPurchaseOrders);
    draft.Lines.ItemCode = row["Item #"].ToString();
    draft.Lines.Quantity = System.Convert.ToInt32(row["Qty"].ToString());
    draft.Lines.Price = System.Convert.ToDouble(row["unit price (USD)"].ToString());
    draft.Lines.WarehouseCode = "0" + row["Whse Code"].ToString();   // prepend with zero, if the code is of length 1
    draft.Lines.Add();
    result = draft.Add();        // Add the draft now
    if (result != 0)
          thisError = company.GetLastErrorDescription();     //*** THE ERROR RESULT IS RETURNED HERE...
    I am hoping that someone can provide some feedback and direction on this one fairly quickly as I am on a pretty tight time constraint to implement this solution.
    Thanks,
    Jonathan

    Hi Jonathan,
    I haven't tested your code but I notice that you are calling the Add method of the Lines child object incorrectly. It's a bit confusing but the Lines.Add method should be called first and then you use the SetCurrentLine method to access the properties of this line. To make it more confusing, a new instance of the Documents object automatically gets one, blank line so you only need to call Lines.Add when adding a second line (and each subsequent line).
    For example, say I have a recordset of line details from a base PO that I want to add to a new, draft GRPO:
    int lineIndex = 0;
    while (!rec.EOF)
         if (lineIndex > 0) draft.Lines.Add(); // Only need to add new line after first one
         draft.Lines.SetCurrentLine(lineIndex); // Set focus to newly added line so I can set properties
         draft.Lines.BaseEntry = System.Convert.ToInt32(rec.Fields.Item("DocEntry").Value);
         draft.Lines.BaseLine = System.Convert.ToInt32(rec.Fields.Item("LineNum").Value);
         draft.Lines.BaseType = System.Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oPurchaseOrders);
         draft.Lines.ItemCode = System.Convert.ToString(rec.Fields.Item("ItemCode").Value);
         draft.Lines.Quantity = System.Convert.ToDouble(rec.Fields.Item("Quantity").Value);
         draft.Lines.Price = System.Convert.ToDouble(rec.Fields.Item("Price").Value);
         draft.Lines.WarehouseCode = System.Convert.ToString(rec.Fields.Item("WhsCode").Value);
         lineIndex++;
         rec.MoveNext();
    Kind Regards,
    Owen

  • Need BAPI for MIGO to create a Goods Receipt against PO &Outbound Delivery

    Hi Friends,
    GRN’s (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
    I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
    PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
              If PO Number = EKKO-EBELN    GR against Purchase Order
                            = LIKP-VBELN      GR against Outbound Delivery
    Based on the above condition I need to create a Goods Receipt. 
    Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
    The fields available are with us are...
    Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number… SLED
    Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
    Please provide sample code if possible.
    Waiting for replies,
    Thanks and Regards,
    Sudha

    Hi Friends,
    GRN’s (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
    I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
    PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
              If PO Number = EKKO-EBELN    GR against Purchase Order
                            = LIKP-VBELN      GR against Outbound Delivery
    Based on the above condition I need to create a Goods Receipt. 
    Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
    The fields available are with us are...
    Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number… SLED
    Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
    Please provide sample code if possible.
    Waiting for replies,
    Thanks and Regards,
    Sudha

  • Call BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order

    Hi,
    I'm calling the bapi BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order, but the following code doesn't work. It doesn't give me any kind of error message but it does nothing as well...
    Can anyone help me please?
    Thank You
    Hugo
    Code
    DATA: wa_goodsmvt_header  LIKE bapi2017_gm_head_01,
                            wa_goodsmvt_code    LIKE bapi2017_gm_code,
                            wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
                      DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS  0 WITH HEADER LINE,
                            it_return        LIKE bapiret2 OCCURS  0 WITH HEADER LINE.
                      wa_goodsmvt_header-pstng_date = SY-DATUM.
                      wa_goodsmvt_header-doc_date   = SY-DATUM.
                      wa_goodsmvt_header-ref_doc_no = '4500000020'.
                      wa_goodsmvt_code-gm_code = '01'.          "Goods receipt for purchase Order
                      it_goodsmvt_item-stge_loc  = 'BPF2'.
                      it_goodsmvt_item-move_type = '101' .
                      it_goodsmvt_item-entry_qnt = 17.
                      it_goodsmvt_item-entry_uom = 'KG'.
                      it_goodsmvt_item-mvt_ind   = 'B'.
                      it_goodsmvt_item-po_number = '4500000020'.
                      it_goodsmvt_item-po_item   = '00010'.
                      it_goodsmvt_item-material  = '50'.
                      APPEND it_goodsmvt_item.
                      CALL FUNCTION  'BAPI_GOODSMVT_CREATE'
                        EXPORTING
                          goodsmvt_header  = wa_goodsmvt_header
                          goodsmvt_code    = wa_goodsmvt_code
                        IMPORTING
                          materialdocument = wa_bapi2017_gm_head
                        TABLES
                          goodsmvt_item    = it_goodsmvt_item
                          return            = it_return.
                        data: begin of errmsg occurs 10.
                                include structure bapiret2.
                        data: end of errmsg.
                        data: wmenge like iseg-menge,
                              errflag.
                        clear errflag.
                        loop at errmsg.
                          if errmsg-type eq 'E'.
                            write:/'Error in function', errmsg-message.
                            errflag = 'X'.
                          else.
                            write:/ errmsg-message.
                          endif.
                        endloop.
                        if errflag is initial.
                          commit work and wait.
                          if sy-subrc ne 0.
                            write:/ 'Error in updating'.
                            exit.
                          else.
                            write:/ 'Ok'.
                          endif.
                        endif.
                        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                        EXPORTING
                        wait = ' '.

    Hi,
    Thank you for the asnwer! I'm a rookie at ABAP so please forgive my stupid questions
    I've changed the code to:
    DATA: wa_goodsmvt_header  LIKE bapi2017_gm_head_01,
                            wa_goodsmvt_code    LIKE bapi2017_gm_code,
                            wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
                      DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS  0 WITH HEADER LINE,
                            it_return        LIKE bapiret2 OCCURS  0 WITH HEADER LINE.
                      wa_goodsmvt_header-pstng_date = SY-DATUM.
                      wa_goodsmvt_header-doc_date   = SY-DATUM.
                      wa_goodsmvt_header-ref_doc_no = '4500000020'.
                      wa_goodsmvt_code-gm_code = '01'.          "Goods receipt for purchase Order
                      it_goodsmvt_item-plant     = 'BP01'.
                      it_goodsmvt_item-stge_loc  = 'BPF2'.
                      it_goodsmvt_item-move_type = '101' .
                      it_goodsmvt_item-entry_qnt = 10.
                      it_goodsmvt_item-entry_uom = 'KG'.
                      it_goodsmvt_item-mvt_ind   = 'B'.
                      it_goodsmvt_item-po_number = '4500000020'.
                      it_goodsmvt_item-po_item   = '10'.
                      it_goodsmvt_item-material  = '50'.
                      APPEND it_goodsmvt_item.
                      CALL FUNCTION  'BAPI_GOODSMVT_CREATE'
                        EXPORTING
                          goodsmvt_header  = wa_goodsmvt_header
                          goodsmvt_code    = wa_goodsmvt_code
                        IMPORTING
                          materialdocument = wa_bapi2017_gm_head
                        TABLES
                          goodsmvt_item    = it_goodsmvt_item
                          return            = it_return.
                          write:/ it_return-message.
    And the return message is : Material document data and PO data do not match (Material)
    Any idea of what might be the problem?
    Thanks

  • Creating Inventory Goods Receipt (oInventoryGenEntry)

    Creating Inventory Goods Receipt (oInventoryGenEntry) gives the error "The inventory account is not defined".  But I do the same in SAP and the works.
    What do I have to do in my code about accounts ?
    I mean for sure I just give the item, the quantity and a bit of header information.

    Dear Marc Roussel,
    Please try to set the AccountCode of Document_Lines then add it again.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Find a bapi for Creates a Goods Receipt with correspond to Inbound Delivery

    hi expert!
    exist a bapi for tcode:MIGO_GR ( Goods Receipt with correspond to Inbound Delivery)
    i know one bapI  BAPI_GOODSMVT_CREATE can Creates a Goods Receipt,
      but i can't know to use it to Creates a Goods Receipt with correspond to Inbound Delivery.
    or other bapi exist for MIGO_GR?
    Best Regard!

    Hi Vatcan,
    Chek the Inbound Delivery 1st weather you refer the right PO in it
    You can also chek in  PO i
    1 Me23n Go to confirmation tab here you can see the  Inbound delivery  quantity
    2 Chek  which reference document you recived the goods,  (i.e You recived the goods with reference to PO or  Inbound delivery)
    2 Coz if you refer the inbound delivery then syestem will deafult show the inbound quanity
    And yes the actual quanity will update in inbound delivery if you refer the inbound deivery while reciveing the goods

  • Copy data from a UDO form to Goods Receipt PO using UI API

    Hi, all
    I tried to copy data from a UDO form to Goods Receipt PO using UI API through following codes.
    It works fine while copying to a Item-type Goods Receipt PO.
    But when the doctype is set to service, I got errors.
    I use for-loop to copy two items, Description and LineTotal, into the matrix of Goods Receipt PO form, but both failed.
    any suggestion?
    Edited by: Chao-Yi Wu on Aug 25, 2009 5:50 AM

    Hi  Chao-Yi Wu ,
    SBO_Application.ActivateMenuItem("2306")
    Dim oFormGR As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
    Dim omtxIQC, omtxGR As SAPbouiCOM.Matrix
    Dim oedIQC, oedGR, oed As SAPbouiCOM.EditText
    Dim ocbIQC, ocbGR As SAPbouiCOM.ComboBox
    oFormGR.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
    oedIQC = oFormIQC.Items.Item("13").Specific
    oedGR = oFormGR.Items.Item("4").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("21").Specific
    oedGR = oFormGR.Items.Item("24").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("edComments").Specific
    oedGR = oFormGR.Items.Item("16").Specific
    oed = oFormIQC.Items.Item("3").Specific
    oedGR.Value = oedIQC.Value + ", Goods Recript PO:" + oed.Value
    ocbIQC = oFormIQC.Items.Item("cbDocType").Specific
    ocbGR = oFormGR.Items.Item("3").Specific
    If ocbIQC.Selected.Value = "I" Then
         ocbGR.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
    Else
         ocbGR.Select(1, SAPbouiCOM.BoSearchKey.psk_Index)
    End If
    omtxIQC = oFormIQC.Items.Item("mtx_0").Specific
    For i As Integer = 1 To omtxIQC.RowCount
    omtxGR = oFormGR.Items.Item("38").Specific
           If ocbIQC.Selected.Value = "I" Then
                oedIQC = omtxIQC.Columns.Item("c_ItemCode").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("c_AQty").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("11").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("col_19").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("14").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
       Else  
    omtxGR = oFormGR.Items.Item("39").Specific
               oedIQC = omtxIQC.Columns.Item("c_Descrp").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
               oedIQC = omtxIQC.Columns.Item("col_16").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("12").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
      End If
                Next
    for items the matrix is 38 and for service the matrix is 39
    Rgds
    Micheal

  • No matching records found Goods receipt PO (OPDN) (ODBC-2028) [Message 131-

    Hello,
    We are having a problem viewing one of our goods receipt. When going into a PO weu can see that there is a target document, but when we click on it the following message pops up u2013 u2018No matching records found Goods receipt PO (OPDN) (ODBC-2028) [Message 131-183]u2019. You cannot view the goods receipt by going through the purchasing module either. You can however see it when you go into the item and then right click and choose u2018stock posting listu2019. It then shows the goods received from GRPMS at the bottom under the GR no
    We now have the invoice and need to enter it onto SAP but because you cannot view the GRN it wonu2019t allow me to copy from the GRN.
    Could some offer assistance.
    Regards,
    Juan

    Dear Juan82,
    From what you say it looks like it is an issue that should be reported by message in order to be fixed.
    Please, log a message on the portal with your S number.
    When you write the description of the issue please attach screenshots that can help us to understand the issue.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • 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.

  • No matching record found when creating Incoming Payment...

    Hi,
    I'm starting a transaction, creating a invoice and then creating a incoming payment.
    The invoice is created successfuly in memory I can see the next DocEntry and DocNum and passing it to the incoming payment as usual but I'm getting the error : No matching records found
    Any idea ?

    I found why.
    The Series used was not there.  But it's not obvious to know that it's because you set a wrong Series code with an error like this.

  • No Matching Record found 'G/L Account' (OACT)(ODBC -2028)@Receipt Productio

    Dear Expert,
    When i am adding the Receipt from Production Document i am getting the below error:
    No Matching Record found 'G/L Account' (OACT) (ODBC -2028) [Message 131-183] in Receipt from Production
    Thanks & Regards,
    Tushar Nathwani
    Edited by: Tushar Nathwani on Nov 2, 2010 11:36 AM

    Hi,
    You may check this thread :
    Re: Error: [No matching records found 'G/L Accounts' (OACT)...] @  AR Invoi
    Thx,
    JimM

  • Error in R3 system when create the Goods receipt in EWM

    Dear EWM expert,
    I have an error in R3 system when I confirm the goods receipt in EWM for inbound delivery
    the error in SMQ2 is:
    PALLET is an auxiliary packaging material and cannot be used as pack.mate
    PALLET is a packaging matirial type VERP that I've create in in R3 and I have transfer via  cif it in EWM.
    We have the new EWM 7 and i check some OSS note for a programm error in transfering of pakaging material during the GR but they are available only for EWM 5 and they are not available for EWM 7.
    Could you explain me if this error coul be caused by some customising settings or by some master data field.
    Thank you in advance for your help.
    Best regards
    Alessandro
    Edited by: Alessandro Dapiaggi on Jan 29, 2009 5:11 PM

    Hi
    I am not sure of your problem since there may be quite a few reasons why this would happen. However just try one thing - change the Packing material category from "auxaliary packing material" to "packing material" in Define Packaging Material Types under logistics general--->HU Management ---> Basics for the packing material type you are using in VERP and then create a new packing material and try the inbound delivery. It may work
    Thanks
    DJ

  • DI to create draft goods receipt

    Hi,
    I am trying to use the DI to create a draft goods receipt but am receiving the following error:
    System.Exception: -5001 - Object type for draft is missing
    Any ideas how to do this?
    Thanks,
    Michael

    Hi Michael,
    Did you set the Object Type for the draft (property DocObjectCode) in your code?
    Dim vDrafts As SAPbobsCOM.Documents
    Set vDrafts = vCmp.GetBusinessObject(oDrafts)
    vDrafts.DocObjectCode = oInventoryGenEntry
    Kind Regards,
    Friederike
    SAP Business One Forums Team

  • How to create Zero Goods Receipt

    Hi there world of SAP geniuses,
    How do I create a zero goods receipt order?
    My client's requirements demand that I create a zero goods receipt order.

    The client has a progress payment requirement -  every stage of GR a certificate will be issued indicating workdone.
    This is important because there are two points of information to the GR - interfaced and manual entry. Retention is involved and will be indicated at the GR stage. This has to flow into the invoice.
    E.G.
    Month        Work Done    GR         Cert
    Jan            100                 100         100
    Feb            150                 150         250
    March         0                     0*            250
    So it all boils back down to creating a ZERO QUANTITY Goods receipt!
    Thanks for all your help in advance.

  • No inbound delivery/TO created for goods receipt into a Lean WM Storage Loc

    Ladies and Gentlemen:
    We are using SAP 46C with Support pack 45. We have quite a few storage locations that are Lean WM managed. The Storage locations are not HU Managed. However everytime run a MB1C or MIGO 501, SAP is receiving the materials directly via a material document. I was under the impression that any time a storage location is either WM, Lean WM or HU managed, SAP always creates an inbound delivery and in case of Lean WM/WM a transfer order to receive the material. Please tell me what am I missing.
    I have created plant, storage location and assigned the combination a lean Warehouse.
    I have done the configuration under:
    Customizing> Logistics Execution> Shipping--> Lean WM.
    Please help me with why my system is not creating inbound deliveries.
    Thanks.

    hi
    i am not 100% percent but I do not think that you can have inbound deliveries in to a lean wm environment. Inbound deliveries need to be pout away and as there are no bins etc in lean wm there is no put away to be done. If you want Inbound deliveries etc you are talking about full WM

Maybe you are looking for

  • Quizz not showing results messages

    Can someone please help?  I am not an expert of Capt. 5.5.  I think I have everything set up right, but obviously I am missing something.  At the end of the quiz, the result messages do not show, so people are not told specifically, "you passed", "yo

  • Manual Excise Duty in Purchase Order

    Hi, I am facing problem regarding manual Excise duty as such: For non inventory tax condition type, system calculate correct remaining duty( Education cess, VAT) on manual excise duty which is maintain in pricing procedure But for inventory tax condi

  • How to change scrollbar's color in combobox?

    Hi, I changed the combobox's background color to black. But since the little arrow in the scrollbar on the right side of the combobox is black, this makes the arrow vanish. I couldn't find any method in API that can change the color of the arrow/scro

  • Current date -5

    Post Author: auddog CA Forum: General I'm fairly new to CR 11 as a matter of fact, I'm new to Crystal Reports in general.  I'm building a report that I wanting to run on Friday's at 7 pm.  What I'm trying to accomplish is getting the data for the cur

  • ITunes is automatically adding items to download queue -  1 GB

    "The iTunes client is downloading items that I did not choose to purchase! I find this annoying and would very much like to get the issue resolved as soon as possible. I would like to have the remaining items in my download queue removed. I would lik