Regarding exception in the WebService(Business One)

Hi all,
    I have installed Business One in my system.My requirement is to display the sales order details.I am using java connector and SAP NetWeaver Developer Studio for this purpose.
process:
--I've also included external jar files sboapi.jar and sbowrapper.jar
--I've written a query to get salesorder details from ORDR table.
--I am handling the IRecordSet object.
--I have written a method which returns an object array of SalesOrder class which i have created for this purpose only.
By writing normal java program it is working fine and records are displaying form that SalesOrder object which i've created.
I've created a webservice with the same code and deployed in the WAS of SAP.While testing it is showing an exception
"Exception in method getSalesOrderDetails()".
Any one please guide me in this issue.
Thanks and Regards
   Madhu

Hi Madhu,
I don't know details about WAS, but regarding Java connector (JCo) for DI API please note the following:
JCo is just a thin wrapper around the DI API COM library to facilitate using DI API in a Java enviroment.
Therefore the DLL file which encapsulates the business logic (i.e. OBServerDLL.DLL) will be copied into a local temporary directory on the file system as well - ready to be loaded from the webservice then.
I could imagine that you would need to apply some settings in WAS to enable creating a directory, copying files into it + loading files from there, but this is beyond what I know.
...I assume getSalesOrderDertails() does handle the Logon as well?
For usage in a WebService, DI Server (DI API exposed as a SOAP capable Windows service = WebService to be built on top of it) may be the better alternative... - though it also works like DI API, but inside the DI Server process - not in your WebService...
...despite some limitations (no DB structure can be changed through it etc.) ...
HTH,
Frank

