Adding a sales order with DI Server 8.8 results in document with no rows

Hello,
I am facing a weird problem situation running DI Server in a 8.8 (pl8) environment.
When adding a new sales order document, the add operation results in a "success", but when I go to B1 client and see the document, there are no rows at all.
Please see the xml message I am posting to DI Server. There is one in row specified.
Anyone had similar experiences or possibly even been able to resolve this ?
Best Regards,
Henry
= = = = = = = = = = =
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
  <env:Header>
    <SessionID>C72BD58F-3A5F-4074-86CA-6776372ADB39</SessionID>
  </env:Header>
  <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add Documents">
      <BOM>
       <BO>
          <AdmInfo>
            <Object>oOrders</Object>
          </AdmInfo>
          <Documents>
  <row>
    <DocDate>20091202</DocDate>
    <DocDueDate>20091202</DocDueDate>
    <CardCode>234485</CardCode>
    <NumAtCard></NumAtCard>
    <DiscountPercent>0.00</DiscountPercent>
    <Comments>fdsfds</Comments>
    <SalesPersonCode>8</SalesPersonCode>
    <TransportationCode>14</TransportationCode>   
    <DocumentsOwner>-1</DocumentsOwner> 
  </row>
</Documents>
<Document_Lines>
<row><ItemCode>001150x</ItemCode>
<ItemDescription>JAUHESAMMUTIN 12KG ALKU</ItemDescription>
<Quantity>1</Quantity>
<Price>4</Price><Currency>EUR</Currency>
<DiscountPercent>0.00</DiscountPercent><WarehouseCode>01</WarehouseCode><SalesPersonCode>8</SalesPersonCode>
<VatGroup>V1</VatGroup><FreeText /></row>
</Document_Lines>
</BO>
</BOM>
</dis:AddObject>
</env:Body>
</env:Envelope>
02/12/2009  12:02:39  Response (OK)
<?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><AddObjectResponse xmlns="http://www.sap.com/SBO/DIS" CommandID="Add Documents"><RetKey>15</RetKey></AddObjectResponse></env:Body></env:Envelope>

I thinks that you do not have more than necessary in the XML Code.
To try to test it in a different environment, what about?
For example,
     a.SBODemo database is used
     b. Reinstall SBO Serivce Manager
     c. Delete folder or Rename folder SM_OBS_DLL
Hope you will help a little.
Best regards,
HyangHang

