Error calling application via OLE GUIScanDoc

Hi,
I am creating a small scanning application which should be accessible from SAP. I read the documents from SAP side which says, we need to create an OLE 2.0 Enabled application. I created an OCX application in vb6 and configured with SAP. the call is going to my ocx application but dont know how to implement "GUIScanDoc @AID,N" in my application. I tried to create a function named GUIScanDoc () in ocx but getting the same error stating *"Error calling application via OLE GUIScanDoc".
If anyone has solution then plz plz help me out.
Thanks in advance.
P. Ramesh
Edited by: rapr04 on May 22, 2011 2:37 PM

I think you posted this in the wrong section of the forums, this area is just for SDK's relating to the BusinessObjects products.

Similar Messages

  • OLE with c# for SAP AL - Error calling application via OLE GUIScanDoc

    Hi,
    I am creating a small scanning application which should be accessible from SAP. I read the documents  from SAP side which says, we need to create an OLE 2.0 Enabled application. I created an OCX application in vb6 and configured with SAP. the call is going to my ocx application but dont know how to implement "GUIScanDoc @AID,N" in my application. I tried to create a function named GUIScanDoc () in ocx but getting the same error stating *"Error calling application via OLE GUIScanDoc".
    If anyone has solution then plz plz help me out.
    Thanks in advance.
    P. Ramesh
    Edited by: rapr04 on May 22, 2011 2:37 PM

    I think you posted this in the wrong section of the forums, this area is just for SDK's relating to the BusinessObjects products.

  • Error calling appl. via OLE OA175 after inst. Patch4 or 5 of SAPGUI 7.20

    I have maintained a OLE application with the "oaa4 ArchiveLink:Application Maintenance" to do special work on documents with special type.
    It worked very well until I installed the Patch4 or Patch5 of the SAPGUI 7.20.
    Now I get the message: "Error calling Application via OLE ...".
    It looks like a bug in the patches but may be there is something wrong with me (or my application). Has someone any experience with this patch or with this error message.
    In the meantime I got an answer:
    You have to grant your OLE application in the security options in the SAP-GUI-Configuration.
    Edited by: Terkosh on Feb 13, 2012 3:48 PM

    how do I grant the OLE application ?

  • OAWD - Error calling app. via OLE

    OAWD is a new transaction for my users.  We are in testing and are receiving an error message "Error calling application via OLE ...".
    ST01 trace is clean, but a workflow item does not always route to the mailbox.  Functional consultant says it is a security issue.  S_OLE_CALL is assigned to the users with required values (does not appear in trace).  I have already checked the standard role SAP_BC_SRV_ARL_USER and the Archive link documentation with no success.
    Any suggestions?  Have you seen this error before?

    I have teh same problem, when i am trying to attach a zip document in transaction ME53N.
    I am getting the following error:
    " Error Calling Application via OLE ALVIEWER.APP"
    Could anyone help me with this issue?.
    Thanks a lot
    David

  • Error calling Application.SetUnhandledExceptionMode()

    Hello,
    I receive the following error when trying to call Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException) in my VB .NET app.
    System.InvalidOperationException was unhandled
      Message="Thread exception mode cannot be changed once any Controls are created on the thread."
      Source="System.Windows.Forms"
    I have looked at a couple of C# examples online and they seem to be calling this function before calling Application.Run() in the Sub Main().  However, I couldn't find the Sub Main() in my application.  So I wrote the following in the same file as my form:
    Namespace My
         Partial Friend Class MyApplication
              Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
                   Dim oError As New ExceptionHandler()
                   oError.AddHandler()  ' this calls Application.SetUnhandledExceptionMode
              End Sub
         End Class
    End Namespace
    I was hoping this would fire before the Application.Run(), but I still receive the error.  Does anyone know how to solve this?
    Thanks

    I know it's an really old post but every answer on the web are wrong for now. I want to share my method that work really well actually.
    I am under Visual Studio 2010 in a Windows Application Project with framework 4. So to achieve your need you right click on
    My Project Folder and click open. Under Application tab (the default one) click on the latest button
    View Application Events. This will create an ApplicationEvents class. Open it and copy paste this code :
    Public Sub My_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
    AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf CurrentDomain_UnhandledException
    AddHandler System.Windows.Forms.Application.ThreadException, AddressOf UIThreadException
    End Sub
    Private Sub UIThreadException(ByVal sender As Object, ByVal ex As ThreadExceptionEventArgs)
    Try
    WriteErrorLog(ex.Exception)
    Catch
    Finally
    End Try
    End Sub
    ' Handle the UI exceptions by showing a dialog box, and asking the user whether
    ' or not they wish to abort execution.
    ' NOTE: This exception cannot be kept from terminating the application - it can only
    ' log the event, and inform the user about it.
    Private Sub CurrentDomain_UnhandledException(ByVal sender As Object, ByVal e As System.UnhandledExceptionEventArgs)
    Try
    Dim ex As Exception = CType(e.ExceptionObject, Exception)
    WriteErrorLog(ex)
    Catch exc As Exception
    End Try
    End Sub
    From method:
    WriteErrorLog(ByVal ex As Exception)
    You can create your own method to log the error. Note that you
    do not need of :
    Application.SetUnhandledExceptionMode(UnhandledExceptionMode.Automatic)
    At all  and
    even less turning off the application framework.
    Hope this will help someone.
    dalkar69

  • Error calling BAPI_ADDRESSEMP_CREATE via SOAP

    Hi,
    I'm calling the remote-enabled function module (from Adobe Flex) via SOAP and its erroring and not returning anything. If I debug it, it gets as far as the statement below (in the function module HR_MAINTAIN_MASTERDATA) then just stops.
    CALL DIALOG 'HR_MAINTAIN_MASTER_DATA' USING BDCDATA MODE 'N'
    I know mode N is no-display, so why should this error? I know its coming into SAP via the ICM (over http) so there's no gui, but do we need a gui? I've seen remote-enabled function modules in the past that contained call transactions, and they worked fine!.
    Points awarded for help
    Graham

    I've been doing some more digging.
    Basically, the BAPI is simulating the infotype 0006 screen to put data in, but any error message or unexpected screens that comes up will cause the BAPI to fail. The BAPI doesn't do much validation before passing the data to the screens, it just checks that you've locked the employee record (and maybe does some other checks as well like authorisations).
    This means that you have to check your data in the call.
    Here are some things that I found to check
    1: Make sure that the start date, end date and subtype are supplied and are in the correct format (you can do this by placing an external breakpoint in the BAPI and checking it from here).
    2: Make sure all mandatory fields are specified.
    3: Make sure that there aren't any dynamic actions set up on infotype 0006 that could display other screens. Dynamic actions are normally ignore in batch input mode, but since the BAPI is doing a CALL DIALOG and not a CALL TRANSACTION, the field sy-binpt is not set to 'X'. One way round this is to create a z-function module which sets sy-binpt to X and then calls the BAPI.
    Any other suggestions welcome

  • Sending out a PDF as an attachment to a calling application via PI

    Hi folks,
    I have a Sync scenario:
    SOAP<->PI<->ECC
    An application makes a soap call to PI makes the same to ECC.
    ECC responds with a PDF(Binary) in the reponse payload, PI will need to extract this and put it out in an attachment.
    Has anyone worked on this scenario? Can you please give me your guidance and inputs?
    Appreciate your help!
    Hank

    Hi,
    this is very easy just have a look at my blog:
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    just pass the proxy reponse to soap and you're done
    Regards,
    Michal Krawczyk

  • Javascript error calling a bi 7.0 webapplication from a bsp application

    Hi everyone,
    This is the scenario we're facing a javascript error :
    Enterprise Portal is calling a custom bsp application ( via an iview in the enterprise portal ) in the bi system with a parameter "template_id" and a value, which is the technical name of a bi web application.
    The bsp application is evaluating the parameter by some custom code and creating a html page with a redirect or a maintenance message to the bi web application passed with the parameter "template_id".
    The html link to the bi web application is created according to this documentation :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/03d4ac801467e6e10000000a1553f6/content.htm
    Purpose of the bsp application :
    in the bi system there is a database table to maintain a flag for each webtemplate and infocube, which should not be called via the enterprise portal for a certain time ( some kind of maintenance switch ). The bsp application then decides to show a maintenance page for the called webtemplate or to send the redirect page to the client.
    The process described above is :
    working with the bi 7.01 sp7 in the bi ( enterprise portal sp22 ) in the productive system.
    working in the Q&A system bi 7.01 sp8 with bi 3.5 web applications.
    not working in the Q&A system bi 7.01 sp8 with bi 7.0 web applications.
    The javascript error calling bi 7.0 web applications is :
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET4.0C; .NET4.0E)
    Timestamp: Mon, 6 Jun 2011 09:11:04 UTC
    Message: Object doesn't support this property or method
    Line: 96
    Char: 11
    Code: 0
    URI: https://mlptb1.mlp-ag.com:58001/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=B_221_002_KUNDEN_POSTEN_AD
    We've opened a message. Support center is saying that this method isn't supported by sap. We should ommit the bsp application and the used functionality.
    Is there any way to find out, what is causing this object is missing ?
    Is there another way than a bsp application to use this custom maintenance function in the described system setup ?
    system components :
    production system
    SAP NetWeaver 7.0 Portal SP22
    SAP BI 7.01 SP 7
    q&a system
    SAP NetWeaver 7.0 Portal SP22
    SAP BI 7.01 SP 8
    Kind regards.
    Dirk

    Hello everyone,
    we did some further analysis on this problem und we think we found the problem.
    The error occurs while trying to execute the standard url for web templates inside a Enterprise Portal Frame, for example
    https://XXX:XXX/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=XXX
    While executing the URL a HTML-Page with some embeded Javascript-code is sent back to the browser.
    In this Javascrip-Code, the method-call "dsmObj.registerAll" leads to a script error in Internet Explorer.
    dsmObj.registerAll("pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex", "GUSID:6FC9SuhGDPIMMLwOdeHEIg--_7WQud13yeLJDz2kYoQFSg--", "1307605928212");
    In SP7, the method "dsmObj.registerFullKey" is called instead of "dsmObj.registerAll". This has changed in SP8.
    dsmObj.registerFullKey("GUSID:iBPvyska9*xE_JBalkQG2g--YyKv2C3NToP0I79Mw7EO8w--", "1307606479963");
    The object "dsmObj" seems to reference the parent frame of the Enterprise Portal.
    Has anyone seen this before? Any ideas how we can fix this?
    Kind regards,
    Matthias
    Edited by: Matthias Keller on Jun 9, 2011 2:07 PM

  • Remote-Conrol a COM-Application via JNI Error: RPC_E_WRONG_THREAD

    hi,
    we have written a DLL which launches and remotecontrols an application via Microsoft COM. This DLL is called by a Swing-GUI-Application via JNI. It works fine over years. Now we have rewritten our application as an rcp-plugin. The COM-Appplication still launches fine, but when I call a COM-function of the remote-controlled application i get back an error:
    RPC_E_WRONG_THREAD
    ...which means that the wrong threading model is used. Does anyone know about differnt threading models of a swing application and an rcp-plugin?
    thanks for your help
    robert

    Kapila_Shantha wrote:
    But they are saying that they can use and do program using it but they are using RHEL 4 . They are wrong.
    A well done JNI library, regardless of how it is used, should not cause system exceptions.
    That would be true whether you created the library or whether someone else creates it.
    Although if they don't wish to certify it for specific configurations then that could be the cause. If that and only that is the cause then you are out of luck.
    If the real problem is that you are using it incorrectly (which should still not cause that problem) then you need to figure out how to use it correctly.

  • VC++ application to link to Diadem via OLE

    Hello,
    I wrote a script in Diadem and now I want to call this script out of a VC++ application. 
    I'm not so familiar with the VC++ environment and how to implement the diadem .tlb (OLE) in it.
    Can someone give me an advice about this proceeding and the creation of the diadem-object to work on it, with the
    methods CMDExecuteSync, IntegerVarGet / IntegerVarSet, e.g.
    Some lines of program in C++ will help me understand the access. 
    Thanks,
    JB

    Hi JB,
    below there is an example to link to DIAdem via OLE.
    I've written the code with Visual Studio 2005.
    Copy the DIAdem.tlb from the DIAdem program directory into the source directory or modify the import path.
    Alternatively to the #import mechanism you can generate an MFC class from the type library.
    #include <Windows.h>
    #import "DIAdem.tlb" no_namespace
    int _tmain(int argc, _TCHAR* argv[])
    // Initialize OLE.
    ::CoInitialize(NULL);
    ITOCommandPtr pITOCommandT;
    pITOCommandT.CreateInstance("DIAdem.ToCommand");
    pITOCommandT->CmdExecuteSync(_variant_t("RootPropSet(\"Author\", \"Test\")"));
    pITOCommandT->CmdExecuteSync(_variant_t("MsgBoxDisp(RootPropGet(\"Author\"))"));
    _variant_t ValueT;
    pITOCommandT->TextVarGet("RootPropGet(\"Author\")", &ValueT);
    ::MessageBox(NULL, _bstr_t(ValueT), L"MyTitle", MB_OK);
    return 0;
    I hope that helps,
    Christian

  • Call a ABAP Web-Dynpro-application via a BSP-Application

    We have a BSP-Framework, that call several applications among other things other BSP-Applications, ITS-Application and other systems. Now I want to integrate a ABAP Web Dynpro-Application.
    For the moment I can call the ABAP Web Dynpro-Application from our application.
    This application runs in the same session as the Framework (verify in transaction sm04).
    When I want to call another application in the Framework, the session will be killed (no more sessions in sm04). This happens also, when I want to call the ABAP Web Dynpro-Application a second time.
    I guess, that the ABAP-Framework thinks I want to go outside the system (for example www.google.de) and close the session. I found out, that this wouldn't happen, if the application were suspended. But I found no way to tell the application via a url-parameter to suspend.
    Can someone help me?

    Thx for the tip,
    but I can't firea suspend plug. Because I'm in BSP. I understand the docu so, that you have the option to call a other apllication like BSP from a ABAP Web Dynpro.
    I want to call the ABAP Web Dynpro form BSP like this way.
    1. Start BSP-Framework
    2. Call ABAP Web-Dynpro-Application from BSP
    3. Call another Application from BSP without automatically logout by unload ABAP Web Dynpro. (I have a chance to call the ABAP Web Dynpro again via url to suspend before I call the other app.)
    Regards Stefanie

  • Calling a web dynpro application via portal using SSO

    Hello Expert,
    i have a requirement where i need to call a web dnpro application via portal.
    But it is asking for user name and password.
    i want to call using single sign on.
    Can u please suggest a way.
    i did the coding like this:-
    CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
    application_name = l_c_appl_name
    IMPORTING
    out_absolute_url = l_v_gv_url_string.
    l_v_icf_url = l_c_icf_url_val.                      "#EC SYNTCHAR
    CALL METHOD cl_icf_tree=>if_icf_tree~service_from_url
    EXPORTING
    url             = l_v_icf_url
    hostnumber      = l_c_0
    authority_check = space
    IMPORTING
    icfactive       = l_v_m_sso_active.
    IF l_v_m_sso_active = l_c_x .
    CREATE OBJECT o_viewer
    EXPORTING
    parent = o_empty_co.
    CALL METHOD o_viewer->enable_sapsso
    EXPORTING
    enabled = l_c_x
    EXCEPTIONS
    OTHERS  = 0.
    l_v_gv_url_c = l_v_gv_url_string .
    CONCATENATE l_v_gv_url_c l_c_url_string p0022-pernr INTO l_v_gv_url_c.
    CALL METHOD o_viewer->detach_url_in_browser
    EXPORTING
    url        = l_v_gv_url_c
    EXCEPTIONS
    cntl_error = 1
    OTHERS     = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
    RAISING error_occured.
    ENDIF.
    cl_gui_cfw=>flush( ).
    ENDIF.
    but it is not working
    thanks
    Mahesh

    Hi Mahesh,
    You need to setup a Single Sign On between SAP Portal and ECC system where yoy are doing the development.
    Ask basis team to setup the single sign on and usually this is the job done by Basis teams. Refer the below link to get some idea on SSO setup:
    http://scn.sap.com/community/enterprise-portal/blog/2013/12/15/sso-configuration-between-sap-portal-73-and-ecc-60-ehp-6
    Thanks
    Krishna

  • Error in application accurred please call support quoting error code 2907

    error in application accurred please call support quoting error code 2907

    I suggest you call support and quote error code 2907. 

  • Dear Sir, i have problem in my Iphone 5 that during receiving any calls always appeare message that error in application occurred please call support quoting error code 2907. I need to solve my problem

    Dear Sir, i have problem in my Iphone 5 that during receiving any calls always appeare message that error in application occurred please call support quoting error code 2907. I need to solve my problem.

    The problem this message always appeare when receiving the calls and requesting either accept or cancel.
    Can you advice me if i have wrong application or i need to remove some applications.

  • How application call servlet via https

    Hi guys
    Does anybody know how application call servlet via https? Is it same as
    http? How can I set up trusted certification? Thanks in advance.
    Regards,
    Mark.

    I meant to give a code example in the last one, sorry.
    URL u = new URL("https://mysecureURL.com");
    javax.net.ssl.HttpsURLConnection conn = (javax.net.ssl.httpsURLConnection) u.openConnection();There is other good info in the JSSE forums.
    Cheers,
    Peter.

Maybe you are looking for