Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Multipe Sender RFC using same Program ID

Hi all,

I have RFC>XI>HTTP scenario. All confiruation has been done in R/3 and XI has ben done correctly.

Is it possible to use the same TCP/IP port Program ID created in SM59 (in R/3) for sending different RFC messages to XI. Meaning, in different XI RFC sender adapter communication channels, can I use the same Program ID.

When I tried, it work for one RFC, but when multiple RFC sender adapter uses same program ID..RFC program errors out in R/3 itself with error message - Commit fault: com.sap.aii.af.rfc.afcommunication.RfcChannelMismatchExcept.

Please help.

Thanks

Karthik

Former Member
Former Member replied

Karthik,

It is possible to send different messages from R3 to XI that use the one RFC destination and Program ID (in R/3) and the one Communication channel (in XI)

Assume that interfaces AAA and BBB have different structures

<u><b>SAP R/3</b></u>

<b>For interface AAA</b>

(1) Execute ABAP Z_AAA which

(2) Populates the internal table ITAB_AAA with structure ZST_AAA

(3) Calls the remote enabled function ZFN_AAA

(4) Passes the interface data in the tables statement

CALL FUNCTION 'ZFN_AAA' DESTINATION RFCCOMMON

EXPORTING

… … … = … … …

IMPORTING

… … … = … … …

TABLES

AAA = ITAB_AAA.

<b>For interface BBB</b>

(1) Eexecute ABAP Z_BBB which

(2) Populates the internal table ITAB_BBB with structure ZST_BBB

(3) Calls the remote enabled function ZFN_BBB

(4) Passes the interface data in the tables statement

CALL FUNCTION 'ZFN_BBB' DESTINATION RFCCOMMON

EXPORTING

… … … = … … …

IMPORTING

… … … = … … …

TABLES

BBB = ITAB_BBB.

Each function is called with the same destination RFCCOMMON

In SM59 point the RFC destination RFCCOMMON to your XI environment and provide a program id, for example ID_COMMON

<i><b>XI</b></i>

<b>(1) Configure the sender RFC Communication Channel</b> for example CC_COMMON and enter your SAP R/3 server parameters to include the program id ID_COMMON

<b>(2) Configure the Receiver Determinations</b> as follows

For interface AAA

Sender Service Enter your SAP R3 Business System for example R3PROD Interface ZFN_AAA (this is the SAP R/3 remote function)

Namespace urn:sap-com:document:sap:rfc:functions

Configured Receivers

Service Integration Process AAA

For interface BBB

Sender Service Enter your SAP R3 Business System for example R3PROD

Interface ZFN_BBB (this is the SAP R/3 remote function)

Namespace urn:sap-com:document:sap:rfc:functions

Configured Receivers

Service Integration Process BBB

<b>(3) Configure the Sender Agreement</b> as follows

For interface AAA

Sender Service R3PROD

Interface ZFN_AAA

Namespace urn:sap-com:document:sap:rfc:functions

Sender CC CC_COMMON

For interface BBB

Sender Service R3PROD

Interface ZFN_BBB

Namespace urn:sap-com:document:sap:rfc:functions

Sender CC CC_COMMON

Regards,

Mike

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question