Create a delivery note with bin locations and batch numbers

Hello everyone,
when sending this message to my b1if scenario i am receiving this error (which says nothing):
Exception : DI Error: (-2010) Internal error (-2010) occurred
This error only occurs when using a warehouse with bin locations. For regular warehouses it works when leaving the <DocumentLinesBinAllocations> away.
What could cause this issue? Just for clarfying: UOMEntry Nr. 2 means that the sales unit contains 5kg of a product.
I would greatly appreciate any help.
Best regards
Simon
   <CreateDelivery>
      <Documents>
        <row>
          <CardCode>K100002</CardCode>
          <DocDate>04.02.2015</DocDate>
          <DocDueDate>04.02.2015</DocDueDate>
          <DocNum>200048</DocNum>
        </row>
      </Documents>
      <DocumentLines>
        <row>
          <DocEntry>62</DocEntry>
          <LineNum>1</LineNum>
          <BaseLine>1</BaseLine>
          <ItemCode>8705</ItemCode>
          <Quantity>1</Quantity>
          <UoMEntry>2</UoMEntry>
          <WarehouseCode>SB</WarehouseCode>
        </row>
      </DocumentLines>
      <BatchNumbers>
        <row>
          <BatchNumber>20150701</BatchNumber>
          <ExpiryDate>07.07.2015</ExpiryDate>
          <Quantity>5</Quantity>
          <BaseLineNumber>1</BaseLineNumber>
        </row>
      </BatchNumbers>
      <DocumentLinesBinAllocations>
        <row>
          <BinAbsEntry>4</BinAbsEntry>
          <Quantity>5</Quantity>
          <BaseLineNumber>1</BaseLineNumber>
          <AllowNegativeQuantity>N</AllowNegativeQuantity>  
  <SerialAndBatchNumbersBaseLine>0</SerialAndBatchNumbersBaseLine>
        </row>
      </DocumentLinesBinAllocations>
    </CreateDelivery>

Hi Pablo,
based on the code from the other thread it should be like that for the first row:
delivery.Lines.ItemCode = "ID200";
delivery.Lines.Quantity = 15;
delivery.Lines.BinAllocations.BinAbsEntry = 3107; // guessed AbsEntry
delivery.Lines.BinAllocations.Quantity = 10;
delivery.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0;
delivery.Lines.BinAllocations.Add();
delivery.Lines.BinAllocations.BinAbsEntry = 3108;
delivery.Lines.BinAllocations.Quantity = 5;
delivery.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 1;
delivery.Lines.BatchNumbers.Location = "02-A";
delivery.Lines.BatchNumbers.BatchNumber = "XY";
delivery.Lines.BatchNumbers.Quantity = 10;
delivery.Lines.BatchNumbers.Add();
delivery.Lines.BatchNumbers.Location = "02-B";
delivery.Lines.BatchNumbers.BatchNumber = "YY";
delivery.Lines.BatchNumbers.Quantity = 5;  
You got now :
1 Delivery Row, Quantity 15
2 BinLoc Rows, Quantity 10+5
2 Batch Rows, Quantity 10+5
regards,
Maik

