cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

0 Likes
344

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

João did you solved this??? I am experimenting the same trouble and i had tried all the possible solutions but nothing works.

Former Member
0 Likes

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)

Former Member
0 Likes

Hi,

SAP .NET Connector 2.x or 1.x are by design 32bit only and therefore cannot be used within 64bit applications. However, it can be used by 32bit applications running under wow64 on 64bit Windows.

Hope it helps,

Regards,

Guangwei Li

Former Member
0 Likes

Hi João,

the SAP .NET Connector doesn't exists in a 64 bit version nor it is possible to enable a 64 bit support by using the 64 bit RFC library instead of the original 32 bit version. A application using .NET connector is always a 32 bit application but can run in a 32 bit process of a 64 bit operating system - thats what you observed.

Best Regards,

Axel Mueller