cancel
Showing results for 
Search instead for 
Did you mean: 

RFC scenario

Former Member
0 Kudos

Hi guys,

i have a RFC to RFC senario like SAP send a rfc request i stop this call via java mapping and make a synch call to a strict service and got a response.

SENDER = SAP

Mapping : soap lookup

RECEIVER = SAP

Is it possible to handle this scenario via SAP PI? Because i got following error if i test it.

com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>

Kind Regards,

PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

It is possible

Can you please check whether you have imported the latest version of RFC(Target) into PI system?

Also check if the BAPI(RFC) exists in receiver system.

validate the below thread

https://scn.sap.com/thread/1173718

Answers (3)

Answers (3)

Former Member
0 Kudos

just to clarıfy

SAP > PI > SAP

Did you mean

SENDER AGREEMENT


sender: BS_SAP_PRD

interface: SI_BAPI_CUSTOMER_GET_DETAIL

RECEIVER DETERMINATION

sender: BS_SAP_PRD

interface: SI_BAPI_CUSTOMER_GET_DETAIL

receiver:BS_SAP_PRD

INTERFACE DETERMINATION

sender: BS_SAP_PRD

interface: SI_BAPI_CUSTOMER_GET_DETAIL

mapping:

SI_BAPI_CUSTOMER_GET_DETAIL <   MM  > SI_BAPI_CUSTOMER_GET_DETAIL_RES

RECEIVER AGREEMENT

sender:BS_SAP_PRD

receiver:BS_SAP_PRD

interface:SI_BAPI_CUSTOMER_GET_DETAIL_RES

correct? will this work?

thank you

Harish
Active Contributor
0 Kudos

Hi Peter,

You are right, you need configure in this way for SAP-->PI-->SAP flow.

Regards,

Harish

former_member184720
Active Contributor
0 Kudos

Yes. Peter.

And i hope you have created the BS_SAP_PRD  as AS ABAP type in the SLD.

Former Member
0 Kudos

Hi guys.

it doesnt worked. I got sender agreement not found exception.

SENDER AGREEMENT was created

sender: BS_SAP_PRD

interface: SI_BAPI_CUSTOMER_GET_DETAIL (asynch)


former_member184720
Active Contributor
0 Kudos

Hi Peter - Can you make the proper channel is configured in Sender agreement.

Please make sure that whatever the channel you have configured in the sender agreement,you need to start.

Former Member
0 Kudos

my question again,

does anyone seen a synch RFC to RFC (from same SAP system to same SAP system) .

Kind Regards,

PM


former_member184720
Active Contributor
0 Kudos

It's not a sync interface. It would be an Asynch RFC-RFC interface and in the mapping you are making a synch soap lookup.

Former Member
0 Kudos

Thank you

and how should a implement the configuration part

Sender Agreement

SAP
SI_RFC_SYNCH or ASYNCH?

former_member184720
Active Contributor
0 Kudos

it is an ASYNC interface. You are just making a soap lookup in the mapping.

Just a reference -

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0b6bb9d-7689-2c10-52a7-c3bd341d4...

Former Member
0 Kudos

Hello,

Scenario is certainly possible.

>>emote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>

This error can occur due to multiple reasons, some of them are already mentioned in below thread

https://scn.sap.com/thread/2031297

RfcClientException: functiontemplate from repos... | SCN

Thanks

Amit Srivastava