Similar Messages

  • Error adding Sales order via DI-SERVER Posting Date deviates from the defin

    When adding a sales order via the DI-API we have started receiving the following error:
    Error: Posting Date deviates from the defined range. To complete the operation, define the posting period to match the entered Posting Date. [(----) 131-204]
    I have verified that the posting dates within the document exist within the defined posting periods in SAP and that the posting period in question is unlocked.
    I can add the document within the SAP B1 interface without any issues.
    This process and code was also working up until the start of the new financial year.  There have been no changes to the code or the financial periods in the new year.
    There is a  peculiarity with the financial periods for this company in that they have moved from calendar periods in the past to financial periods.  Has anyone come accross any issues with posting dates and the DI SERVER API?
    The dates in the XML document that we are trying to add are shown below.
    <Documents>
    <row>
    <DocDate>20100310</DocDate>
    <DocDueDate>20100310</DocDueDate>
    <CardCode>C9999</CardCode>
    The following are the financial period values from OFPR
    Posting Date From/To:       06.03.10     02.04.10
    Due Date From/To:            01.01.10     01.04.11
    Document Date From/To:  01.01.10     02.04.10
    Start of Fiscal Year:         01.01.10
    Regards,
    Sean

    Hi Gordon,
    Our customer has moved their financial year end from 1 April / 31 March using calendar months to a 4/4/5 financial period model with a year start date from Jan.
    This was necessary after the company was purchased by a US firm that wanted to align the reporting calendars.
    Under the 4/4/5 model their financial year start date does not start 1st January. Hence the 3/1/2010 being the first date of the January period.
    No matter how the periods are setup the financial year start date in SAP Business One cannot be anything other than the 1st of the month.
    All posting within SAP appears to be working fine, it is only via the DI SERVER requests that we seem to be having problems.
    However, we suspect that the issue may be unrelated to the posting periods due to some other testing performed.
    Regards,
    Sean

  • Sales orders Dispatch Actual No of pipes do not match with R3 report

    Dear Gurus,
    Looking Ur assistance for an issue.
    Issue: For some of the sales orders Dispatch Actual No of pipes do not match with R3 report. Actual No of Pipes matches with LIKP table values in R3. Query needs to be modified to restrict records as per logic in WGSRLDES report/program.
    Can U help me in this Regard.
    Ur Responses are most appreciated.

    Hey Pathak,
                        The problem is, BI report is matching with the datails with R/3 LIKP table. But the business user is using Report WGSRLDES report/program, where the data is missmatching.
    Hope U got my Point.

  • SDK Error -5002 when adding a sales order

    I'm getting an error -5002 when adding a sales order.
    Source code:
          IDocuments m_so2 = SBOCOMUtil.newDocuments(icmp, SBOCOMConstants.BoObjectTypes_Document_oOrders);
          line = m_so2.getLines();
          m_so2.setCardCode("2173231916");
          m_so2.setCardName("test Sales order");
          SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy");
          Date today = Calendar.getInstance().getTime();
          m_so2.setDocDueDate(today);
          line.setItemCode("01005");
          line.setDiscountPercent(new Double(10));
          line.setItemDescription("description Testing");
          line.setQuantity(new Double(3));
          line.setTaxCode("0");
          line.add();
          long rc = m_so2.add();
    Question:
    Where can I find a list of error codes that can be easy to understand? PDF, word, etc.
    Thanks.

    Hi Diego,
    Looking at your code I see that you are doing a
    line.add();
    You don’t need to have this here unless you are adding another line to your document.
    Maybe this will help you.
    Also just because java is a bit different from VB get the last error message using
    SBOErrorMessage errMsg= comp.getLastError();
    System.out.println(errMsg.getErrorMessage());
    -Cormac

  • False message: The document name you requested (/selector_test.html) could not be found on this server. However, we found documents with names similar to the one you requested.

    When I specify http://www.celticmanner.com/selector_test.html to Firefox 6.01, I get the false message:
    Multiple Choices
    The document name you requested (/selector_test.html) could not be found on this server. However, we found documents with names similar to the one you requested.
    Available documents:
    /selector_test.txt (common basename)
    The file http://www.celticmanner.com/selector_test.html IS PRESENT on the host.
    The file http://www.celticmanner.com/selector_test.txt IS NOT. (It had been earlier.)
    I do not find the text "selector_test.txt" anywhere on my partition C! Where does Firefox retain a pointer to this file that no longer exists? And why?
    NB: The text "could not be found on this server" is sloppy. That message is not issued from a servcer, but from the instance of Firefox on my computer. The message should read "could not be found on the specified server".
    B. Somers

    I have the same problem and it does not have to do with firefox. Do you have any idea how to fix it through?

  • Sales order stock and storage location stock on past date with value

    Hi everyone.
    I m looking for a report which can give sales order stock with value as it is shown in mb5b and storage location stock with value as in mc.5 is there any report which can give the combination of both the things on past date with values.

    can you tell me what shall be the fields and table for special stock on past date with value and sloc stock on past date with value

  • How to restrict adding Item Sales Order without itemcost

    Hi Experts,
    Can i restrict sap user on adding "Sales Order" (Items) if they are adding items without itemcost on item master?

    Insert this in your  SBO_SP_TransactionNotification stored procedure after the line
    --     ADD     YOUR     CODE     HERE
    IF @transaction_type IN (N'A', N'U') AND @object_type = '17'
    BEGIN
    If exists
    (Select 1
    From RDR1 O  INNER JOIN OITM I ON O.ItemCode = I.ItemCode
    Where I.AvgPrice = 0
       and O.DocEntry=@list_of_cols_val_tab_del)
    begin
    SET @error = 1
    SET @error_message = N'Item without cost ! '
    end
    END
    This code is applicable if you do not set the Manage Item Cost per Warehouse. If you set it, use the modified code of Rahul.
    Edited by: István K#rös on Oct 12, 2010 1:59 PM

  • Environment Taxes added to Sales Order - Belgium

    Dear Gurus,
    Due to new legislation, we need to add environmental taxes for certain types of equipments in sales order.
    Can you please guide me step by step on how to do that?
    I believe that Tax has to be maintained at material level as it depends - in that case - of the level of "pollution" generated by the vehicle sold to the customer.
    How can we make sure that tax appears thereafter in the invoice when billing the Sold to Party?
    Thanks for your help.
    Kind regards
    Christian

    I believe that Tax has to be maintained at material level
    Normally, tax will always be determined based on the region of the origin state and region of the destination state and NOT on material.  Of course, I am not aware of Belgium statutory rules.
    Nevertheless, Check note 1434103 - point 4.2 where explanation is given on tax.  It has also been mentioned that you need to contact operations.belgium at sap dot com for specific TAX settings.
    thanks
    G. Lakshmipathi

  • Sales order info and quantity in the invoice accounting document

    Hi,
    When saving the accounting document at sales invoicing time, I do not succeed in retrieving information such as the quantities sold, sales order number,... whereas the field status group for the concerned account is activated (optional) for the field "quantity" and "sales order".
    Moreover, there is a field I would to retrieve the net weight that is displayed in the sales invoice, in my accounting document. Is this possible?
    Thank you for your help,
    Ronan

    Hi Kapil,
    Just commit the data base .Generally when we create any data using fm or bapi it wont commit database. Take the fm and sequentially use another fm if you did this from se37. If you did this from report just commit data base. It will commit data base and create a record. Please close the thread if it is answered.
    Regards,
    Madhu.

  • Office Web App Server 2013: cannot edit word document with own WOPI Server

    Hi all,
    I tried to build our own WOPI Server to connect to Office Web App Server 2013 SP1. Viewing documents
    in IE was possible quite easy to achieve. Now it comes to editing.
    When I try to edit a document, I got a german message “Sie verfügen leider nicht über die Berechtigung zum Bearbeiten dieses Dokuments“.
    This means something like „Sorry, you do not have any permission to modify this document”.
    I enabled editing on the OWAS-Server while setup procedure
    (Until now, I only have an InternalUrl but no ExternalUrl.)
    PS C:\ > New-OfficeWebAppsFarm –InternalUrl “https://win-owas...” 
    –CertificateName "win-owas…" –EditingEnabled
    ULS log shows
    BaseDocument says editing is not supported [WebEditingEnabled: True] [SupportsEditing: True] [PinnedUsersRights: Read] 
    So far, I implemented these three REST service methods:
    [OperationContract]
    [WebInvoke
    "GET":"api/wopi/files/{name}?access_token={access_token}"
    "GET":"api/wopi/files/{name}/contents?access_token={access_token}"
    "POST":"api/wopi/files/{name}/contents?access_token={access_token}"
    Office Web App Server was downloaded from “Microsoft Volume Licensing Center”. I installed latest updates from Microsoft.
    Did anybody succeed in writing to own WOPI an can give me some hints?
    Thank you in advance.

    Hi,
    The discovery xml contains many lines. The one for editing docx is:
    <action
    name="edit"
    urlsrc="https://win-owas.cado.camos.de/we/wordeditorframe.aspx?"<ui=UI_LLCC=""&><rs=DC_LLCC=""&><showpagestats=PERFSTATS=""&>"
    ext="docx" requires="locks,cobalt,update"/>
    I am calling it this way:
    <iframe
    src="https://win-owas.cado.camos.de/we/wordeditorframe.aspx?WOPISrc=http%3a%2f%2fpc-ms.cado.camos.de%3a8000%2fWOPI%2fapi%2Fwopi%2Ffiles%2FAbout_Keyboard_Input.docx&access_token=5268690b-19c6-496d-8ae6-b694f8e7bd0c"
    I’m not sure whether or not I implemented "locks,cobalt,update" correct, but I do not see any ‘edit-’network traffic from OWAS-Server to WOPI-Server. So I cannot debug anything. I will (re)check the articles you mentioned.
    Thank you for your help.

  • HELP!!!! I have spent hours trying to find out how to embed an image with a link or a Microsoft Word document with a hyperlink built within the document -- not as an attachment! Does ANYONE know the secret? Can it be done, or not! My PC clients do it.

    HELP!!!! I have spent hours trying to find out how to embed an image with a link, or embed a Microsoft Word document with a hyperlink built within the document -- not as an attachment into my email -- but where it shows as the email content when opened! Does ANYONE know the secret? Can it be done, or not? My PC clients do it all the time easily. Then I want to be able to send the embedded image/document (not as an attachment, but visable within the email when opened) to many email contacts at once, BUT the individuals receiveing them DO NOT SEE the other email contacts. Cannot seem to be able to find anything on being able to do these 2 tasks.PLEASE, SOMEONE, HELP!!!

    Don't know if this applies to Lion, but read here:
    http://www.makeuseof.com/tag/create-html-announcement-mail-iweb-mac/

  • Version conflict? Error -5002 when adding a sales order in SDK 2004.

    I get the -5002 error without any description when I reference the "SAP Business One Objects Bridge API version 6.2 SP3" and try to add an invoice in SBO 2004. The code is basically:
    Set vDOC = vCmp.GetBusinessObject(oInvoices)
    vDOC.CardCode = "K99999"
    vDOC.CardName = "Nils"
    vDOC.Lines.ItemCode = "A00001"
    VDOC.Add
    The routine works well if I reference the SBO 2004 DI API or if I run it on a 6.5 system.
    How can I be sure that my routine can work in both versions?
    /Nils.
    Message was edited by: Nils Jakob Heyerdahl

    I run Windows XP Proffessional with SP2.
    1) I had 6.5 SP1 installed. My POS-app works well. I have a procedure that adds an invoice from the POS-app. The VB-project (VB6 SP5) references "SAP Business One Objects Bridge API version 6.2 SP3" (because I want to support all versions of SBO).
    2) I uninstall SBO 6.5 and install SBO 2004 (III).
    3) I start the POS-app and receives an error when I try to add a document. The message is "-5002,". No text after the errorcode.
    4) I then deletes the reference to "SAP Business One Objects Bridge API version 6.2 SP3" and reference the "SAP Business One DI API Version 2004".
    5) I then start the POS-app again and no error occurs.
    The code I debuged with is as simple as this:
        Set vDOC = vCmp.GetBusinessObject(oInvoices)
        Set vOCRD = vCmp.GetBusinessObject(oBusinessPartners)
        vDOC.CardCode = "K99999"
        vDOC.CardName = "Nils"
        vDOC.Add
        vDOC.Lines.ItemCode = "A00001"
        vDOC.Lines.ProjectCode = "    "
        vDOC.Lines.ItemDescription = "Varetekst"
        vDOC.Lines.Quantity = 1
        vDOC.Lines.PriceAfterVAT = 100
        vDOC.Lines.DiscountPercent = 0
        If (0 <> vDOC.Add()) Then
           Call vDOC.SaveXML("SAP_ERR_" & Trim(Str(DocType)) & "_" & Trim(Str(Bong)) + ".xml")
           isCancelled = True
        End if
        Exit Function
    Strange?
    /Nils.

  • Backup Restore With SQL Server 2008 R2 although it succeeded with SQL Server 2008

    Dears;
    I have a Full backup of some DB of around 417 GB within SQL Server 2008 R2 , and when I tried to restore it , i get  stuck several times with the error below :
    Restore failed for Server   (Microsoft.SqlServer.SmoExtended)
    A system assertion check has failed. Check the SQL Server error log for details. Typically, an assertion failure is caused by a software bug or data corruption. To check for database corruption, consider
    running DBCC CHECKDB. If you agreed to send dumps to Microsoft during setup, a mini dump will be sent to Microsoft. An update might be available from Microsoft in the latest Service Pack or in a QFE from Technical 
    Although I have restored
     successfully other several Full+ Deferential backups for the same DB while it was in SQL Server 2008 not 2008 R2.
    And so I have rounded all different possible assumptions for such common know error by Microsoft for SQL Server 2000, 2005, 2008 but 
    no way as next:
    1-     
    I have attempted to restore it within 2 environments clustered and non-clustered of SQL Server 2008 R2.
    2-     
    I have attempted to restore verify it and it was so fine .
    3-     
    I have attempted to restore it using Continue_after_error ,no_checksum but no way.
    4-     
    I have attempted to move Backup file to another Storage but no way.
    5-     
    I have scheduled jobs to DBCC
     Checkdb the live DB and it wasn’t any errors since long time right now
    6-     
    I have also DBCC check all master +msdb+model+Tempdb ,and they are so fine
    7-     
    I have also checked all I/O subsystem of SAN and Network controllers , but they are fine evidenced much more by my trial on 2 different environments.
    8-     
    I have also checked Memory and it is so fine all the time since I have 128 GB memory and I control it also so well.
    For DB Design +Structure :
    It has 20 Files containing tables partitioned horizontal +Vertically
     (Schema Partitioning +File Stream partitioning ) through these 20 files.
    I have Data compression of the required tables only.
    I have one table of more than 300 GB alone which is partitioned as mentioned above.
    I have implemented Read Committed Snapshot isolation level using row versioning integrated so well with File stream technology since it is a new feature of SQL 2008 R2.
    DB is in simple recovery model for garbage collection of all file stream data as a result of much Delete /update in images themselves.
     So any one has any idea about such case..How to solve it…?

    Hi Ashwin,
    When i searched with no answers these are listed out. So i thought this is still existing. Now on wards let me check the data and time of latest reply. Thanks for guidance.
    It was happening by oversight. Thanks for guidance.
    Regards, Pradyothana DP. Please Mark This As Answer if it solved your issue. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/

  • My Mac Mini client cannot find or connect with the server on my 4 station network.  I am able to connect with the server using the same ethernet connection with another Mac.  Any suggestions?

    I am using DHCP/automatic running OS 10.4.11.  I upgraded to 10.5 but this did not help.

    Ping has started ...
    PING 192.168.1.1 (192.168.1.1): 56 data bytes
    64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=1.158 ms
    64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.941 ms
    64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.911 ms
    64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.924 ms
    64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.995 ms
    64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.971 ms
    64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=0.964 ms
    64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=0.937 ms
    64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=0.894 ms
    64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=0.874 ms
    --- 192.168.1.1 ping statistics ---
    10 packets transmitted, 10 packets received, 0% packet loss
    round-trip min/avg/max/stddev = 0.874/0.957/1.158/0.075 ms

  • How to search for a text node with a particular value in an xml document with labview

    supposing i have the following xml document:
    <head>
    <book>
    <bookname>zio</bookname>
    <author>dan</author>
    </book>
    <book>
    <bookname>the spear warrior</bookname>
    <author>britney</author>
    </book>
    <book>
    <bookname>the beard</bookname>
    <author>derrick</author>
    </book>
    </head>
    i want to search for the author of the book "the beard" using for example the V.I Get first match  of labview to access the the node with value "the beard" and then use Get next sibling  V.I  and Get node text content to get get the author of this book..so my question is how do i write the xpath expression for Get first match so as to access the node with bookname "the beard" instantyly?  am trying to minimise the use of loops because they increase the time duration,..thank you (NB:i dont want to use Get all Matched V.I because it obliges me to use a loop in order to access the name derrick and this increases the time duration for my v.i)
    Solved!
    Go to Solution.

    Since it's all text, why not use a real quick Match Pattern (or Regular Expression, but you don't need that much power here), see attached.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ
    Attachments:
    Two-stage match demo.vi ‏8 KB