Similar Messages

  • Link between Bin Location and Batch Number

    Hello.
    I'm having some issues to find an link between the Bin Location and Batch Number.
    I've searched through OBIN, OIBT, OBTN, OWTS, but no clue of what makes the link between this guys.
    Does anyone here know something about that?
    Best Regards.

    Hi Araujo
    Check this out > SAP Business One 9 - List Of New Tables posted by Posted by Kennedy T in Reporting and Printing it might help.
    Des

  • Create a Delivery note from a picking List and many binallocations

    Hi,
    Recently, I get how create a delivery note form a picking list with batchnumbers, but now I have the following case.
    Quantity       Product       SerialAndBatchNumbersBaseLine
    10                ID200                              0   
    5                  ID200                              1
    now I set the batchNumbers
    location    batchnumber       quantity
    02-A              XY                   10
    02-B              YY                    5    <---    this location give me error.
    now the rest of articles
    Quantity       Product       SerialAndBatchNumbersBaseLine
    10                ID200                              0   
    5                  ID200                              1
    location    batchnumber       quantity
    02-A              XY                   10
    02-B              XY                    5  
    etc.
    I get the next error:
    1470000344 - Batch "YY" of item "ID200" in bin location "3108" falls into negative inventory.
    When I find this "3108" this "select * from OBIN where AbsEntry = 3108" is the batchnumber for XY and not YY.
    so how is the way to create a delivery note with many binallocations? 
    (if required I will paste code.)
    Kind regards,
    Pablo

    Hi Pablo,
    based on the code from the other thread it should be like that for the first row:
    delivery.Lines.ItemCode = "ID200";
    delivery.Lines.Quantity = 15;
    delivery.Lines.BinAllocations.BinAbsEntry = 3107; // guessed AbsEntry
    delivery.Lines.BinAllocations.Quantity = 10;
    delivery.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0;
    delivery.Lines.BinAllocations.Add();
    delivery.Lines.BinAllocations.BinAbsEntry = 3108;
    delivery.Lines.BinAllocations.Quantity = 5;
    delivery.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 1;
    delivery.Lines.BatchNumbers.Location = "02-A";
    delivery.Lines.BatchNumbers.BatchNumber = "XY";
    delivery.Lines.BatchNumbers.Quantity = 10;
    delivery.Lines.BatchNumbers.Add();
    delivery.Lines.BatchNumbers.Location = "02-B";
    delivery.Lines.BatchNumbers.BatchNumber = "YY";
    delivery.Lines.BatchNumbers.Quantity = 5;  
    You got now :
    1 Delivery Row, Quantity 15
    2 BinLoc Rows, Quantity 10+5
    2 Batch Rows, Quantity 10+5
    regards,
    Maik

  • Delivery note with reference to sales order - 0 quantity items

    Hi all,
    our system allows items with quantity 0 to be created in delivery notes with reference to sales orders.
    This happens when some items in a sales order are out of stock while others are availiable. The unavailable items are included in the delivery note, but have quantity 0.
    The requirement is to eliminate this behavior and to create delivery notes with availiable items only.
    I would be grateful for any advice how to realise this.
    Best regards, Andreas

    Make the necessary configuration i.e. Check quantity 0 field value should be maintained as B in the respective delivery item category using transaction 0VLP.
    Regards,
    GSL.

  • Stock on posting date -storage location and batch wise

    Dear All
    I need to developa report exactly same as MB5B but with storage location and batch wise.
    We need  storage location wise opening stock, total receipts, total issues and closing stock, and values for given time period.
    I have gone through some history tables like MCHBH and MBEWH.
    But all the history tables are having fileds for period wise but not date wise.
    Any focus on this?

    You have to read the coding of MB5B to see how SAP is doing it.
    The stock per date is calculated, starting from a month end, adding or reducing quantities based on movements until the date in question is reached.

  • When I restart my computer and hold the option key after creating a bootable usb with windows 7 and partitioning only the original partition shows up. Not the windows one or the bootable usb.

         Okay so first things first this isn't the newest macbook pro. When I open about my mac and go to system report it says it is a Macbook Pro 3,1 and the Boot Rom Version say MBP31.0070.B07. Originally when starting up Boot Camp Assistant there where only two options, the "create windows 7 bootable usb" was not there at all. So after some editing and helpful tutorials I was able to get the option show up and created a bootable usb with windows 7 and downloaded the support software onto a separate flash drive. Finally I did the last step and created a second partition for windows. Once the process is complete my computer automatically restarts.
         This is where the problem is. Once my computer makes the booting up sound it doesn't load up windows it gets stuck on a apple logo as if it's trying to reastart normally and can't. So I shut down and this time I hold down the option key during start up. It brings up the main partition and some recovery thing but no windows partiton and no bootable usb.
         I forgot to mention that I am running OS X 10.9.3. Okay any body want to help me out? Iv'e been at this for hours and can't get an inch closer to having windows. Please and thank you!
    P.S. If I missed a discussion that answer my question just point me to it. Iv'e been looking for a while, but who knows i might have missed one.

    The only known way to make it work on an external drive is by first installing Windows onto an internal drive, then cloning the install to an external Thunderbolt drive. Thunderbolt is seen as an extension of the internal bus, so Windows doesn't see it as an external device.

  • Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Basically you would need Acrobat. However, it is now also possible to create basic form fields using just the free Reader. In fact, I've been working on a tool that allows you to do it, so if you're interested in it please contact me privately.

  • Adding Purchase Delivery Note with SerialNumbers via DI Server

    I try to add Purchase Delivery Notes via DI Server. It already works for items that do not need serial or batch numbers. But if I try to add a PDN with an item that needs such numbers, I'm getting an error that the line of the item cannot be added without these numbers.
    Then I tried to add SerialNumbers to my request, but I am still getting the same error.
    The xml template for the SerialNumbers part looks like this:
    <SerialNumbers>
    <row>
      <SystemSerialNumber />
      <ManufacturerSerialNumber />
      <InternalSerialNumber />
      <BatchID />
      <ExpiryDate />
      <ManufactureDate />
      <ReceptionDate />
      <WarrantyStart />
      <WarrantyEnd />
      <Location />
      <Notes />
      <BaseLineNumber />
    </row>
    </SerialNumbers>
    Can someone explain me, how to use it?
    What are the mandatory fields?
    What is <BaseLineNumber>? Is it the line number of the item in the purchase delivery note?
    Do I have to include <SystemSerialNumber> or will this number be generated automatically by SBO?

    Hi Nico,
    you should use the SDK Help Center to determine the mandatory fields...
    When creating an incoming document (Purchase Delivery Note) with serial numbers using the DI API I assign the InternalSerialNumber property only and this works.
    The only Mandatory field when creating an outgoing document is SystemSerialNumber which is the unique key for a serial number...
    As a side note, I am still experiencing some strange behaviour trying to use the DI API to create documents using serial numbers.  I am in contact with SAP regarding this but am getting very slow responses...
    Daniel

  • Error when trying to create a delivery note from a sales order -  Internal error (-2010) occurred

    Hi
    I am trying to create a delivery note form a sales order in B1 V9 PL8 and I am getting the following error -
    Internal error (-2010) occurred
    The code has been working but we seem to be getting problems now
    Can anyone suggest anything please ?
    Copy of the code attached
    Thanks
    Andy

    Hi Andrew,
    Try replacing this line:
    odel.Lines.BaseLine = lineno - 1
    with this:
    odel.Lines.BaseLine = oorder.Lines.LineNum
    Beni.

  • Creating a delivery note based on a sales order in SBO2005

    Hi
    I am using the diapi to create a delivery note based on a sales order. Everything works well apart from I have 3 user defined fields on the sales order lines, 2 numeric and one which is a combo box.
    The 2 numeric values as copied across ok but the combo is not.
    I don't know what the delivery number is as I guess SAP assigns that after I save the delivery note.
    Can anyone help me with this please ?
    Regards Andy

    Hi Paul & Gilbert,
    As you assumed, the docentry is created at the moment when you are saving the document.
    The docentry for the last created document can be retrieved from the Company object. There are two alternative methods for this: GetNewObjectCode and GetNewObjectKey. Please see the DI API reference for more details. These are the only reliable way to get the last created docentry. A query might work nicely in 95% of the cases, but in a multi-user environment it will sooner or later produce incorrect results.
    Henry

  • Create the Delivery Notes

    Hi, all
    The Document in oinv and inv1 with DocEntry 18 is exist,
    ItemCode have not binding with batch or series,
    i want create the Delivery Notes, code C#:
         SAPbobsCOM.Documents dShipment =
         (SAPbobsCOM.Documents)Sbo.Instance.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
         dShipment.DocObjectCode = SAPbobsCOM.BoObjectTypes.oDeliveryNotes;
         dShipment.DocDate     = DateTime.Now;
         dShipment.DocDueDate  = DateTime.Now;
         dShipment.Comments    = "";
         dShipment.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;
         dShipment.DocTotal    = 100000.00;
         dShipment.CardCode    = "ÂÅÑÊÎÐ";
         dShipment.CardName    = "";
         dShipment.Lines.ItemCode     = "FCA 3430";
         dShipment.Lines.Quantity     = 1.0;
         dShipment.Lines.Price          = 100000.00;
         dShipment.Lines.BaseType     = 13;
         dShipment.Lines.BaseEntry     = 18;
         dShipment.Lines.BaseLine     = 0;
         int nRet = dShipment.Add();
         if(nRet != 0)
         // error : , 'Error (-1004) encountered.'
    Delivery Notes don't created

    Hi Gennadiy,
    I think the Delivery note is already closed. I did your test in my SBO and got the same error. Go into SBO and test if you can load that delivery note for that customer into an invoice.
    Hope it helps,
    Adele

  • How do I create an unordered list with three items and link to id's

    How do I create an ordered list with three items and linl to id's on my page

    Thanks, I guess what I was really asking, Is there a n option in the insert menu or somewhere where Dreamweaver does it for you.
    I am not clear on what you are wanting DW to do for you?  Is it that you want it to insert a three item unordered list?  No - there's no such function.  You would need to click in Design view where you want the list to go, click on the bulleted list icon on the Property inspector, and then enter the three items separated by carriage returns.  Then you'd have to link each item specifically.
    To enter the named anchors to element ID values, CS5 has no way to do this.  You'd have to enter those links manually.

  • Create a delivery note after an advance invoice is paid

    Suppose that the use of an advance invoice is that you deliver items to your client only after your client has paid the price for these items in advance.
    Now assume the following situation:
    1.
    You book an advance invoice.
    2.
    You wait until the amount of this advance invoice is paid by your client, i.e. until you are informed by your bank on the receipt of a payment.
    3.
    You book the receipt of payment in SAP.
    4.
    After this the status of the advance invoice is set to closed by SAP.
    5.
    This document status makes it unpossible to create a delivery note related to the advance invoice - the only way is to create a seperate delivery note without any relation to the original advance invoice.
    My question: Did I get the situation right? In this case I would say that the behaviour of SAP is erroneous - or are there any implicite reasons for this design decision?
    Any idea to come along with this?
    Thanks for your help!
    Frank.

    My question was too hasty.
    As I wrote in step 4 of my initial message after booking of payment in SAP the advance invoice is closed - this is correct.
    But my conclusion in step 5 is not correct in total:
    It is correct that you cannot create a delivery note as a sequel document to the advance invoice using "copy to" in the advance invoice form, since the advance invoice is already closed -
    but you can create a sequel delivery note document using "copy from" in a delivery note form related to the already closed advance invoice!
    Hence my question is obsolete!

  • Creating a delivery doc with serial numbers

    Hi all,
    I need to create a delivery doc with the corresponding serial numbers? Any BAPI/function module for this?

    Hi Shusma,
    Is your Material master active for serial number management ? If not you need to assign a serialization profile to your material master. Once the material is activated for serialization you can eneter serial numbers while creating inbound deliveries (ASN) or Post GR or update an Outbound delivery before PGI.
    Are you trying to create deliveries via an interface?
    Veera

  • Need Inventory transfer query with bIn location information

    Dear Team,
    Please help me to create the query for inventory transfers with bin location information.
    WTR19 field is empty so that i have checked with tables OINM,OILM,OBTL
    But how can i link this tables..?
    Regards
    Sanu.

    Dear AndakondaRamudu,
    In the mentioned link i had already checked .I need the item movement bin transactions report inventory transfer using a parameter with UDF..
    Regards
    Ajith

