Architecting, installing and maintaining your SAS environment

Unable to connect SAP RFC from SAS

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 18
Accepted Solution

Unable to connect SAP RFC from SAS

Hi All,

 

I am trying to get connected from SAS to R/3 engine using SAS/Access to R3 and when I executed the libname statement, here is the error:

 

ERROR: Image SASSAP   found but not loadable.
ERROR: Operating system error 126 occurred.

 

I created SAP server on SAS SMC and corresponding library also. Any advise pls...!

 

Regards,

Sundeep

 

 


Accepted Solutions
Solution
‎08-01-2016 07:46 AM
Occasional Contributor
Posts: 18

Re: Unable to connect SAP RFC from SAS

Hi All,

 

Thanks all for your suggestions...!

 

I got the solution. After configuring the environment variable in the server pointing to librfc directory where dll's are stored. It worked out...

 

Regards,

Sundeep

 

View solution in original post


All Replies
SAS Employee
Posts: 13

Re: Unable to connect SAP RFC from SAS

Sundeep,

 

   This means SAP is a valid library type but the SAP libraries are not available.  This can mean that they are not downloaded or that they you did download them and thay are not found.  

 

The Post-Installation Instructions for SAS/ACCESS 9.4 Interface to R/3 say:
---------------
SAP System

Release
· SAP Kernel Release 4.6C or higher
· 64-bit SAP Unicode RFC library, Release 7.20 or higher

The SAS/ACCESS Interface to R/3 software for Windows and UNIX requires the 64-bit SAP Unicode RFC library, Release 7.20 or higher, which is provided by SAP AG.

As of the end of maintenance for SAP Release 7.10 (March 31, 2016), SAP no longer supports the classic RFC SDK or the classic RFC library. This end of maintenance also applies to SAP Releases 7.11 and 7.20. A transition to the SAP NetWeaver RFC Library should start immediately.

The SAP NetWeaver RFC Library supports all SAP NetWeaver and R/3 systems and supports Unicode and non-Unicode. Refer to SAP note 1025361 for installation instructions, support information, and details about the availability of the SAP NetWeaver Library.

The preferred method is to download the Unicode SAP RFC SDK because it includes all of the necessary files that allow the connection from SAS to SAP.

 ------------

If you have downloaded the librarys you need to check that they are available to the data step.  On Windows this is the C:\Windows\Sytem32 folder.  

 

http://support.sas.com/documentation/installcenter/en/ikr3cg/66652/PDF/default/config.pdf 

and 

SAP Note 413708 for the current version or the DLLs 

 

Andy 

 

Super User
Posts: 7,809

Re: Unable to connect SAP RFC from SAS

If this is on Windows, error 126 points to a dll that can't be found. Tt might be an incomplete installation of either SAS or the SAP client. Or you have a 32/64 bit inconsistency.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 18

Re: Unable to connect SAP RFC from SAS

Posted in reply to KurtBremser

Hi Kurt,

 

Yes this is on Windows. I configured SAP server details on SAS management console and library also.

 

Created group also in which user was configured under Accounts tab.

 

Is there any activity pending to establish connectivity?

 

Regards,

Sundeep

SAS Super FREQ
Posts: 299

Re: Unable to connect SAP RFC from SAS

Hi,

 

Andy already gave some great input.

 

To add on to that, the error you are seeing can occur in cases where the additional libraries needed, are not set up. Additional shared libraries are needed for the UNICODE RFC library.

 

SAS/ACCESS to R3 uses SAP's shared libraries; the location of the RFC shared libraries has to be added to the environment variable for your OS.

 

See Notes 522119, 566334 and 519753, 413708 

 

Post-installation instructions for Access to R3:

http://support.sas.com/documentation/installcenter/en/ikr3cg/66652/PDF/default/config.pdf

 

If the problem persists, I believe Tech Support would be the next step to take. The experts can guide you in the right direction.

 

Hope this is helpful to you.

Thanks

Anja

Solution
‎08-01-2016 07:46 AM
Occasional Contributor
Posts: 18

Re: Unable to connect SAP RFC from SAS

Hi All,

 

Thanks all for your suggestions...!

 

I got the solution. After configuring the environment variable in the server pointing to librfc directory where dll's are stored. It worked out...

 

Regards,

Sundeep

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 923 views
  • 0 likes
  • 4 in conversation