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.

Similar Messages

  • 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

  • Does SSO2 provide SSO Support for SAP BOBI 4.x Applications?

    I could not find any referrence in SAP BI BI 4.x documentation for SSO where this SSO2 would be mentioned!
    - Wobi

    Hi,
    Does SSO2 provide SSO Support for SAP BOBI 4.x Applications?
    BOBJ == SAP BusinessObjects Business Intelligence platform?
    SSO2 == SAP Single Sign-On?
    If yes, BusinessObjects Business Intelligence platform delivers historically its own basis SSO based on Kerberos (but only for applications running on BOBJ platform). I recommend to use it if it fits to your requirements. If not, you can configure "Trusted Authentication". In this case BOBJ trusts the authentication of the web applications server. Here you can use SAP Single Sign-On with SAML or certificates.
    Regards
    Matthias

  • Problem about tdp for sap rman error

    I installed tdp for sap and scheduled a online backup , after the backup finished, I checked the log.
    all data files were backuped successfully. but there is an error about rman. I do not know how to do about that? Could you help me? I think the backup could be successful without rman, why in the backup log, it shows a rman error .
    I checked the initDEV.sap and initDEV.utl, there is no entry about rman, I do not use rman_util.
    BR0530I Cataloging backups of all database files...
    BR0278E Command output of 'SHELL=/bin/sh /oracle/DEV/102_64/bin/rman nocatalog':
    Recovery Manager: Release 10.2.0.4.0 - Production on Sun Mar 8 13:34:21 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    RMAN>
    RMAN> connect target *
    connected to target database: DEV (DBID=3672496816)
    using target database control file instead of recovery catalog
    RMAN> *end-of-file*
    RMAN>
    host command complete
    RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 25> 26> 27> 28> 29> 30> 31> 32>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of catalog command on default channel at 03/08/2009 13:34:23
    ORA-19564: error occurred writing 8192 bytes at block number 1
    ORA-27091: unable to queue I/O
    ORA-27041: unable to open file
    IBM AIX RISC System/6000 Error: 13: Permission denied
    Additional information: 3
    RMAN>
    Recovery Manager complete.
    BR0280I BRBACKUP time stamp: 2009-03-08 13.34.23
    BR0279E Return code from 'SHELL=/bin/sh /oracle/DEV/102_64/bin/rman nocatalog': 1
    BR0536E RMAN call for database instance DEV failed
    BR0280I BRBACKUP time stamp: 2009-03-08 13.34.23
    BR0532E Cataloging backups of all database files failed

    Hello Victor,
    we need the RMAN commands that were executed and at which step this error occurs.
    Maybe it is a problem with the snap controlfile for the AUTOBACKUP or many other scenarios are possible.
    We are also using the TDP for mySAP, but without RMAN support.
    If you want to use just RMAN (like we do for non-SAP systems / no BR*Tools) you can save a lot of license/service costs, if you are using TDP for Oracle, but keep in mind that you are losing the support for that by SAP. You can directly open a call by oracle for these situations.
    If you want this scenario as described we need more detailed information. Maybe a "LIST BACKUP" would also be nice.
    Regards
    Stefan

  • Crystal Report doesn't prompt for SAP credentials / errors out on refresh

    2 Environments tested with same results:
    <p>
    BOE XI 3.1 SP2 & BOE XI 3.1 SP2 FP2.5<br>
    SAP Intg Kit on mirrored SP/FP levels in each environment.
    <p>
    We've been successfully creating Crystal Reports against BEx queries in BW for months now as well as ECC master data.  We've also built universes and have WebI reports actively working against similar BEx queries in the same.  However, we're getting some curious behavior when we refresh the Crystal Reports against BEx queries in BW.  Verified all necessary transports and authorizations have been provided for both authoring, as well as refreshing/viewing on demand, etc.
    <p>
    We've setup all the Crystal Reports we're testing to:
    <p>
    a) Use custom database logon information specified here.<br>
    b) Specify a custom driver, leveraging the crdb_bwmdx driver<br>
    c) Prompt the user for database login
    <p>
    We have not enabled SNC as of yet.
    <p>
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server. 
    <p>
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    <p>
    However:
    <p>
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials.  We immediately get the "LOV" prompts.  Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through.  However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data.  Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to.  An error is then spit back.  We run the same queries with the same users within SAP and get normal behavior.  It's as though as soon as we apply security to the query the mdx driver doesn't like it.  Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    <p>
    Interactive Viewer: "Error in File %reportname%: Encapsulating Page Failed"<br>
    Java Viewer:  "Error in File %reportname%: Database Connection Error"
    <p>
    Nothing glaring in the event logs on the BO servers or in the Crystal logs that I can see, however just because it isn't spitting a specific error in the crystal logs doesn't mean I'm not missing something because I don't know what to look for behavior wise. To reduce the liklihood that it has to do with the way the report was built, we've tried against the same query by building a report using standard methods, as well as the SAP Toolbar using a very plain jane report.  Same behavior.
    <p>
    Thoughts?
    Edited by: Jay Riddle on Mar 1, 2010 8:55 PM

    Hi,
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server.
    >> Which authentication are you using to logon to InfoView ? Whats the configuration in the Universe Connection for Authentication ?
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    >> The user is using which authentication ? and against which system does he log on ?
    However:
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials. We immediately get the "LOV" prompts. Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through. However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data. Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to. An error is then spit back. We run the same queries with the same users within SAP and get normal behavior. It's as though as soon as we apply security to the query the mdx driver doesn't like it. Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    >> The user is using which authentication ? and against which system does he log on ?
    >> You mentioned security restrictions and I assume we talk about BI authorizations in form of data level security. If so - does the BW query include the authorization variables ?
    Ingo

  • Oracle RAC + Clusterware and another Cluster with Clusterware for SAP

    Hi,
    I have some questions about implementation of Oracle RAC and Clusterware with SAP
    For exemple, an architecture with 4 servers ( 2 real and 2 vritual ).
    I would like to know if i can do this
    2 servers for the first cluster.
    First cluster is with Clusterware and Oracle RAC
    This is for all the SAP Oracle databases environment
    I think there is no problem here.
    Now, with 2 others servers il would like to make another cluster (with also clusterware ) for SAP Central services (SCS) and enque replication server (ERS)
    Because all architecture is for only one SAP environment with separate services.
    1 for Database (cluster 1)
    1 for Central services ( cluster 2, virtual machine )
    1 for Dialogue Instance (no cluster)
    To be clear, the second cluster is to make HA of central services SAP (SCS and ERS )
    My question 2 are :
    Is it a good job to do this ? or there is anything wrong ?
    Do i have to install antoher clusterware for this 2 servers or i have to make anything with the existing clusterware + oracle RAC ??
    Thank you very much for you help
    Edited by: user12395221 on 29 déc. 2009 15:36

    Hi Givre,
    have you checked: Providing High Availability for SAP Resources (http://www.oracle.com/technology/products/database/clusterware/pdf/sap-availability-on-rac-twp.pdf) available on otn.oracle.com/clusterware? Not being an SAP expert myself, I still think, this paper describes the configuration - at least partially - that you are trying to set up.
    Just an idea. Thanks,
    Markus

  • How to create a application service with EHP1 for SAP NetWeaver CE Preview

    I ceated a new Composite Application with a Business Object "test" and an Application Service "search" in the Netweaver Development Studio
    Business Object - test
    In the Tab Structure I added the attributes id:LONG and name:STRING.
    Under Operations I added findByName with the Input Parameter name:<anonymous>(String), the Output Parameter Output:test (test as a Complex Type) and the Fault "CAFFindException".
    Application Service - search
    I added the test BO as a Dependent Object and the Operation findByName with the Input Parameter name:String, thevOutput Parameter erg:test (Complex Type) and the Fault "CAFFindException".
    As Business Logic I added the following code:
    package com.sap.demo.carpool.modeled.appsrv.search;
    import java.util.List;
    import com.sap.caf.rt.bol.util.QueryFilterFactory;
    @javax.ejb.Stateless(name="com.sap.demo.carpool.modeled.appsrv.search.search")
    @javax.ejb.Local(com.sap.demo.carpool.modeled.appsrv.search.searchServiceLocal.class)
    @javax.interceptor.Interceptors(com.sap.caf.rt.interceptors.LogInterceptor.class)
    public class searchBeanImpl extends com.sap.demo.carpool.modeled.appsrv.search.searchBean{ //$JL-SER$ - static final long serialVersionUID is not declared
        public searchBeanImpl() {
         @com.sap.caf.dt.CAFOperation(name="findByName")
         public com.sap.demo.carpool.modeled.Test findByName(java.lang.String name) throws com.sap.caf.rt.exception.CAFServiceException {
              List<Test> out = this.gettestService().findByName(QueryFilterFactory.createFilter(name));
              return out;
    I alway got the error: "Test cannot be resolved to a type" or "Type mismatch: cannot convert from List to Test"
    I would be very thankful if you could help me.

    Hi Marcos,
    thank you so much!!!
    After changing the cardinality the return type of the operation "findByName" switches to "java.util.List". Everything is working now!
    The code now looks like this:
    @com.sap.caf.dt.CAFOperation(name="findByName")
         public java.util.List<com.sap.demo.carpool.modeled.Test> findByName(java.lang.String name) throws com.sap.caf.rt.exception.CAFServiceException {
              java.util.List<com.sap.demo.carpool.modeled.Test> out = this.gettestService().findByName(QueryFilterFactory.createFilter(name));
              return out;
    Thank you so much! I'm so happy .... This problem frustrated me ....
    Thank you ....

  • Reg: Replacing i-way with PI for SAP ECC 6.0 version

    Hello Experts
    currently we are using R/3 4.7 version and middle ware we are using is i-way and we are planning to upgrade to ECC 6.0 and i would like to know how compatible is i-way is with SAP ECC 6.0 and is there any neccessity to replace the same with PI.
    and currently we are using RFC as a method of communication between R/3 and i-way and in future i don't want to change the existing coding , is it feasible to use PI via RFC.
    As i am ABAPer, i am new to this PI and please let me the know the risks involved and it is viability.
    Thanks and Regards
    S.Janagar

    Hi Gavin,
    you should always use the SQL EE for SAP installations (because of additional features that only come with EE).
    Concerning SQL 9 or SQL 10, I would definitely go for SQL 10. It has some nice features like Backup Compression, Page/Row Compression and so on. Have a look [here|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a236a2-8104-2b10-5ebe-8fef61cc82fd]. Just make sure that your installation meets the SR3 requirements.
    We already have SQL 10 in production and did not encounter any problems.
    Regards,
    Sven

  • Experiences / limitations with EhP2 for SAP NetWeaver

    Dear experts,
    I've a question regarding your experiences with the EhP2 for SAP NetWeaver. We need to install EhP4 for our SEM-BCS component; but herefor it's necessary to install EhP2 on the BI component.
    Did somebody knows if there are any restrictions with transports from an EhP2-BW to an EhP1-BW?
    Thank you very much for any reply or link,
    Clemens

    Hi
    Thanks. So that will be PI 7.2 then? When you said that I recall that I have heard of 7.2 version, should be coming our way within 2010 I think...Do you know if there are any information related to that somewhere?
    Thanks again.
    regards Scroll.

  • Connecting SAP Crystal Report with EHP6 FOR SAP ERP 6.0

    Hello Everyone!
    I have downloaded SAP Crystal Report demo 30 days and we have an IDES for "EHP6 FOR SAP ERP 6.0", how can I make some reports and train myself with crystal report?
    I don't understand how to make the connection to our SAP DB, can you help me?
    Thank  you!
    Denis

    Ok solved.
    - I assure where is the  saplogon.ini (in my case: %appdata%\SAP\Common\saplogon.ini)
    - I open the saplogon.ini with notepad and set the UTF format and than save it replacing the original one if it was not in UTF format
    - I go to : control panel>system>advanced>environment variables>system variables and I create a new one with name "SAPLOGON_INI_FILE" and path "C:\Users\....\AppData\Roaming\SAP\Common\saplogon.ini";
    - Open SAP Crystal Reports 2013 (in my case) > VIEW > Preferred Viewing Locale > (here I set the language of the SAP System I am going to log on with crystal report, in my case was in english so I set English)
    - (within SAP Crystal Reports 2013) > FILE > Log On or Off Server... > Create New Connection > SAP Table, Cluster, or Function > (now it shows me all the different SAP Systems that are also in the SAP GUI Logon, choose one, set the client-username-password and then finish)
    Thank you,
    Closed.

  • Implementing SAP GRC CC 5.2 - Help with RTAs for SAP 4.0B & 4.6B Needed

    We are in the process of implementing the SAP GRC Compliance Calibrator 5.2 across multiple environments including SAP legacy systems.  Our key issue is that we cannot find any RTAs for SAP 4.0B and 4.6B.
    I am positive that someone has done this somewhere out there so I am looking for any information and/or solution that you may have implemented to resolve this.
    Would you be kind enough to send the information to me asap.  I can be contacted on my personal email [email protected]
    Many thanks,
    Carlos

    Dear Carlos,
    Available RTAs :
    SAP 4.6B and above
    PeopleTool 8.46
    Oracle eBusiness Suite 11.5.10
    Hyperion HFM 4.1.0
    In order for target systems to connect to Compliance Calibrator, each Real Time Agent (RTA) must:
    Have an entry in the operating system services file of the NetWeaver server
    Server must be restarted before new client entries are registered
    Be defined as a Technical Landscape in the System Landscape Directory (SLD)
    Have a login account for Compliance Calibrator to use for connection
    This account information is used for configuring the Java connections
    Regards,
    Naveen.

  • What product to use with EHP1 FOR SAP SRM 7.0 JAVA System

    Hello,
    I install EHP1 FOR SAP SRM 7.0 JAVA system and now I what create this system in SAP Support Portal.
    What product should I select: SAP SRM or SAP Netweaver?
    If I select SAP SRM, in version I don't have option to select SRM 7.0 EHP1 and no Technical usage to select.
    If I select SAP Netweaver, in version I have SAP Netweaver EHP2 and I can select Technical usage "Application server java" and "EP Core" but not SRM java.
    In Solution Manager I have the same problem, what products shoul I select to create this system in SMSY?
    This JAVA system is not in the same network so I don't know how to synchronize system data.
    Best regards,
    Filipe

    Hello,
    SAP told us to register the license of SAP SRM in ERP installation number only and when I am creating the SRM system in ERP installation number stuck in the same situaltion as it's not giving an option for SRM EHP1 and not sure what to select for the license and what in SMSY.
    Regards
    Saurabh Mishra

  • 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

Maybe you are looking for

  • How to use "Search Forum"?

    Hi, I am trying to understand why any term I search in this forum delivers 0 results. Is "Search Forum" closed, am I doing something wrong, or what?!? Cheers, Ananisi

  • Sound card advice to a MacBook Pro

    I am looking to purchase a soundcard for my MacBook Pro. I am going to be using my laptop for a moderate amount of DJing while also using the M-Audio products to go along with it. Will eventually get to hooking up two ipods and mixing with the two th

  • Strange image border / bright edges on full screen preview

    Hi, I'm getting strange image borders on full screen preview. I've taken a photo to show this effect. Its noticebly wider on the left and right edges compared to top and bottom. Anyone know how to turn this border off? http://www.oriontransfer.co.nz/

  • When opening numbers why do all spreadsheets open

    upon opening numbers, all of my saved numbers files open.  why is that happening and how do i stop it

  • Java and SQL #2

    Hi all, Please could someone give a sample code of how to connect java to SQL. Thanks in advance for your help. Best regards. Saadi Monla