Problem using SAP Connector in Win 2k3 x64 - No Data is returned on BAPIs

Hi,
During the tests of migration to a 64 bits environment we encountered some problems with the connection to the SAP server.
The first problem was that the librfc32.dll library was a 32 bit library, so application could not run in x64 mode.
We downloaded the official x64 library from the Support Portal (https://websmp206.sap-ag.de/support > Downloads >
Support Packages and Patches > Entry by Application Group > Additional Components > SAP Kernel > SAP KERNEL 64-BIT > SAP KERNEL 6.40 64-BIT >
SAP KERNEL 6.40 64-BIT > Windows Server on x64 64bit > #Database independent >  librfc_66-20001176.sar, and extracting file librfc32.dll a x64 dll).
Using this x64 dll we finally could test the application in 64-bits mode (the purpose of the migration) testing its runtime behavior,
where my current problem is.
When connecting to the SAP server all BAPI's we test are always returning an empty data results.
We have no errors nor exceptions from the SAP .NET connector, only the results come empty when they shouldn't.
When testing the same application but linked to the SAP 32 bits library (application runs in 32-bit mode), invoking the same BAPI's
(using the exactly the same code and parameters) we got the correct response from the BAPI, i.e., non empty results.
We already tested a set of BAPIs and always with the same result, in x64 we got no data, in 32-bits we got the information.
Does anybody know what can be causing this misbehavior? What can we do to make application run correctly in x64 mode?
Here some additional information about the Operating System: Microsoft Windows Server 2003, Standard x64 Edition, Service Pack 2 (with all windows updates installed).
Best regards,
João Portela on behalf of Manuel Dias

Maybe your application isn´t run in x84
#Go to properties of your project ->Build -> changed platform target of "Any CPU" to "x86"
#Copy these libraries from our 32-bit environment :
*SAP.Connector.dll
*SAP.Conector.Rfc.dll
*librfc32.dll
*msvcp71.dll
*msvcr71.dll
In 64 bits environment:
1. librfc32.dll to C:WINDOWSsystem
2. msvcp71.dll to C:WINDOWSsystem32
3. msvcp71.dll and  msvcr71.dll to C:WINDOWSSysWOW64
4. SAP.Connector.dll and SAP.Conector.Rfc.dll to C:WINDOWSassembly (DRAG)

Similar Messages

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • Problem using JDBC Connector

    Hi,
    I have problem connecting to MS SQL Server using the JDBC Connector. I have 2 main questions, one is on the DQE and the other is on user mapping.
    I have a created a JDBC System Landscape using the portal component com.sap.portal.systems.jdbc.
    Following are the properties I have set and also I have listed where I am finding propblems.
    - User Management
    User MApping Type : Admin, User
    - Connection Properties
    Connection Timeout: 1000
    Connection URL: jdbc:microsoft:sqlserver://10.7.1.5:1433;DatabaseName=SAPEP
    Driver Class Name: com.sap.portals.jdbc.sqlserver.SQLServerDriver
    (Here I do not know whihc driver to use. Do I have to use the above one or this one com.microsoft.jdbc.sqlserver.SQLServerDriver. Anyway, both of them Did not work)
    - Distributed Query Engine (DQE) (What is this, and what Parameters I need to pass here)
    Also, While doing the user mapping, we need to provide the username and password. What username and password is that? Is it the DB user name and Password?
    Any help will be well appriciated.
    Thanks and regards,
    Babu

    Hi Babu,
    Here's what's needed in the system (examples are from my system):
    CONNECTION PROPERTIES:
       -- Connection URL: jdbc:sap:sqlserver://p031617:1433;DatabaseName=pubs
       -- DRIVER CLASS NAME: com.sap.portals.jdbc.sqlserver.SQLServerDriver
       -- VALIDATE CONNECTION: yes
    USER MANAGEMENT:
       -- USER MAPPING TYPE: admin, user
    DQE: Put in admin user/password (DQE is for distributed queries between multiple, heterogeneous databases, but you still need to use it for simple queries)
    Create an alias
    Go to User Administration and set user mapping for the admin user
    Test connection
    Each user that access the system will need user mapping.
    Hope this helps.
    Daniel

  • Microphone problems with Audigy 2 ZS/win 7 x64

    Hello.
    I have very common problem with my soundcard audigy 2 ZS on windows 7 x64 with 8gb RAM. A week ago installed win 7 (was xp before) and noticed that my mic is not working. When I turn on microphone in output device i hear crystal clear sound from headphones, as input device it is not working properly. After reboot it don't work, no reaction on any changes. Usually after 5-20 mins I can hear signal from it (even when I'm not doing anything). Still sound quality is terrible, lots of noises and bugs. So I can't use it. After reboot mic not working again.
    My microphone is fine, soundcard also worked on XP without problems (almost all A2ZS users have same problem). The latest drivers was installed on clean, fully updated Win 7 Ultimate. Tried danielK pack. Still no results, this is about 2 years old problem with drivers and I want to know any realistic way to solve it. All post on forum are outdated, or don't have any useful info.

    Krookut,
    Try these suggested steps when cleansweeping and reinstalling. They may help make the reinstall more successful:
    http://us.creative.com/support/kb/ar...asp?l=2&sid=72
    Jeremy

  • Problem using instant client with Win 7

    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.

    user1931557 wrote:
    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.
    If the characters only appear on certain clients, then they are NOT being "replaced ... in the database".  What you are seeing is an issue with presentation, not data.

  • How to pass input parameters to ZRFC using sap connector 3.0

    Hi,
    In the connector 2.0 we were passing parameters (vendor# as input) to rfc as ( eg: rfc_name(I_vendor, E_VendorTBL) and able get the results in the output table .
    How do we do this using new NCO3.0.
    Thanks,
    Rajender

    S0008226571 wrote:>
    > I have implemented an example similar to the above which stores the results of a table in a .net DataTable. I am trying to bind the DataTable to a DataGridView but the DataGridView is simply blank.
    >
    >
    >                
    DataTable dt = svc.getTableData("crmd_orderadm_h");
    >
    >                 bindingSource.DataSource = dt;
    >                 dataGridView1.DataSource = bindingSource;
    >
    >
    > Any ideas on why the DataGridView is empty?
    For the benefit of others here, I resolved the problem by examining the properties of the datagridview control. In this case, the datagridview control binding property was being set in the visual studio designer and for some reason was not able to be set at runtime. I removed the binding property in the visual studio property window and the problem was resolved.
    Thanks for those who contributed answers to this issue.
    Edited by: Mike Powell on Mar 1, 2011 3:30 PM

  • How do you overcome problems using Photoshop Elements with Win 7 and Eyefinity display?

    I have a 3 screen Eyefinity setup on a PC running 64bit Win 7 with 16gb RAM and an AMD Radeon 7950 graphics card and Phenom II x4 processor.
    I struggle to get a stable PSE10 to work on this setup.
    I bought a combined set of Photoshop and Premier Elements 10 and although installed it always crashed when I saved images with the error message "Adobe Photoshop Elements 10 has stopped working". I recently did a fresh install of Windows 7 and decided I had to solve the Photoshop problem.
    I installed Premier 64 bit version from disk 2 and Photoshop Elements from disk 1 and then ran compatability checker. Under compatability settings for Win XP srv pack 3 it starts although with some toolbar errors and top and bottom of screen transparent instead of solid. I can save files worked on but then still get the error when I exit Photoshop Elements.
    Has anyone had similar and solved the problem? Tech Support said my s/w was too old and unsupported without a service contract.

    There should be no need for compatibility mode; pse10 is designed to run on W7. Try making a direct shortcut for the Editor. You can then launch the program directly from the desktop bypassing the welcome screen. This is generally better as the welcome screen leaves background processes running.
    Right click anywhere on the desktop and select New >> Shortcut
    Then click the browse button and navigate to:
    "C:\Program Files(x86)\Adobe\Photoshop Elements 10\PhotoshopElementsEditor.exe"
    Then click Next; then click Finish
    To launch, try right-clicking on the new desktop icon and choose “Run As Administrator” which often improves stability.

  • Problem using JRC 2.0 on Unix with xml data source

    Hello,
    I am experimenting difficulties using the JRC 2.0 (which I hadn't with the previous version) on a RedHat 4 machine. It takes 7 minutes (only 20 seconds on Windows) to create a pdf (1 page) from a simple report using an xml file as data source.
    It takes approximately 2 minutes when opening the report
          > reportClientDoc.open(REPORT_NAME, 0);
    then 4 minutes are required to connect the report to the xml data source
          > reportClientDoc.getDatabaseController().setDataSource(xml_ds, "", "");
    Have you got any clue on possible reasons for this issue ?
    Edited by: florian epiard on Jan 30, 2009 4:33 PM

    Hello,
    I am experimenting difficulties using the JRC 2.0 (which I hadn't with the previous version) on a RedHat 4 machine. It takes 7 minutes (only 20 seconds on Windows) to create a pdf (1 page) from a simple report using an xml file as data source.
    It takes approximately 2 minutes when opening the report
          > reportClientDoc.open(REPORT_NAME, 0);
    then 4 minutes are required to connect the report to the xml data source
          > reportClientDoc.getDatabaseController().setDataSource(xml_ds, "", "");
    Have you got any clue on possible reasons for this issue ?
    Edited by: florian epiard on Jan 30, 2009 4:33 PM

  • PSE 9 only works with old AIR version on Win 7 x64. Adobe please help.

    I'm hoping that Adobe can jump in and help here as there are some real versioning issues with the components that PSE 9 uses.  I've made a number of posts in the Adobe AIR forum (while I was figuring this out) and have exchanged with Adobe resources regarding my problems with Adobe AIR on Win 7 x64. They are still looking into it.
    PSE 9.0 comes with
         Adobe AIR 1.5.3.9130,
         Adobe Community Help 3.2.1.650 (an AIR app), and
         Adobe Photoshop.com Inspiration Browser 3.07 (an AIR app)
    That  Adobe AIR 1.5.3.9130 is an old version of AIR.  Since then there have been production releases 2.0.2, 2.0.3, and the latest 2.0.4.  If you upgrade to ANY of those Adobe AIR 2.x versions on your Win 7 x64 system, ALL your Adobe AIR apps will stop working.
    Adobe Community Help 3.2.1.650 is an out-of-date version and it continually nags you to update to the newer version.  If you do that, the install will first upgrade Adobe AIR to 2.0.4 and then upgrade Help.  Help will no longer work and all Adobe AIR apps will not work.
    I have installed and uninstalled PSE 9 about 25 times, I have installed and ununinstalled different versions of AIR over 50 times, etc. etc. to come to these conclusions.  I have tested Adobe AIR 2.0.2, 2.0.3 and 2.0.4 and NONE of them work on Win 7 x64.
    I'd really like someone from the Adobe PSE team to look into this.  I don't have time to spend hours on the phone with support.  I have described the problem and can offer more details as necessary.
    Thanks . . . . Brian

    Ankush,
    Thank for your two responses.  I have also received some more emails from Chris Campbell around AIR in particular so I'll try to work with him first.
    Thanks you for confirming that you do not see any errors after installing the updates.  Also that Adobe Help and Inspiration Browser both work after updating AIR to 2.0.4.
    I will answer your questions for now though:
    1. You asked:
    Have you tried this:
    Uninstall PSE 9, PRE 9 and any other CS5 Adobe application.
    Uninstall Adobe AIR.
    Install PSE 9 and run the updates of Adobe AIR and now use the applications?
    If it still gives error, uninstall Adobe AIR and then install the 2.0.4 version directly which is available on Adobe.com.
    What happends now?
         Yes, I have done all of these combinations a few times without success.
    2. The directories for Adobe Help and PIB look fine.  They are
        C:\Program Files (x86)\Adobe\Adobe Help
        C:\Program Files (x86)\Adobe\PhotoshopdotcomInspirationBrowser
    As I said, Chris Campbell has asked me for info and to run some tests.  I'll let you know how it works out.
    Thanks . . . . Brian

  • SAP Connector accessing Cluster Tables

    We are using OWB 10gR2 to extract data from SAP. We have no problems extracting 'normal' tables from SAP, but the problem we face is that when we try to extract what is known as Cluster Tables in SAP, the OWB generated ABAP code causes problems to the SAP application when run.
    Has anyone come across this? Can you extract Cluster Tables from SAP using the SAP Connector?
    For info. we are using SAP Connector R/3 version 4.7.
    Thanks in advance !

    May you give me a help!
    You have done what i m trying to do from 10 days...
    working the sap connector..
    What is the module function in sap you invoke from the Connector?
    The version of librfc32.dll you used is the recommended version and build?
    Thanks & Greetings
    Roberto from Rome

  • Calling BAPI with SAP connector

    Hello All,
    I've created an aspnet application using SAP connector and I'm calling BAPI_PO_GETDetail but I'm not sure to use it correctly because I have not all of fields in my datagrid (for example I cannot see the vendor name or code)...
    I think that I don't understand something ! 
    Thanks for your help (and sorry for my English) !
    here is my code :
        ' create proxy variable
                Dim proxy2 As New SapConnectPO.POSAPProxy
                ' get a connection
                Dim conn = SAP.Connector.SAPConnection.GetConnection(ConfigurationManager.AppSettings("connSAP"))
                conn.Open()
                proxy2.Connection = conn
                ' create structure variables
                Dim t1 As New SapConnectPO.BAPIADDRESS
                Dim t2 As New SapConnectPO.BAPIEKBE
                Dim t3 As New SapConnectPO.BAPIEKBES
                Dim t4 As New SapConnectPO.BAPIEKBESTable
                Dim t5 As New SapConnectPO.BAPIEKBETable
                Dim t6 As New SapConnectPO.BAPIEKBETable
                Dim t7 As New SapConnectPO.BAPIEKES
                Dim t8 As New SapConnectPO.BAPIEKESTable
                Dim t9 As New SapConnectPO.BAPIEKET
                Dim t10 As New SapConnectPO.BAPIEKETTable
                Dim t11 As New SapConnectPO.BAPIEKKN
                Dim t12 As New SapConnectPO.BAPIEKKNTable
                Dim t13 As New SapConnectPO.BAPIEKKOL
                Dim t14 As New SapConnectPO.BAPIEKKOTX
                Dim t15 As New SapConnectPO.BAPIEKKOTXTable
                Dim t16 As New SapConnectPO.BAPIEKPO
                Dim t17 As New SapConnectPO.BAPIEKPOTable
                Dim t18 As New SapConnectPO.BAPIEKPOTX
                Dim t19 As New SapConnectPO.BAPIEKPOTXTable
                Dim t20 As New SapConnectPO.BAPIESKL
                Dim t25 As New SapConnectPO.BAPIESKLTable
                Dim t26 As New SapConnectPO.BAPIESLL
                Dim t27 As New SapConnectPO.BAPIESLLTable
                Dim t28 As New SapConnectPO.BAPIESLLTX
                Dim t29 As New SapConnectPO.BAPIESLLTXTable
                Dim t30 As New SapConnectPO.BAPIESUC
                Dim t31 As New SapConnectPO.BAPIESUCTable
                Dim t32 As New SapConnectPO.BAPIESUH
                Dim t33 As New SapConnectPO.BAPIESUHTable
                Dim t34 As New SapConnectPO.BAPIPAREX
                Dim t35 As New SapConnectPO.BAPIPAREXTable
                Dim t36 As New SapConnectPO.BAPIRETURN
                Dim t37 As New SapConnectPO.BAPIRETURNTable
                ' Call method
                Try
                    proxy2.Bapi_Po_Getdetail(Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, "X", TextBox1.Text, Nothing, Nothing, Nothing, t1, t13, t35, t15, t12, t8, t31, t5, t4, t33, t10, t27, t25, t19, t17, t29, t37)
                Catch ex As Exception
                    Response.Write(ex)
                End Try
                ' result is bound to datagrid1
                GridView1.DataSource = t17
                GridView1.DataBind()
    conn.close()

    Hi Christine:
    Actually this is the correct forum...But don't expect to recieve an answer too soon...We all have works besides SDN...Also, at least talking about myself...I don't know the solution to your problem -:( But I'm sure that there other members that can help you out -;)
    Greetings,
    Blag.

  • SAP connector and VS2005

    Can SAP connector 2.0.1 be install in a pc which has only VS2005? I tried to install it and I received the following error:
    YOU MUST FIRST INSTALLVISUAL STUDIO NET 7.1 INTEGRATED DEVELOPMENT ENVIRONMENT (IDE).
    Can someone tell me if I can connect to SAP from VS2005 and how?
      Thanks in advance

    Hi,
    SAP Connector for MS .NET is not currently supported on Visual Studio 2005.
    Please check the article Using SAP Connector for MS .NET (NCO) in Microsoft Visual Studio 200 to learn a workaround that enables easy design-time connectivity to SAP back-end systems in Visual Studio 2005 by creating the connector proxies in Visual Studio 2003 and porting them to Visual Studio 2005.
    The link to this article is available in the Development Center under Additional Resources.
    Regards,
    Anne Tarnoruder
    SAP NetWeaver Product Management

  • Migrating sapwsdl file using SAP ES Explorer

    Is there any way to use the existing sapwsdl file which is created using SAP connector to SAP ES Explorer?
    Our aim is to use the SAP ES Explorer with Visual Studio 2005 version.
    Or is there any other way to migrate the application using SAP ES Explorer without using service registry.Please reply as soon as possible as we are not able to proceed further.
    Thank You,
    Juhi

    Hi Juhi,
    Pls. find my comments below-
    >>Is there any way to use the existing sapwsdl file which is created using SAP connector to SAP ES >>Explorer?
    Well, you need to understand that the working and underlying principles of Connector and ES explorer is different.
    1.SAP Connector is there to expose the RFC/BAPI from SAP ERP system and provide design time and runtime support for application development.
    2. ES explorer provides access to the services published into Service Registry, which can be consumed by application.
    >>Our aim is to use the SAP ES Explorer with Visual Studio 2005 version.
    >>Or is there any other way to migrate the application using SAP ES Explorer without using service >>registry.Please reply as soon as possible as we are not able to proceed further.
    Bottom line is, if you want to use ES Explorer you would have to ensure that there exists a Service Registry and Services are publish in that.
    Hope to clarify some of your points.
    Regards.

  • JCO or SAP Connector Framework

    Hello
    I have seen in these links that JCO is deprecated:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/40/003c41325fa831e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/89/8a185c148e4f6582560a8d809210b4/content.htm
    Developers are supposed to use SAP Connector Framework, but it seems that this is a Framework only useful from a Portal Application. What I want to do is to invoke RFCs in a R3 System from a webapp using struts. I have done this using JCO.
    Should I implement it using another solution?
    Thanks in advance

    Hi Marcos,
    You can, of course, use SAP JCO in simple Java Project by importing needed Jars.
    I provide you a sample of connection class with method that you can use for calling a function.
    You can use method "showFunctionParameters()" to test your connection...
    regards
    package echoFunction;
    import java.io.IOException;
    import java.util.Properties;
    import javax.swing.JOptionPane;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.JCO;
    public class JcoConnection {
         private final String REPO_NAME = "REPO_01";
         private JCO.Repository repository;
         private JCO.Function function;
         private JCO.Client connection;
         private JCO.ParameterList paramImport;
         private JCO.ParameterList paramExport;
         private JCO.ParameterList paramTables;
         public JcoConnection() {
              // constructor
         public void connect(String sapClient, String userId, String passWord,
                   String language, String server, String systemNumber) {
              connection = JCO.createClient(sapClient, userId, passWord, language,
                        server, systemNumber);
              connection.connect();
              repository = new JCO.Repository(REPO_NAME, connection);
         public void connect(Properties properties) {
              connection = JCO.createClient(properties);
              connection.connect();
              repository = new JCO.Repository(REPO_NAME, connection);
         public void disConnect() {
              connection.disconnect();
         public void useFunction(String functionName) {
              IFunctionTemplate ift = repository.getFunctionTemplate(functionName
                        .toUpperCase());
              function = new JCO.Function(ift);
              paramImport = function.getImportParameterList();
              paramExport = function.getExportParameterList();
              paramTables = function.getTableParameterList();
         public void execute() throws JCO.AbapException {
              connection.execute(function);
         public void setInputValue(String paramName, String valueInput) {
              paramImport.setValue(valueInput, paramName);
         public String toString() {
              return connection.getAttributes().toString();
         public static void main(String[] args) {
              JcoConnection sapConn = new JcoConnection();
              try {
                   sapConn.connect(Utilities.loadPropertyFile("logon.properties"));
                   sapConn.useFunction("STFC_CONNECTION");
                   sapConn.setInputValue("REQUTEXT", "Echo text");
                   sapConn.execute();
              } catch (IOException ex) {
                   ex.printStackTrace();
              } catch (Exception ex) {
                   ex.printStackTrace();
              sapConn.disConnect();
              JOptionPane.showMessageDialog(null, sapConn.showFunctionParameters());
         public String showFunctionParameters() {
              String paramText = "";
              paramText = "ECHOTEXT: t";
              paramText += function.getExportParameterList().getString("ECHOTEXT")
                        + "n";
              paramText += "RESPTEXT: t";
              paramText += function.getExportParameterList().getString("RESPTEXT");
              return paramText;
    package echoFunction;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Utilities {
         public static Properties loadPropertyFile(String filePath)
                   throws IOException {
              Properties properties = new Properties();
              properties.load(new FileInputStream(filePath));
              return properties;

  • SAP Connector iView

    Hi SDN,
    How to create SAP Connector iView in EP 7.0? I could not find any iView template on this.
    Thanks,
    Vamshi

    Hi Vamshi,
    Visit the help Links,
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/f5/eb51610e6a11d7b84900047582c9f7/content.htm">Creating iViews over Enterprise Applications and Databases</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/f5/eb51650e6a11d7b84900047582c9f7/frameset.htm">Creating SAP Connector-Based iViews</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/content.htm">Creating SAP Application iViews</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/7a/acd8403e37762ae10000000a155106/frameset.htm">Error While Creating iViews Using SAP Connector</a>
    I hope these links are helpful for you...
    Regards
    Prakash T

Maybe you are looking for