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

Similar Messages

  • Cannot add a delivery note with an item with serialnumbers via DI Server

    I'm using a web service to add delivery notes via DI Server. my code works for items that do not need serialnumbers or batchnumbers and even for those that need batchnumbers.
    but if I try to add an item with serialnumbers, I'm getting the following error:
    [DLN1.WhsCode][line: 0] , 'Item 'A00004' with system serial 0 is not in stock.'
    in the soap request I put the InternalSerialNumber, Location and BaseLineNumber. Because the error message tells me something about system serial, I've also added the SystemSerialNumber to the soap request. But then I'm getting another error:
    Failed to execute command.
    does someone know, what I'm doing wrong?

    Hi,
    i'm getting the same error when trying to add a delivery/invoice.
    "[INV1.WhsCode][line: 0] , 'Item 'xxxx' with system serial 2 is not in stock"
    its started just after upgrade to 2005 SP1 PL4 and i tried to upgrade to PL7 with no success. do someone else have the same issues?
    thanks
    Moty

  • Error while Adding a Delivery Note with Barcode

    When i add the deliverynote , i get the following error :
    Error Code : -10 : Document can not be added: Base line item has been updated, re-transmitting the document data from the base document .
    or
    Access violation error
    This happens only when i assign a barcode to the item in the Item Master Data ( Eg : ITM001 is assigned a barcode ) .This works fine when the barcode is not assigned to the item .
    What is the cause of this error ?
    Obj := IDocuments(Company.GetBusinessObject(oDeliveryNotes));
    Obj.CardCode         := 'B1010';
    Obj.Lines.Add;
    Obj.Lines.BaseType   := bodt_Order;
    Obj.Lines.BaseEntry  := 100;
    Obj.Lines.BaseLine   := 0;
    obj.Lines.ItemCode := 'ITM001';
    Edited by: senthil kumar on Dec 2, 2009 1:04 PM

    Hello,
    I had the same problem. This occurs. when you change the barcode between sales order and delivery note, and YOu are issuing the Delivery note by DI API.
    To do:
    - Open Sales Order
    - OverWrite in the lines the barcode to the same as Material Master Data
    - Update sales order
    Issue delivery note.
    SAP Note number: 1314220
    Regards
    János

  • DTW - Upload Purchase Credit Notes with WithholdingTax

    When I try to upload Purchase Credit Notes using WithholdingTax via DTW, I got an error says:
    "All amounts in the Withholding tax data must be in the document currency", the error comes from "WithholdingTaxData" template.   When I upload just "Documents" and "Documents_Lines" don't have any problem, but when I add "WithholdingTaxData" template the error appears.
    Thanks for your help.
    Daniel Rivas.

    Dear,
    Please kindly have check whether your issue is similar to the note 1116680 as below.
    Symptom
    Trying to update a draft with withholding tax via DI generates the
    error:
    All amounts in the withholding tax data must be in the document currency
    [INV5.txblAmntSC][Line:1].
    Scenario:
    1.  Ensure system currency is different from local currency, for
        example, system currency is USD, local currency is GBP.
    2.  Create an A/R invoice draft with withholding tax.
    3.  Update the draft via DI, as follows:
        Set oDraft = vCmp.GetBusinessObject(oDrafts)
        oDraft.GetByKey (XXXX)
        oDraft.Comments = "Update Via DI#1"
        ErrCode = oDraft.Update()
    Other terms
    SAP Business One, SDK, DI, Update, Draft, withholding tax, All amounts
    in the withholding tax data must be in the document currency, INV5,
    txblAmntSC
    Reason and Prerequisites
    Application Error.
    Solution
    SAP planns for this issue to be fixed in a patch of Release 2005 A SP01
    and 2005 B. Please refer to the info.txt file on SAP Service Marketplace
    to confirm that the fix was included.
    Best regards,
    Apple

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

  • Problem entering Purchase Delivery notes

    Hello, when I open the Purchase Delivery Notes form I get this message:
    Err:  -2035 - This entry already exists in the following tables (ODBC -2035)  -  Valid Value - Value already exists  [66000-61]
    right after it opens. Then I can work but I have problems entering serial numbers, so I guss the problem is related to this message, anyone knows what it means?
    Thanks in advance

    Hi......
    I'm afraid....
    This might be the serious issue.
    I would suggest you to disconnect addons if any or drop any SP Transnotification if you have.
    Still you give problem then just try to upgrade in next PL in test. Still you have problem then last option raise a support ticket to SAP.......
    Regards,
    Rahul

  • Print delivery note with VL01N

    Hi,
    The delivery note prints only when I post the good issue. But I would like  to print it  automatically when I use the VL01N
    I delete the routine "1" in NACE for my condition type LD00 (If goods issue has been posted for the delivery, then the output
    should be created.), but I have no delivery note.
    Anybody could help me, please?
    Thanks
    Regards
    Kari

    In VL01n, before saving, please goto output screen.
    (Menu bar -> extrax -> delivery output -> header ->)
    In output screen, is the output (print) there (with yellow light)?
    If it's not there, please goto check output determination analysing log.
    (menu bar -> goto -> determin.analysis)
    Double click the output type, and check the log on right side.
    What's the log saying?

  • B1 Delivery Notes with from XML problem

    Hi all,
    Framework : B1iSN 2007 PL14
    B1 : 8.8 PL 14
    We want to import delivery notes in B1.
    I have a BOM sales Item, item child are managed with serial numbers.
    The input xml seems to be well built, but the process failed and I've the following error :
    You should use existing serial/batch numbers for this document type (----) 29-51"
    The xsl process worked perfectly when used with "single" item (no BOM).
    is there any limitations or known bugs ?
    Any solutions ?
    thanks a lot !
    Edited by: PIERRE BROTHIER on Dec 9, 2010 4:20 PM

    Pierre,
    The error you are receiving is a Business One DI API error with respect to how you are trying to import your transaction.  The error is not a specific B1iSN error.  Have a look at these two SAP Notes as they may help you resolve the issue you are having.  They have to do with importing document lines with serial/batch numbers.  They are not specific to B1iSN.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&;note_numm=1004061
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&;note_numm=0000841270
    Eddy

  • Adding a delivery document with serial numbers

    Hi everyone,
    A delivery document is created in code and the item delivered requires a serial number. In this example there is a quantity of two so two serial numbers will need to be added.
      Dim oCompany As New SAPbobsCOM.Company, lRetCode As Long
            Dim oSerialNumbers As SAPbobsCOM.SerialNumbers
            Dim oDelivery As SAPbobsCOM.Documents
            Dim RetVal As Long
            Dim ErrCode As Long
            Dim ErrMsg As String
                oDelivery = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
                oDelivery.CardCode = "KellyD"
                oDelivery.DocDate = "09/20/2005"
                oDelivery.Lines.ItemCode = "MDASTPE"
                oDelivery.Lines.Quantity = 1
                oDelivery.Lines.TaxCode = 0
                oDelivery.Lines.Price = 300
                oSerialNumbers = oDelivery.Lines.SerialNumbers
                ??What code goes here to enter the serial numbers??
                RetVal = oDelivery.Add
    Any help would be appreciated.
    Thanks.

    Hi
    try this or something alike
    oSerialNumbers.add() ' i'm not sure if its necessary
    oSerialNumbers.SetCurrentLine(0)
    oSerialNumbers.InternalSerialNumber="yourfirstserial"
    oSerialNumbers.add()
    oSerialNumbers.SetCurrentLine(1)
    oSerialNumbers.InternalSerialNumber="yourSecondserial"
    tell me results
    Kind regards
    Salvador Biot

  • 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

  • Outlook contacts not syncing with Pre via exchange server

    I am a Pre user and I am having two problems.  1.  The Pre is not syncing contacts with Outlook.  We use exchanger server and do have an SSL cert.  Email works fine.  2. Since I got my Pre some contacts have mysteriously been removed or filed in sub contact folders.  Any ideas?  Thanks!
    Post relates to: Pre p100eww (Sprint)

    Have you removed your EAS account from the device? Also did your IT do any updates to the server or your account recently? It could be your IT is blocking Contacts from syncing though EAS or an update disabled this feature.

  • Sharepoint 2013 Reporting services not fetching data via linked server

    We have a functional SharePoint 2013 farm in production with WFE (Server 1 , windows server 2012) and WFE ( Server 2 , windows server 2012) and SharePoint databases including report server databases on  (Server 3, which SQL Server 2012 on windows
    server 2012)
    Kerberos Authentication is enabled and Windows Authentication happens. Claims to Windows Service seems to work correctly too. No double hop issue. The SharePoint Reporting Services seem to be configured correctly and Reports get generated as expected
    in the following cases.
     1. If data is being pulled from Server A (SQL Server 2008 R2 Server on Windows Server 2008), Report gets generated no issues.
     2. If data is being pulled from Server B (SQL Server 2008 R2 Server on Windows Server 2008), Report gets generated no issues.
    The problem:-
    We have a view on Server A, which is fetching data from Server B. This report does not get generated. Gives an NT/Authority logon failure. Server B is created as a linked Server on Server A. The setting to run under users security context is checked.
    If I execute Query Builder from Report Builder 3.0, the query on the view gets the data and data is displayed in the report for next 10-15 min but after that the connections gets lost or if the user logs out and logs back in, the connection is lost
    again.
    Has some one experienced a issue like this? Can a report not work on a view getting data from linked server? Or I have missed  some thing really important.
    Any help is highly appreciated?
    cheers!
    Rachna
    Rachna

    Hi,
    From your description, my understanding is that you got an error when you clicked System settings after configuring Reporting Services service application.
    What size did you use for the memory? Please make sure the server has enough memory to run SharePoint and all services.
    In addition, please open
    http://localhost:xxxxx/SecurityTokenServiceApplication/securitytoken.svc to check if there is something about this issue.
    Here is a similar post about this issue, please take a look at:
    http://whitepages.unlimitedviz.com/2012/07/setting-up-reporting-services-2012-with-sharepoint-2013/
    As this issue is about Reporting Services, I suggest you create a new thread on SSRS forum, more experts will assist you with SSRS.
    SSRS forum:
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=sqlreportingservices
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Can not send mail via the server no webmail no smtp relai

    *relai host username and password is set correct:*
    log:
    Sep 8 22:00:07 macserver postfix/smtp[4939]: warning: SASL authentication failure: No worthy mechs found
    Sep 8 22:00:07 macserver postfix/smtp[4939]: CD63667854: to=<[email protected]>, relay=smtp.1und1.de[212.227.15.167]:25, delay=2.1, delays=0/0.07/2/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.1und1.de[212.227.15.167]: no mechanism available)
    *I did not understand that??!!*
    *with my old server 10.5 this does run perfect*

    I use Apple Mail. Since I upgraded to 10.6.1 my mailboxes go offline without reason. I have smtp problems although all settings are OK. When will all those problems be fixed by Apple?

  • Can not send mail via the server 7 no webmail no smtp relai

    *relai host username and password is set correct:*
    log:
    Sep 8 22:00:07 macserver postfix/smtp[4939]: warning: SASL authentication failure: No worthy mechs found
    Sep 8 22:00:07 macserver postfix/smtp[4939]: CD63667854: to=<[email protected]>, relay=smtp.1und1.de[212.227.15.167]:25, delay=2.1, delays=0/0.07/2/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.1und1.de[212.227.15.167]: no mechanism available)
    *I did not understand that??!!*
    *with my old server 10.5 this does run perfect*

    I second That...
    Please give us a hint!

  • Add print job via DI Server?

    Is there a way to add a print job for the delivery note when adding a delivery to the database via DI Server?
    In the SBO Client you can set that a delivery note is automatically printed when adding a delivery. I'm developing a software for pocket PCs to edit picklists and add deliveries and I want exactly this printing feature for my software.

    Well, you could define an alert + print the required objects "manually"...
    ...or you could checkout the DI Events Service sample which provides notifications about transactions based on the SBO_SP_TransactionNotification stored procedure.
    But you will have to do the printing anyway. Sorry.
    Please note that there are discussions about future notification mechanisms; watch-out for changes!
    Regards,
    Frank

