In Goods receipt PO  adding rows manually

Hi,
I am creating a new Goods receipt PO. After selecting vendor, Copying record from PO by clicking 'Copy From' Button.
Row items are filling  in the First Row of the matrix. woks fine for me.
Now the Issue is,
I wanted to add second row in  after Lost Focus of the user control.  I am assigning the value directly to the matrix SECOND ROW.
  Dim oItemCode As SAPbouiCOM.EditText = oMatrix1.GetCellSpecific("1", i + 2)
  oItemName.Value = rs.Fields.Item("U_ItemCode").Value.ToString()
When I am trying to add the document, I am getting error
[Goods Receipt PO - Rows - Item No.][line: 2] , 'Item no. is missing'  [Message 173-3]
Please help me to solve this issue.
Thanks in Advance.

Hi ParthibanJay,
In GRPO form, by default a row will be added,without providing the item code it wont allow u to add another row.

Similar Messages

  • Generating Alert after Goods Receipt is added.(SDK)

    Hello,
    I want to generate a alert for my accounts user after a Goods Receipt PO is added in SAP for a particular series. how can it be done? Please help.
    Edited by: Rohanp on Dec 4, 2009 4:43 PM

    Rohanp,
    The SDK Help documentation for the Documents object (in your example a Goods Receipt PO) states ...
    DI API Remark
    The ApprovalTemplatesService doesn't trigger the approval process for objects that were added through the DI API.
    For example:
    A new Invoice that was added through DI API will not trigger the Approval Procedure Process.
    Eddy

  • Add Goods Receipt using DI API

    Hi all,
    I want to add a new Goods Receipt using DI API, for each of the lines:
            oBatchReceipt.Lines.SetCurrentLine(1)
            oBatchReceipt.Lines.ItemCode = "ItemA"
            oBatchReceipt.Lines.WarehouseCode = "WH01"
            oBatchReceipt.Lines.Quantity = 1000
    instead of entering the unitcost of the item, i want to enter the line total.
    (unitcost or oBatchReceipt.Lines.Price is commented out)
            'oBatchReceipt.Lines.Price = costUnit
            oBatchReceipt.Lines.LineTotal = 1563
    so, when the Goods Receipt is added, there is no error popped up, but the total of created Goods Receipt is 0 (zero).
    I want to use the LineTotal instead of Price. Using the SBO system UI, user can enter quantity and linetotal and sytem will automatically calculate the price. But using DI API, i dont think it works because someone from forum says that LineTotal is NOT read/write property as written in SDK documentation.
    Anyone knows about this issue?
    Thanks.
    Cheers'
    erwine

    Hi Erwine Sukardy ,
                                   For eg.  you have used  an item  named as  " ItemA". Please go to the "Item Mater Data " . Set the unitprice as you required .Then no need to enter unitprice at line level using DIAPI .
                                If unitprice exists in item master data then . It will automatically calculates the LineTotal.
                          Hope it helps....,
    Best Regards
    V.Rangarajan

  • Draft mode for goods receipt

    I want to add draft for the finished product received from production i.e.Goods Receipt.When finished product is received from production department then the quality analysis department should check it for accuracy.When goods receipt is added then draft should be added.This draft should be approved by quality analysis department.
    I tried adding draft object as ,
    Dim objDraft As SAPbobsCOM.Documents
    objDraft = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
                objDraft.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInventoryGenEntry
                objDraft.DocDate = Date.Now
                objDraft.Lines.ItemCode = "109208010"
                objDraft.Lines.ItemDescription = "WINDING RESISTANCE METER CRM-100A"
                objDraft.Lines.Quantity = 1
                objDraft.Lines.Add()
                objDraft.Add()
                If objCompany.GetLastErrorDescription.Length > 0 Then
                    SBO_Application.MessageBox(objCompany.GetLastErrorDescription)
                End If
    I executed this code when Receipt from production is added i.e et_FORM_DATA_ADD.New entry is getting added in the table
    ODRF.I can not access this newly added information from SAP.

    Janos,
         I can get the newly added object in Inventory -> Goods Recipt.But I want to create draft for production -> Receipt for production and this option is not available in the DocObjectCode.
    Is the above functionality possible ? If yes,then how ?
                                                                                    Regards,
                                                                                    Dilip Kumbhar

  • [Goods Receipt PO - Rows - Tax Code][line: 1]

    Dear All,
            At the time of opening GRPO and Delivery Document suddenly system giving one error Number was used up in this sequence [Message 80071-20]
            And after it I entering required data in GRPO with any tax code then system giving new error [Goods Receipt PO - Rows - Tax Code][line: 1] , 'Internal error (-5) occurred'  [Message 131-183]
            I had verified that tax code which is selected in above GRPO is correct.
            When I try to Add GRPO without Tax code then different error coming Internal error (-5) occurred  [Message 131-183]
    Thanks,
    Siddique Shaikh

    Dear Gordon,
             Thanks for reply, I had setup the different sequence for all documents separately, But currently user using manual numbering option in Delivery and A/R Invoice Documents
             I checked new think is that system giving me same error only when we opening form which is creating financial JE in Backhand, Means when I opening Purchase Order or Sales Order form then system not giving any error and we can save PO or SO
            System is not allowing anybody to add any document which create financial effect.
    Thanks,
    Siddique.

  • Error adding Goods Receipt PO based on Purchase Order

    I am working on an add-on that was working against a 2005A version of SAP Business One and I am upgrading it to run against a 2007A Company (PL41)
    I am receiving strange errors when testing the add-on.
    I can add a Purchase order not based on a Goods Receipt PO without any problems but as soon as I specify a base type, entry and line I get either -1 General Error, or the Tried to Read/Write Protected Memory Error.  The error I receive seems to arbitrarily change between the two.
    I have read a few notes on the forums about this but none of them have proven useful in solving my problem.  I have checked the DI-API version on my PC and it is definitely using 8.0.177.0 which matches the version of SBO that I am running.  I have re-installed the DI etc without any success.
    The following is the code snippet which I am using to test:  I have verified that the referenced purchase order is open, contains the correct item, customer etc
    int iResult = -1;
    string sResult = string.Empty;
    string sOutput = string.Empty;
    try
    sOutput += Environment.NewLine + "Connecting to company...";
          sbocoy = new SAPbobsCOM.Company();
          sbocoy.Server = "<insert server name here>";
          sbocoy.CompanyDB = "<insert database name here>";
          sbocoy.LicenseServer = "<insert server name here>:30000";
          sbocoy.UseTrusted = true;
          sbocoy.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005;
          sbocoy.UserName = "manager";
          sbocoy.Password = "<inser sap user here>";
          iResult = sbocoy.Connect();
          sOutput += Environment.NewLine + "Connected";
          SAPbobsCOM.Documents PO = (SAPbobsCOM.Documents)sbocoy.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders);
          SAPbobsCOM.Documents GoodsReceiptPO = (SAPbobsCOM.Documents)sbocoy.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes);
          sOutput += Environment.NewLine + "Get Purchase Order";
          PO.GetByKey(1402);
          sOutput += Environment.NewLine + String.Format("DocNum: {0}; DocEntry: {1}; ItemCode: {2}; LineNum: {3}", PO.DocNum, PO.DocEntry, PO.Lines.ItemCode, PO.Lines.LineNum);
          GoodsReceiptPO.CardCode = PO.CardCode;
          GoodsReceiptPO.CardName = PO.CardName;
          GoodsReceiptPO.Lines.ItemCode = PO.Lines.ItemCode;
          GoodsReceiptPO.Lines.ItemDescription = PO.Lines.ItemDescription;
          GoodsReceiptPO.Lines.Quantity = 1.0;
          GoodsReceiptPO.Lines.BaseType = int.Parse(PO.DocObjectCodeEx); // If I comment out this and the next two lines the document will add
          GoodsReceiptPO.Lines.BaseEntry = PO.DocEntry;
          GoodsReceiptPO.Lines.BaseLine = PO.Lines.LineNum;
          sOutput += Environment.NewLine + "Adding Goods Receipt...";
          iResult = GoodsReceiptPO.Add();
          sResult = sbocoy.GetLastErrorDescription();
          sOutput += Environment.NewLine + string.Format("Result [{0}] {1}", iResult, sResult);
    catch (Exception ex)
    sOutput += string.Format(Environment.NewLine + "Exception: {0}{1}SBOError: {2}", ex.Message, Environment.NewLine, sbocoy.GetLastErrorDescription());
    The results when I try and reference the purchase order are:
    Connecting to company...
    Connected
    Get Purchase Order
    DocNum: 301396; DocEntry: 1402; ItemCode: SEANTESTITEM; LineNum: 1
    Adding Goods Receipt...
    Exception: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    If I comment out the 3 lines that reference the base document the Goods Receipt Adds and the following is the output...
    Connecting to company...
    Connected
    Get Purchase Order
    DocNum: 301396; DocEntry: 1402; ItemCode: SEANTESTITEM; LineNum: 1
    Adding Goods Receipt...
    Result [0]
    The above code will work correctly if we base a Delivery Note on a Sales Order so it appears to be specifically related to the Purchasing Documents.
    Edited by: Sean Archer on Feb 2, 2009 2:23 PM

    Hi Ganesh,
    Thank you for the reply.
    I ran the add-on against another database and it is working.
    I also verified that the document was failing to create if done via the Data Transfer Workbench so it would appear the issue affects the DI-API irrespective of add-on.
    I will need to do more testing to confirm whether this is a bug with PL41 of 2007A or a corrupt database as you suggest.
    Cheers,
    Sean

  • Inventory account is not defined [Goods Receipt PO - Rows - Warehouse Code

    Hai All,
    When I copied from PO to GR PO the below said error accord. G/L are set by  Item level.
    General Setting > Inventory Tab > Set G/L Accounts as : *by item level*
    Error:
    Inventory account is not defined [Goods Receipt PO - Rows - Warehouse Code][line: 1] ,  [Message 173-77]
    Please provide me a solution.
    Regards
    Sudarshan

    hiii Sudarshan
           if you have set g/l a/c by item then go to
    administration-setup-inventory (stock management)-warehouse-(your particular warehouse) -accounting
                    assign g/l account ,
                                       hope this helps you
                                                      Good Luck
                                                                     RIYAZ

  • UI API: Poor performance in Goods Receipt (PO) while inserting rows

    Hi all,
    we wrote small procedure, where we import some data from .txt file into Good Receipt (PO) document. There is no many infos there, we fill only these columns in GR matrix:
    ItemCode, Quantity, Warehouse
    For inserting data into document's row we use this code:
    oItCdCol.Cells(lRow).Specific.Value = Trim(sItm)
    oQtyCol.Cells(lRow).Specific.Value = Trim(sQty)
    oWHSCol.Cells(lRow).Specific.Value = Trim(sWHS)
    lRow = lRow + 1
    but with more than 30 lines in import file the performance is very poor, with cca. 300 lines it takes many hours. The GoodReceipt form is during import freezed of course.
    We use SBO2005 SP01 Patch 22. Is there performance problem with documents generally in this patch or something else?
    Thanks in advice.
    Kind regards
    Libor Mego.

    Are you working with Visual Basic 6 or Visual Basic from Visual Studio?.
    If you response VS, then try to use directly
    oItCdCol.Cells(lRow).Specific.Value = sItm.<b>Trim</b>()
    There is not the same througputh with olders function versus the newest.
    My recomendation is the same from Microsoft, "enjoy" always to use the Class routines like Trim, Integer.parse, <object>.ToString, ....

  • Adding A Goods Receipt PO Docement it shows G/L Account is missing

    In a Goods Receipt PO Document there are 4 items we can't able to add the document it shows some error.
    The exact error was
    07/07/2008  15:56:54: G/L account is missing [Goods Receipt PO - Rows - Warehouse Code][line: 1]

    Hi jafesas
    try this in test DB
    if your Set G/L account by is warehouse then select all account code in warehouse tab then try to add , your problem will be solve
    major account code as follows:
    1.Inventory Account
       Allocation Account
    2.In taxcode check A/P Tax account

  • Automatic and manual batch determination at the time of Goods receipt

    hi,
    where i can have the settings for automatic and manual batch determination at the time of Goods receipt and goods issue..
    E.g.: If i am receiving material from vendor then my requirement is system will generate batch automatically...
    Where  we can get this setting?
    Tx
    Uts

    Dear,
    You assign the batch number either
    Manually
    Automatically, using internal batch number assignment, refer to Customizing for Batch Management under Internal batch number assignment.
    Internal batch number assignment is activated for the complete client, unless you exempt individual plants or materials using a customer exit (see Configure customer exits for intern. batch number assignment in Customizing for Batch Management).
    The R/3 System informs you that the internal batch number assignment is active. You are however only informed once per transaction, for example, when you enter the first item on the multiple-entry screen.
    Please refer: http://help.sap.com/saphelp_45b/helpdata/en/25/283cb44f7811d18a150000e816ae6e/frameset.htm
    Regards,
    Syed Hussain.

  • G/L Account is missing [Good Receipt-rows-Warehouse Code]

    G/L Account is missing [Good Receipt-rows-Warehouse Code] '702' message 131-46
    Hi everyone,
    I know this is a simple question with a simple answer. However i have run through all the basics and still get the same error. Worst of all  i had posted to the warehouse using the same function about 3secs before receiving this error and everything posted fine.
    Any ideas?
    Candida

    Thanks for the reply, Candida.
    Please verify the parent or component item quantities. The quantities may have gone to Negative. Hence, kindly ensure that an account is defined in the Negative Inventory Adjustment Account (Define Warehouse, Define Item Group, Item Level of Item Master Data, where appropriate).
    I hope this solves the issue.
    Regards,
    Lorna

  • Adding item description in Goods receipt list

    hi gurus,
                      my company needs item description in the goods receipt slip.Can anyone suggest me how we can achieve this .I think  it;s a simple change.I am a beginner please help me.
    chris

    Hi Chris
    A goods receipt slip will be created/triggered within a goods movement via Inventory output messages.
    There are lots of these available in the standard system and they can be determined by different configuration, such as movement, doc type etc.
    See IMG > Materials Management > Inventory Management > Output Determination > Maintain Output Types (E.G. Type WA03)
    Each one of these outputs has a standard SAPScript assigned, whch determines what the print looks like etc. In WA03 it is WESCHEINVERS1
    A developer can review the sapscript and identify if the material description is there, if it is not then it can be added and positioned as required.
    Please remember that this is classed as customer development
    Regards
    Steve

  • Adding Goods Receipt  batches dynamically when editing document ?

    Hi,
    Is it possible to add batches dynamically from SDK to an open and currently editing Goods Receipt PO?
    e.g, I would like to load batches from several xml-files and they must be validated and sometimes
    by hand connected to correct item-row at editing time. I'm opening a series of different forms
    to get the user to select valid xml-files and all that works fine. The problem comes first
    when to insert the batches into the current open document.
    Can I in some way load a SapbobuiCOM.Document from the open Form and
    add batches using the xxx.lines.BatchNumbers object?
    (it would be simple then)
    With regards,
    jonas

    Hi David!
    Thank's a lot for your answere!
    I probably had to do a new window for veryfing connected batches, which when
    form is saved as you said, updates the businessobject.
    Thank's!
    /jonas

  • Adding Discount percent in Goods receipt PO

    Hello Friends,
                         I am Trying to add an Goods Receipt PO document line
    using oPurchaseDeliveryNotes object . It is taking all values of line except discount percent.
    I want to ask is there any method to asign the discount through oPurchaseDeliveryNotes  object.
    I did in following way
    GrPODoc.Lines.DiscountPercent=RS.Fields.Item("U_Disc").Value
    Thanks & Regards,
    Mithun.

    Hi Gabriela,
      This is my Code where RS is my recordset from which I am reading the values and putting it in Object
    it takes all values except the Discount Percent.
    GrPODoc = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
                    GrPODoc.CardCode = GrVendorcode
                    GrPODoc.DocDate = Now
                    GrPODoc.DocDueDate = Now
                    GrPODoc.TaxDate = Now
                                GrPODoc.Lines.ItemCode = RS.Fields.Item("U_ItemCode").Value
                                GrPODoc.Lines.DiscountPercent = RS.Fields.Item("U_Disc").Value
                                GrPODoc.Lines.AccountCode = RS.Fields.Item("U_GLAccNo").Value
                                GrPODoc.Lines.WarehouseCode = RS.Fields.Item("U_SubWhrs").Value
                                GrPODoc.Lines.Quantity = (Struct_GRCHRGITM1(j).ReqQtyfor_OnePiece * GRMatQty)
                                GrPODoc.Lines.Price = RS.Fields.Item("U_UnitPrc").Value
                                GrPODoc.Lines.TaxCode = RS.Fields.Item("U_TaxCode").Value
                    Dim ErrCode As Long
                    Dim ErrMsg As String
                    Dim val As Int32 = GrPODoc.Add
                    If val <> 0 Then
                        ocompany.GetLastError(ErrCode, ErrMsg)
                        SBOApplication.MessageBox(ErrCode & "," & ErrMsg)
                    End If

  • 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

Maybe you are looking for

  • Syncing Voice Memos to iTunes - Workaround

    Not everyone can sync their voice memos to iTunes, and no one really knows why (or cares).  Here is a workaround. Part One - Email the Voice Memo to Yourself 1. Select the voice memos application. 2. Select the voice memos list (button in lower right

  • Clean install and can't find iWeb files

    Apple techs helped me do a clean install after a remote hacker incident ... the talked me through the moving my data etc. I find some 4 yr old  iWeb files and I have reinstalled iWeb - but I do not know how to "open" the old files - it looks like it'

  • Adobe premiere cc crashes during work on mac

    I have iMac with system up to date, my Adoebe Premiere CC crashes every 10 minutes when working on the project. Any ideas?

  • How to enable channels WIFI 13 & 14 on E71-2

    Hi, I have a Rogers E71-2 mobile and I am currently travelling in Australia - I can't connect to the wireless networks where as they are using channels 12 & 13.  Can I enable these on my North American E71-2? Thanks!

  • Can't find movie purchased on iPhone

    I just downloaded a movie.. It was complete then the file just disappeared. Can anyone tell me where to locate it? Thanks.