Similar Messages

  • An Unhandled win 32 exception occured in SAP Business One.exe(3408)

    Hi Everybody,
                  Am getting an error while am Designing any invoice document for type-service Document.the error appears in the name
    of Visual studio Just-In-Time - Debugger.
    ERROR- An Unhanded win 32 Exception occurred in SAP Business
    one.exe(3408)...
       So if you find solution for this do reply me
    regards
    chandru

    Hi Chandru,
    For this kind of error, you have no other choice but report to SAP support ASAP.  This is beyond forum scope.
    If only happened in one workstation, then that is not a big problem.  You just need reinstall your B1 client there.
    Thanks,
    Gordon

  • What are the SAP Business one requirements for intercompany intergration

    Hi. what are the SAP Business one requirements for intercompany intergration

    Hi Wendy,
    Intercompany 1.1 is supported on SAP Business One 8.82 and Intercompany 2.0 is supported on SAP Business One 9.0.
    So depending on Solution version your are looking for, refer to Prerequisites section in the respective version's Administrator Guide.
    For further information on Intercompany Integration Solution for SAP Business one, you may refer the following:
    https://websmp210.sap-ag.de/partneredge/b1/intercompany  
    Regards,
    Agneesh Jain
    SAP Intercompany Team

  • We are exporting data to the SAP Business one. Error: "The field is too small to accept the data you attempt to add. try inserting or pasting less data"

    Hi,
    I have exported the data from two sources, MS-Excel and SAP Business One to Sap Business One (8.81). While exporting the data, I got the error "The field is too small to accept the data you attempt to add. try inserting or pasting less data" for the first time, Immediately when I run it again, it shows export successfully completed, but nothing is changed in the SAP Business One. Could you please provide the solution as early as possible?
    Thanks & Regards,
    Chaitanya.B

    ok
    i solve the problem.i rezise the colomn size
    thanks

  • Capture keystroke from the SAP Business One Desktop

    Does anyone know how I can capture a keystroke from the SAP Business One “Desktop” with the UI API?
    Basically, open the B1 Client, then click the mouse in the back ground beside the main menu so that the cursor is “nowhere” (not in the search field). Now set some code In the KeyDown event to catch any keystrokes. Nothing happens. The event is not called. I even tried using SetWindowsHookEx API function but never got it to work with an SDK project since there is no form hHandle. Woudlnd even work once I gave the hhandle of the B1 Client

    Hi Marc,
    what is your exact requirement ?
    I don't think you can specificly catch a key down in the background - but only because it is not possible to "lose" main menu as active form ( only if you close it -> then search field is active ).
    So basically you have to find a logic where you can catch *your* keydown on any form.
    Be aware of the fact, that keydown won't let you catch all keys / key combinations.
    I had an equal requirement some time ago and after a lot of experimenting ( windows global hook wouldn't work reliable ) I ended up using SBO key shortcuts ( F2-F12 ) and their menu events.
    regards,
    Maik

  • How do i delete all the songs on my itunes except for the songs on one of my playlists.

    how do i delete all the songs on my itunes except for the songs on one of my playlists?

    Hi Jaylcee,
    Connect it to your computer and sync it to your iTunes Library.
    GB

  • Can we support Map/HashMap in the webservice as one of internal parameters?

    Hi all,
    I have written a simple webservice. Which just prints the content of the input.
    public class ServiceClass {
         public MyVO printContents(MyVO vo) {
              System.out.println(vo.getName());
              System.out.println(vo.getParams());
              return vo;
    public class MyVO {
         private String name;
         private HashMap<String, Serializable> params;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public HashMap<String, Serializable> getParams() {
              return params;
         public void setParams(HashMap<String, Serializable> params) {
              this.params = params;
    I am using Eclipse Java EE IDE for Web Developers.(Version: Helios Service Release 1) for generating stubs like this :
    New wizard , webservice, Selecting the server runtime (tomcat 6) and webruntime as Axis2. And clicking finish.
    It generates the project with name TestClient. And inside that 2 classes : ServiceClassCallbackHandler and ServiceClassStub.
    Once WebService is generated its also opening one JSP (WebService explorer) . In that I can see the WebService and clicking on basicwebservice it shows UI where I can input my data.
    But its not showing if I can add key/value for map.
    I am not sure how to test this?
    More importantly can I test my webservice that it prints the passed data?
    How to pass the test data to this webservice?
    Or how to pass MyVO object to the webservice?
    Thanks in advance.

    Hi Ronni
    This forum is not the right place where you can find your answer easily. To catch more answers you can try posting your question to one of the following forums:
    1. <a href="https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode1-1&contenttype=url&content=https%3A%2F%2Fforums.sdn.sap.com%2Fforum.jspa%3FforumID%3D41">EP Content Development Forum</a>
    2. <a href="https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode2-4&contenttype=url&content=https%3A%2F%2Fforums.sdn.sap.com%2Fforum.jspa%3FforumID%3D59">Java Programming Forum</a>
    *--Serdar
    Moved the post to Java Programming.
    Thanks for the post, Mark. 
    Message was edited by: Mark Finnern

  • Hey,i have an ipod touch 4g os4.1. just now mine is broken! i can't launch any apps except for the build-in one. does anyone knows the answer quickly? fyi,i've never jailbroken

    my itouch 4g is in trouble!!!!! i can't launch any apps except for the built-in apps! <Edited by Host> need answer ASAP!!!!!

    - Try a reset. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears
    - Download/purchase a new app.
    - iOS: Troubleshooting applications purchased from the App Store

  • Regarding exception in the advanced queue process

    Hi,
    I got the error message in the Q_table.But it is inserting the data in to the queue table and it is not parsing.
    I Parsed the same xml file in the anonymous block it is working.
    That error message is appearing in the filed exception_queue as 'FATALEXCEPTIONQUEUE'.
    How to debug this error message and why it is giving the error message.
    Can you Please any one help me.
    Regards,
    Raghavendra.
    Edited by: user10547807 on Oct 26, 2009 9:32 AM

    h

  • Unable to organize my bookmarks, also firefox doesnt show my bookmarks except for the recently bookmarked ones

    Organize bookmarks is always disabled. Also my Bookmarks are being moved to a location which i cannot access or see using the options available on the pull down menu. All i'm able to see is the bookmarks stored in the "recently bookmarked". please let me know of a way to get my bookmarks back. also to how enable the "Organize bookmarks".

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    You can also check http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • Update Business Partner via SAP Business One Webservices

    Dear all,
    We use the SAP Business One Webservices to add/update businesspartners and items.
    We can add/update items without any problem.
    We can also add businesspartners without any problem.
    But when we try to update a businesspartner.
    We always get the error message : "Entry already exists in following tables:"
    This is the code we use to update BusinessPartner:
    Dim bpsService As BP.BusinessPartnersService = New BP.BusinessPartnersService()
    Dim msgheader As BP.MsgHeader = New BP.MsgHeader()
    msgheader.SessionID = sSessionID
        msgheader.ServiceName = Global.BP.MsgHeaderServiceName.BusinessPartnersService
        msgheader.ServiceNameSpecified = True
        bpsService.MsgHeaderValue = msgheader
                ' fill business partner class
                Dim oBp As BP.BusinessPartner = Nothing
                Dim myBPParams As BP.BusinessPartnerParams = New BP.BusinessPartnerParams()
                myBPParams.CardCode = sCardCode
                ' Call GetByParams command
                oBp = bpsService.GetByParams(myBPParams)
    oBp.CardName = "Test update BP"
    Can someone tell me what is going wrong when I call this function :
      bpsService.Update(oBp)
    Kind regards
    Bart

    Hi Bart,
    I think the problem is because you are using the BPService twice without initializing it one more time in the middle.
    You call first GetByParams and then Update.
    The following code works for me:
            myBPService = New BusinessPartnersService()
            Dim myBP As BusinessPartner = New BusinessPartner()
            Dim myBPParams As BusinessPartnerParams = New BusinessPartnerParams()
            ' Create Header
            Dim msgHeader As MsgHeader = New MsgHeader()
            msgHeader.SessionID = B1WS_WindowsSample.GlbData.sessionID
            msgHeader.ServiceName = MsgHeaderServiceName.BusinessPartnersService
            msgHeader.ServiceNameSpecified = True
            myBPService.MsgHeaderValue = msgHeader
            myBPParams.CardCode = MainForm.CardCodeTextBox.Text
            myBP = myBPService.GetByParams(myBPParams)
            myBPService = New BusinessPartnersService()
            ' Create Header
            msgHeader = New MsgHeader()
            msgHeader.SessionID = B1WS_WindowsSample.GlbData.sessionID
            msgHeader.ServiceName = MsgHeaderServiceName.BusinessPartnersService
            msgHeader.ServiceNameSpecified = True
            myBPService.MsgHeaderValue = msgHeader
            System.Console.Out.WriteLine("Update a BP")
            myBP.CardName = "CardName MOD"
            '/ call Asyncronous Add
            myBPService.Update(myBP)
    Hope it works also for you
    Regards
    Trinidad.

  • Crystal Reports background processing for SAP Business One 8.8

    Dear Partners,
    I have an SDK program developed in SAP Business One SDK that works in 2007, it calls crystal reports externally and can be executed as a background task using the windows schedular or from the command prompt.
    My problem is it does not work under SAP Business One SDK 2008 PL18 with SQL Server 2008, Visual Studio 2008.
    I receive the following message after this line in my code,"oReport.PrintToPrinter(CopyNo, False, 0, 0)".
    'CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
    Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
    Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Logon failed.
    Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
    Unable to connect: incorrect log on parameters.
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.ReportSource.EromReportSourceBase.
       at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at BGProductionRpt.ECR_Common.ECR_PrintReport(Int32 CopyNo) in C:\SDK Development\8.8\test\XX_Rpt\ECR_Common.vb:line 485'
    My Question is what Crystal Reports libraries or other method should I be using ?
    Crystal Reports 2008 for SAP Business One eg. 51038978.zip - downloaded from portal obviously dosn't contain the CrystalDecisions libraries.
    Crystall Reports 2008 - cr2008_sp3_fullbuild, cr2008fp33.exe, cr2008fp33_mm, cr2008fp33_clickonce - also download from the portal, the cr2008_sp3_fullbuild does contain the crystal decisions libraries.
    Finally other choices are crystal reports included with the visual studio 2008 and crystal reports full version direct from Business Objects.
    I have tried different versions of crystal decision libraries- eg, 12.0110 or 12.02 but still no joy.
    Also if I manage to get the report to fire what should the client be running eg, if they have the Crystal Reports 2008 for Business One do they also need to install the Crystal Reports Run time - cr2008fp33_clickonce.
    Any help would be appreciated.
    Thanks.

    Hi John
    Since the SDK works in 2007 it will be using the OLD DB access method.
    Change the Crystal report to use an OLE DB datasource rather than the SAP Business One data source.
    Regards
    Rob

  • Cannot connect SAP Business One with iPad

    Hey all,
    I am new to SAP Business One. And i am exploring SAP Business One Mobile Applicaiton for iPad.
    I've tried to follow the step to set up my both SAP Business One and iPad but failed.
    The message "Connecting to server" keep loading and after few minutes show me "Tje request timed out (-1001)"
    So am I did something wrong? Or miss out something?
    Please advice with this problem.
    Thank you.
    Regards,
    Wai Leng

    Hey Lisa,
    Yes, I've tried what I found in this forum and the Support Portal.
    But it's is failed again.
    As iPad doesn't really need a mobile phone number, so i just simple key in a number for both SAP B1 and my iPad. Is it any problem?
    Another question, I've tested my connection for B1D1, but failed, following is the error message.
    com.sap.b1i.adapter.dia.exception.ConnectionFailedException: Connect to Business One failed.
    (-107) Unable to connect with the specified username and or password
    Anything i miss out?
    Thank you.
    Regards,
    Wai Leng

  • Cannot reinstall SAP Business One 32 Bit Client program

    Hi Everyone,
    I started with a computer which had SAP Business One Clients (32 & 64 Bit versions) installed, along with the DTW (Data Transfer Workbench). I have since uninstalled both Business One clients, and am now wanting to reinstall the 32 Bit Client (only).
    When I double click on the Setup.exe file I am presented with the message below -
    I don't understand why I am presented with this message given that I have uninstalled the software.
    In addition to uninstalling the software through the Windows (7) Control Panel, I have also manually deleted all files and folders related to Business One (using a Windows Search), with the exception of those files related to the DTW, and finally deleted all TEMP files.
    If I click on Cancel the setup stops, but if I click on OK I see the following -
    When I click on OK, above, I see the following -
    What can I do now to fully remove all traces of the previous Client installations so that I can reinstall the 32 Bit Client?
    Any advice will be greatly appreciated.
    Kind Regards,
    David

    Hi Everyone,
    Firstly I now have an 'S-User ID', so I have access to SAP Resources.
    Secondly, thank you Sridharan for posting the information to this thread, it is a great help (particularly given that I wasn't sure how long it would take my provider to organise an S-User ID).
    Thirdly; these are the actions I have taken - none have helped!
    Attempted installation in the 'hidden' Windows Administrator account
    http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-windows-vista/
    THE FOLLOWING COME FROM THE OFFICIAL SAP 'FIX' (as shown above in Sridharan's post)
    1). Tried both points, a), and b), in the InstallShield link -
    http://consumerdocs.installshield.com/selfservice/viewContent.do?externalId=Q108474&sliceId=1
    However I could not proceed with point 3), because by my reckoning the SAP Business One Client that I am using relies upon Installshield 17 (and there is no link available for this version!).
    If I am incorrect about the above can somebody please let me know which version of Installshield was used, and I will then return to point c) of the Installshield 'Q108474' link.
    2). Microsoft C++ 2005 is not installed on the computer.
    3). Registry entries did not exist, and I am going to assume where removed when I performed a registry clean with Registry Mechanic (before posting this thread).
    I have downloaded a trial version of Installshield Enterprise, and I am hopeful that it will contain a version 17 driver file, in which case I will return to 'Q108474'.
    In the meantime however if anybody has any further suggestions can you please post?
    I really don't want to reinstall Windows just because one program will not load.
    Kind Regards,
    David

  • Material transfer from SAP R/3 to SAP Business One is blocked

    Hello experts,
    Please I need your help for the following scenario:
    Our client has B1iSN and SAP R/3 in the headquarter company and B1if and SAP B1 in the subsidiary. The material transfer from SAP R/3 to SAP Business One failed and the following message is diplayed:
    Result message :
    com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.lang.RuntimeException: DI Error: (-2028) No matching records found (ODBC -2028)
    The Material database transfer is blocked due to message in status
    failure which block all other messages.
    We tried to restart the server (Business One and B1iSN) but it didnu2019t solve the issue.
    Any idea please? Thank you.

    Hi Nadia,
    did you check the WRITE-POLICY settings of your scenario?
    when reading the displayed DI Error message, it looks like B1iSN is trying to update an B1 item which does not exists.
    Please open SAP B1iSN Tools -> Development Tools -> Graphical scenario Design and select your Bizpackage, BizStep and BIUMETA.
    Open the WRITE-POLICY symbol and check the entries:
    Insert on Exist = error or fallback2U
    Update on Miss = fallback2I
    The Update Policy should stay to value regular.
    To activate changes of the WRITE-POLICY please deactivate, modify and reactivate your Business Process instance.
    If a WRITE-POLICY change has no effect, please check your data mapping (BIU) and especially the parameter <QueryParams>, which mustn't be filled for "insert/Add" operations into B1.
    Best regards
    Bastian

Maybe you are looking for