Maybe you are looking for

  • Please Please help me I need to get this!!

    How can I set a Timestamp to null- I want it to be all zeros- and not a null value to be recorded in the database at the moment I have it just like this Timestamp NewDayTotal = null ; which is just empting the DB of an value - not leaving zeros. Any

  • Dynamic SQL using DBMS_SQL Package

    Hi, How do i construct a "select * from :table_name(input parameter)" in a store proc in Oracle8 ? I know this is only possible using DBMS_SQL package in Oracle 8. I know that this is easily done using native Dyanamic SQL 8i onwards. Also I want to r

  • HT4890 cant edit photos on windows live because of photo stream

    Chaning sharing, changing permissions, changing read only does not work. If I transfer pictures from my iPhone to my computer and then try to edit them in Windows live Photo Gallery, I get an error that says the file is in use by another program. Thi

  • Horizontal scroll bar haing Button and TextFiel

    Hi , I need a GUI in which JScrollPane 's Horizontal scrollbar should have a panel with buttons and textfiel to it right | Panel withi buttons and TextFiel | Horizontal Scrollbar | |_____________________________|___________________________________|

  • Selection Markers not appearing in QTPro 7.5.5??

    Some time after installing QTPro 7.5.5, I just noticed that my in/out selection markers are no longer appearing. And no, the "hide selectors.." option is not checked in prefs, although I tried toggling that on and off but nothing changed. I'm able to