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

Similar Messages

  • 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

  • User exit  for checking  Goods Receipt, Non-Valuated when creat po (ME21N)

    Hi All:
    I want to check the field of Goods Receipt, Non-Valuated when i create PO with ME21N.
    It require as plant and Account assignment category
    For example,  plant A and account assignment  category (K), I want to check it.
    How can I do this?
    Please help me.

    No need for any user exit ,  you can copy the account assignment category "K"  and make your own , in that  account assignment category you can tick "GR-Nonvaluated" ,  then whenever you create a PO with this category "GR-Non Valuated"  will come ticked automatically.
    Regards
    Raviraj

  • How do you add a Comment when editing document in Word for ipad?

    How do you add a Comment when editing a document in Word for ipad. I've subscribed to Office, so have full editing functions. Can Track changes etc in Review, but can't see how to add a marginal Comment.

    Comments, like they are in Numbers for OS X, are not really supported in iOS. Normally, they rely on a mouse-over to read them. Since there is no mouse on the iPad, it stands to reason they are not there.
    I believe Eric Ross's comments is more geared towards used said Numbers docs on iWork.com.

  • Create workflow to email all users added to a sharepoint list when a document is created / modified

    Hello,
    I need to have a list, lets call it List A, that is used as a collection of users which will recieve an email when a document that is added or modified in a different library, Library A.  Essentially I want the workflow to parse all of the users added
    to List A and email them upon the modification or addition of a document to Library A.
    I know how to setup the email but i dont know how to parse the list and create a dataset of all the users so i can set that in the To field of the email.
    thank you,
    Marc

    Hi Marc,
    As I understand, you have a list to store user accounts, and you would like to send email to the user accounts in this list via a workflow associated with another library.
    In my test, I didn't get all values of person or group value of all items in a list which is used to store user accounts.
    I'd recommend you use a SharePoint group to replace the function of the list which store user accounts. Then in the workflow, you could send email to this group and the message will be sent to indivisual members of this group.
    Please refer to the screenshot below to add SharePoint group to email To box:
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Factoring a Goods Receipt Batch Value by 100

    In our scenario we are receiving material using Batch Specific Alternate Units of Measure.  The base uom of the material is LB and we've created a Batch Specific uom called GLB under No Dimensions   We have also configured a conversion ratio called L/G (lb/glb) also under No Dimensions. 
    In configuration for the Batch Specific calculations for Proportional Factors we are using the "Calculation of base quantity from proportion/product quantity" section with the Characteristic UoM L/G and the calculation is Base Uom LB / Batch Specific UoM GLB
    If the LB is at a 75.15% weight of the batch specific unit GLB then we enter .7515 in the characteristic.  This calculation works fines and delivers the desired result however to make it simpler to enter and less error prone I'm searching for a solution so that the end user can enter 75.15 which will result in the exact same conversion factor.
    Is this possible and if so how.  I've tried many combinations of ratio factors in the Unit of Measure (t-code CUNI) with no success.

    Hi Jeff,
    As 75.15% weight of the batch specific unit GLB  characteristic value .7515 conversion will be fine.
    If you enter the value as 75.15 you not have conversion factor directly, Please refer OSS note 362932 -Conversion with proportion/product units
    You can use the Object dependencies in that case.You enter data in any unit of measure. The conversion factors are determined by object dependencies using characteristics of the batch classification, or they are entered manually. If there is no conversion factor to be determined or none is entered, the system uses the planned conversion factor. The conversion factors are stored in the batch classification as characteristic values.
    Also you can use the function module MURC_ROUND_FOR_FRACT which works with a new algorithm for the calculation of the approximation. This algorithm determines the best possible approximation depending on the available (decimal) places and the length of the conversion factors (numerator and denominator)
    391710 - Rounding of characteristic values for quantity conversion
    Please have a look on below document,
    Catch Weight Management
    Regards,
    R.Brahmankar

  • DW keeps crashing when editing document

    I just installed DW8 and have setup a remote server to edit a
    website. I open DW, it opens fine. But when I open a file on my
    remote server, as soon as I try to make an edit DW crashes. I
    thought about creating a new file to see if it would let me do that
    but it doesn't. Nothing happens. I've uninstalled and reinstalled
    it several times but nothing new...still crashing.
    Any ideas?

    You have set this site up as an FTP & RDS Server site so
    that you are
    editing directly on the Server?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "croakingtoad" <[email protected]> wrote in
    message
    news:eh0dkd$fef$[email protected]..
    >I just installed DW8 and have setup a remote server to
    edit a website. I
    >open
    > DW, it opens fine. But when I open a file on my remote
    server, as soon as
    > I
    > try to make an edit DW crashes. I thought about creating
    a new file to
    > see if
    > it would let me do that but it doesn't. Nothing happens.
    I've
    > uninstalled and
    > reinstalled it several times but nothing new...still
    crashing.
    >
    > Any ideas?
    >

  • Adding a text box dynamically when a button is clicked in normal form

    Hi all ,
    i have a form where a Add button , creates a text box when ever it is clicked .
    can you please tell me how to achieve that functionality ..
    my form is normal form .... it is not a tabular form .
    Regards ,
    Nandini .

    How about
    <script type="text/javascript">
    function getElementsByClass( searchClass, domNode, tagName)
         if (domNode == null) {
         domNode = document;
         if (tagName == null) {
         tagName = '*';
         var el = new Array();
         var tags = domNode.getElementsByTagName(tagName);
         var tcl = " "+searchClass+" ";
         for(i=0,j=0; i<tags.length; i++) {
              var test = " " + tags.className + " ";
              if (test.indexOf(tcl) != -1)
                   el[j++] = tags[i];
                   if (tags[i].innerHTML.indexOf('DoFilters') > 0 )
                   tags[i].innerHTML = tags[i].innerHTML.substring(0, tags[i].innerHTML.length - 7 )
                                       + " onfocus=javascript:alert('Put your javascript here'); >Go</a>"
                   alert (tags[i].innerHTML);
         return el;
    </script>
    <script type="text/javascript">
         var tabs = getElementsByClass('minibuttonOn');
    </script>
    regards
    John
    http://www.obiee101.blogspot.com/

  • How to post goods receipt without FI document number

    Hi friends,
    Is it possible to create a Good Receipt without creating any FI document number?
    Regards,
    G G Reddy

    Hi Vikas,
    Now i am doing Historical data migration project. for this project last 7 year data we will move to New sap systems. we will get the data from standard tables from the all module like FI/CO,MM and PS.
    So in FI data i done through z program. in MM side previsiously only PO data only  in the scope.but recently they added Good movements also. so whenever the MM consultant will do the Goods receipts the fi documents will come in to piture. it is duplicate data available twice.
    Because I uploaded FI data which is linked to MM integration. so now my problem is whenever the MM Consultant wii upload the Goods Receipts, there is no Fi document happen. so please provide any soluation about this.
    so please give me u r inputs on this
    Edited by: sachinreddy on Dec 26, 2011 10:45 AM

  • Text editing box becomes inactive when multiple documents are open?

    I have a user that recently has a problem when editing documents.  If he has more than one document open the text editor becomes inactive (greyed out).  It works fine with just one document open still.  Is this 'working as intended' or a glitch in the software.  User is running Adobe Acrobat 9 Standard.  We've tried running a repair on the install but that didn't work.  I haven't yet tried uninstall/reinstall - I'd prefer to get more information on this before we try that.

    The user isn't editing large portions of documents though. 
    More info from the horse's mouth -
    I have used the touchup tool and that is NOT what I want to open up.  I am working with detail Maps.  The touchup tool will open up and attempt to “touchup” the detail of the maps and that is Not what I am doing.  I am using the “polygon” tool and “text box” tool to circle areas on the map and place labels on these areas for our clients.  A simple task of adding lines and text.  These are basic mark up tools Adobe offers. These mark up tools are what I am having problems with.  I do not intend on converting the maps that are already “scaled” and possibly lose that detail.  I explained this to Aaron Rasor as well and he has seen the simple issue.  The Basic Mark up tools ghost out and become unavailable when I have more than 1 document opened at once.

  • Document type during Goods Receipt in Intercompany Transfer flow

    Hi,
    We create a PO, Delivery and GI in company A
    We do a Goods Receipt in company B.
    Can we customize that FI document type  ZZ is used during Goods Receipt in company B?
    Document type ZZ may only be used in the Intercompany flow.
    Where can I customize this setting?
    Thank you in advance,
    Best regards,
    Eric van Zundert.

    Hi,
      The following are the standard steps to create an accounting document type and assign it to a transaction.
    1) In T-code OBF4, click on "Financial accounting document types" and create a new document type.
    2)On the same T-code, Click on "Goods receipt document type" and assign the document type to the transaction.
    3)On the same T-code, Click on "Financial accounting No range" and assign the number range for each document type based on company code and fiscal year.
    Thanks and Regards,
    Maheshwari

  • Align MM and FI Document Numbers in Goods receipt

    Hi All,
    Is it possible to align MM and FI Document Numbers in Goods receipt? If so, pls let me know the procedure.
    Regards
    SM

    hi
    do as follows
    see all these integration settings in OBYC
    Initial Stock Entry :
    Movement type: 561 u2013 (Receipt for initial entry of stock balance into unrestricted use)
    T.Code: MB1C                FI Document type: WA (Goods Receipt)
    Posting Key     Account Description      Event Key     Offsetting Key      Debit/ credit
    89     Inventory Raw Materials      BSX          Dr
    91     Stock Clearing Account      GBB     BSA     Cr.
    Goods Receipt through purchase order
    Movement type: 101 u2013 (Goods Receipt)
    T.Code: MIGO                FI Document type: WA (Goods Receipt)
    Posting Key     Account Description      Event Key     Offsetting Key      Debit/ credit
    89     Inventory Raw Materials      BSX          Dr
    96     GR/IR Clearing Account      WRX          Cr.
    Goods Receipt
    Movement type: 101 u2013 (Goods Receipt)
    T.Code: MIRO                FI Document type: WA (Goods Receipt)
    Posting Key     Account Description      Event Key     Offsetting Key      Debit/ credit
    86     GR/IR Clearing Account     WRX          Dr
    31     Vendor Account      KBS          Cr.
    Kind regards
    Arman
    SAP FICO

  • Goods Receipt PO - GetByKey error

    Hello,
    I have added a user button on Goods Receipt PO. When I click the button I read the document number of the receipt (idocnum). With this number I want to find the correct receipt in the object:
    oGRPO = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes);
    bool bRetCode =  oGRPO.GetByKey(idocnum);
    But bRetCode is false, meaning that it couldn't find the document. Why?
    Thank you,
    Irina

    Hi Irinia,
    You must use the docentry and not the docnum in the getbykey.
    You can use query on opdnto get the docenty
    Select docentry from opdn where docnum=9999
    Regards
    Ad

  • Applied amount cannnot be negative in Goods receipt PO

    Has anyone encountered a problem when adding Goods receipt PO based on purchase order with a negative amount line, the error message:Applied amount cannot be negative in the base document.

    Dear Mr Phan,
    Can you please clarify which version and patch you are using, and if the GRPO is based only on the negative line or on the all document.
    When I tried to enter a Purchase Order with a negative line only (and negative total payment due) the system doesn't add the document, but if I add another positive line above the amount of the previous one I can add the document and add a GRPO based on it.
    Please, let me know the steps you are taking.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Restrict Posting of Goods Receipt by Purchase Order Type

    Does anyone know of a way to prevent posting goods receipt for a specific purchasing document type? We need to prevent users from posting PO's that were system generated through an outside interface. They are brought back into ECC as the system of record. Since authorizations are only based on movement type, plant, and storage location with MIGO, without creating a new movement type, is there any way to achieve this?
    Thank you in advance for your help!

    Hi,
    Normally it would be the other way around, where the continued process for Open Purchase Orders will be done in SAP ERP, and no longer continued in the legacy system.
    So in your case, to avoid performing double posting (e.g. goods receipt in legacy and in SAP which causes duplicate inventory in books compared to physical) you would need to stop the Open POs in SAP ERP from being processed further.
    Just to be sure, there are a few types of Open POs
    1) Open PO where Goods Receipt have not been done.
    For this type, normally we would be doing the future receipts in SAP ERP
    2) Open PO where Goods Receipt done, but pending Invoice
    For this type, we could ignore the PO all together and create a FI Invoice when the invoice comes. (The quantity is entered in SAP ERP via 561 initial stock balance movement type)
    For type 1, if you perform goods receipt in legacy system, how are the quantities being captured in SAP ERP? How about payment, will this be done in legacy as well? How do you plan to reflect it in SAP?
    For type 2, will you be performing invoice receipt and payment in legacy? How will it be reflected in SAP without being a duplicate with the legacy payment?
    If you could answer these questions, then you could lock the SAP PO numbers by highlighting each line item, and click on the lock button. This will prevent future receipts in SAP.

Maybe you are looking for