Maybe you are looking for

  • Exchange email can no longer send since password on exchange was changed

    I have an iPhone 4 that I could not initially get to send emails with exchange! Not sure why but it just started working and has been working ever since. It started working once the domain value was left empty but, although initially it couldn't logi

  • How do I get LR to open on the secondary monitor in a two monitor iMac Retina system using Yosemite?

    No matter what settings I use in Mission Control or in TotalSpaces2, LR (latest version) keeps opening on the main screen and I have to move it to the secondary monitor each time I restart it or change catalogs. It is irritating but also problematic

  • Recovery HD not working, kernel_task 100%

    Hello! I have run into a major problem with my iMac and I have no idea what is going on. Help would be greatly appreciated! The inital problem: I was using my iMac last night, mainly surfing with Safari but with several other applications open in the

  • Boot Camp WinXP SP1

    I have a genuine disc of WinXP, and I am trying to use boot camp to install it, yet in the setup it asks for a previous version of windows such as windows 2000 or earlier. So I think I have a copy of WinXP SP1 so now, I am trying to figure out how to

  • WEB.SHOW_DOCUMENT documentation

    Does anybody know where I may be able to find a good document on WEB.SHOW_DOCUMENT? Is WEB a package and if so, does it have more functionality than SHOW_DOCUMENT? Thanks a lot, Thomas