Maybe you are looking for

  • I changed my e-mail address and move to another country. my i-cloud doesn't work anymore

    Hello Sir, I Moved from Belgium to Holland and I like to change my account to Holland. I wasn't able to do this because I need to have an Credit card in Holland. I like to change it back but it doesn't function anymore. I also don't have I-Cloud anym

  • Excel view in ALV Grid---- Urgent

    Hi, On executing sample porgram BCALV_FULLSCREEN_DEMO, we get ALV grid display. After that, on Clicking "<b>Microsoft Excel View(controlshiftF7)</b>" we are getting blanck Excel screen view instead of the field values. I have the same scenario requir

  • Problem With mac Operating system

    ok, had a problem with a piece of software and was told to try and "downgrade" my OS. so i started an installer that was an installer to a previous system. i was on 4.8 and was trying to go to 3.4 i think. I got half way thru and it said start the in

  • Problem with read count

    I am trying to receive 2500bytes via serial port and plot it on a chart, after sending character "S" to the sender device. I have set the "read count" to 2500 so it is supposed to receive 2500 byte then wait for another "S" but it just receives 101 b

  • How to build reference from subvi to vi?

    I have both vi and Subvi vi program, i try to link up the data "send data", "received data", "Listen to" boolean , how can i build references and use vi to control subvi Attachments: Machine_connection.vi ‏20 KB Semester2.vi ‏34 KB