cancel
Showing results for 
Search instead for 
Did you mean: 

class "CO_CRMFSCM_CRCOMM_NOTIFICATION" does not support the interface "IF_PROXY_CLIENT"

Former Member
0 Kudos

Hi Experts,

We are integrating CRM with FSCM credit management.

We are using SAP standard interface:

CreditCommitmentNotification_Out for this purpose.This is a async proxy to proxy scenario.

However, on testing the proxy from menu: proxy->test, we are getting a dump, the error is:

It was tried to assign an object reference (class

"CO_CRMFSCM_CRCOMM_NOTIFICATION", view "global") to an

interface reference (interface "IF_PROXY_CLIENT", view "global"). However, the

class "CO_CRMFSCM_CRCOMM_NOTIFICATION"

does not support the interface "IF_PROXY_CLIENT".

Can anyone please help.

-Thanks

Monika

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The error log says, program : is terminating at

Program                                 CL_PROXY_ADAPTER_TEST=========CP

Include                                 CL_PROXY_ADAPTER_TEST=========CM00E

Row                                     47

Module type                             (METHOD)

Module Name                             OUTBOUND_TEST

create object lr_proxy_client type (class_name)

  parameter-table lt_proxy_param.

Can anyone please help ? If more info is reqd, pls. tell me.

-Monika

former_member184681
Active Contributor
0 Kudos

Hi Monika,

How is your lr_proxy_client declared? Is it typed IF_PROXY_CLIENT, like this?

DATA lr_proxy_client TYPE REF TO if_proxy_client.

If so, change the declaration to:

DATA lr_proxy_client TYPE REF TO co_crmfscm_crcomm_notification.

This should make your code work fine.

Regards,

Greg

Former Member
0 Kudos

Hi Grzegorz,

Thanks for your reply.The proxy is an SAP standard, we are using standard SAP content for this integration.

The code is like this:

method EXECUTE_ASYNCHRONOUS.

SET EXTENDED CHECK OFF.

include sproxy_macros.

outbound_handler_init_1

'EXECUTE_ASYNCHRONOUS'

'CreditCommitmentNotification_Out'

.

outbound_handler_add_param

'OUTPUT'

OUTPUT

'0'

'CRMFSCMCRCOMM_NOTIFICATION'

'CreditCommitmentNotification'

'http://sap.com/xi/CRM/Global'

'CreditCommitmentNotification'

'http://sap.com/xi/SAPGlobal/Global'

.

outbound_handler_execute.

SET EXTENDED CHECK ON.

endmethod.

What needs to be done for this to work ?

Thanks,

Monika

iaki_vila
Active Contributor
0 Kudos

Hi Monika,

To avoid research an error in the abap code, have you tried to execute the test proxy for this interface in sproxy?

Regards.

Former Member
0 Kudos

Hi Inaki,

That is how I am testing the proxy, it is where , this dump is generated.

Regards,

Monika

Former Member
0 Kudos

Hi Grzegorz,

Yes, you are correct.

 

method

outbound_test.
data:
lr_proxy_client
type ref to

if_proxy_client,

 

The data declaration has been done as above.Now, this is SAP standard code, how do I solve the issue now ?

Thanks,

Monika

former_member184681
Active Contributor
0 Kudos

Hi Monika,

Sorry for the delay in my replies, I had no access to my computer last days. Check the SAP Note "1636250 - Runtime error occurs when testing outbound proxies" - it seems to solve exactly your problem:

Symptom

A runtime error occurs when testing an outbound proxy.

Reason and Prerequisites

Problem happens only with "old" proxies, which do not implement IF_PROXY_CLIENT.

Regards,

Greg