Skip to Content

PCMS connection to SAP using WDTLOGU.OCX

Dec 09, 2016 at 03:39 PM


avatar image
Former Member

We are trying to connect a third-party application (PCMS) to our SAP ECC 6.0 system. The PCMS application is often unable to re-connect to SAP after initially logging in to SAP successfully.

In order to connect to SAP, the PCMS application makes use of the same DLL files that come with the SAP GUI client (SAP Logon pad). The code in the PCMS application is written to call the SAP GUI’s “WDTLOGU.OCX” library files to establish the connection to the SAP system.

SAP Connection Object from PCMS using C:\Program Files (x86)\SAP\FrontEnd\SAPgui\WDTLOGU.OCX file, SAPLogonControl class (SAPLogonControl.newconnection)

Using this connection object, the parameters are populated from PCMS System Settings( APP Server, System Code and System Number)

This connection object also gets additional parameters for SAP user name and Password.

With all the parameters populated we call this objects Logon function invoked using the syntax SAPConnection.LogOn(0, True)

About 10-20% of the times we get this error message from the logon control - RFC_ERROR_SYSTEM_FAILURE

On the SAP side, we do not even see this re-connection attempt coming from PCMS application. Looks like the connection fails at the SAP GUI client side itself.

Can someone please tell what could be wrong.


SAP Basis

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Dec 09, 2016 at 04:41 PM

pcms-error.gifpcmslog20161011113315.txt Added the screenshots from PCMS

10 |10000 characters needed characters left characters exceeded