cancel
Showing results for 
Search instead for 
Did you mean: 

CNTL_ERROR when calling a SAP function

Former Member
0 Kudos

Hi,

I've been using for some time .NET SAP Connector to create client and server proxies.

A collegue of mine has created an RFC that is called

Z_YODA_CREATE_PM_NOTIFICATION.

After using the wizard to create the C# proxy I call the function and I get this exception:

-


SAP.Connector.RfcSystemException: Exception condition "CNTL_ERROR" raised.

at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)

at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn)

at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)

at SAPProxyDll1.SAPProxyDll1.Z_YODA_CREATE_PM_NOTIFICATION(String CODE, String DATE, String EQUNR, String HOUR, String PC, String USER, String& ADITIONAL_PARAM)

-


My collegue is able to call this function from excel using VBA and no exception is throwned, and the function runs correctly.

Is this .NET Connector fault? Am I doing something wrong?

Thanks in advance for any help given,

Luis Pinho

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I have the same error here. This RFC works fine in ASP and in VB 6, but in the test with vb.net. Ths erros happenned.

Any idea???

Former Member
0 Kudos

Hi,

Can you please give a detailed description on what the function module does and how it does? A piece of your VBA code that works?

Regards,

Guangwei

Former Member
0 Kudos

Hi, we found out the problem, the report sent an e-mail to a user, my collegue had it's e-mail defined, my user did't, so when I tried to execute it would give out an error, to my collegue no error was returned.

Thanks, no further help is required.