cancel
Showing results for 
Search instead for 
Did you mean: 

how to call an interface os SAP PI using a RFC in R/3

Former Member
0 Kudos

Hi all!!

I want do call an interface using an RFC for that purpose. So for that i did next actions:

- In R/3:

--> Create a Porgram to get some parameters. RFC is called by this program.

--> Empty RFC.

- In SAP PI:

--> Import the RFC to get the inbound structure to mapping in the Integration Repository

--> TRY to create a communication chanel in the Integration Directory and my problem is here.

I use RFC as Type Adapter, and RFC as Message and Transport protocol

I need to fill RFC Server Parameters, so i wrote Applicattion Server as SAP PI server, and i really dont know what gateway i should use and What is Program ID??.

There is maybe an transaction in SAP PI to declare Program ID and gateways?

Thanks in advance

Regards

Edited by: Antonio Valladares Fernandez on Sep 29, 2011 11:02 AM

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

I solved it, it was a Sender agreement problem.

Thanks a lot

Former Member
0 Kudos

Hi all!!

First of all thanks very much !

Both were right i forget create RFC conexion in SM59, but now is done and tested.

Right now i got a issue rated with that. In SM58 (of R/3) i can see this error:

Commit fault: com.sap.aii.af.rfc.afcommunication.RfcAFWException: senderA

I dont know what is this.

Thanks a lot

Former Member
0 Kudos

Hi,

>>I use RFC as Type Adapter, and RFC as Message and Transport protocol

I need to fill RFC Server Parameters, so i wrote Applicattion Server as SAP PI server, and i really dont know what gateway i should use and What is Program ID??.

That is you want to call RFC from the sender SAP system,

Create one RFC sender Communcation channel and give the SAP sender details like hostname,client,logon details.

Gateway you can find from tcode "smgw" of sender system

>>What is Program ID??.

Program ID is a unique identifier which is used to call the remote system.

>>There is maybe an transaction in SAP PI to declare Program ID and gateways?

You have to create one RFC destination of type T in sender system and give the same program ID which you have mentioned in sender RFC communication channel.

The Program ID that you have mentioned in communication channel and in RFC destination must be same.

Regards,

Sunitha

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

In R/3:

You need to create an RFC Destination (SM59) of Type T. The details of this RFC Destination should match your RFC sender in ID. Program ID is just an identifier, you can choose a name of your liking. Now as for the gateway, it is in the format of sapgwXX where XX is the system number. See SMGW for gateways.

In ID:

Create the RFC sender once you are done with the config in R/3

Hope this helps,

Mark