cancel
Showing results for 
Search instead for 
Did you mean: 

Error in RFC Sender

Former Member
0 Kudos

Hi,

We are implementing a BAPI to send data to PI. We have created the following

IN R\3

In SM59 create a new RFC connection type T (TCP/IP).

Technical settings:

Activation type: registered server program

PROGRAM_ID: test_program_id

Gateway options:

GAteway host: Host of your R\3 system

Gateway service: Gateway of your R\3 system

In XI

In your RFC Sender Communication Channel:

RFC Server Parameter:

Application Server: Host of your R\3 system

Application Server Service: Gateway of your R\3 system

PROGRAM ID: test_program_id

RFC Metadata Repository parameter

Message Serer: Your R/3 host.

Message Server Service...

SystemmID...

Use a user with authorization to do RFC calls.

Client...

Language...

After we finish setting up your CC, save and Activate.

Now check the RFC in R/3

When we run the program in SAP( which contains the BAPI ) for the first time, it runs & send the data but for next run it gives error in SAP side(SM58) : Commit fault: com.sap.aii.adapter.rfc.afcommunicat ion.RfcChannelMismatchE

Message no. SR053

Can any one help us to solve the RFC connection issue

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

In SAP the gateway address should be of SAP not PI

Former Member
0 Kudos

You know for bapis you need to commit once the operation is done.

May be in this case after the RFC call is performed commit is not handled looks like as a result it is not able to make second call.

Check for commit handling in BAPI

Rajesh

Former Member
0 Kudos

Thanks for the email

This is Z Bapi and does not have any commit. Data is transfered to PI . There is no d/b update.

Do we need to put commit for this also?

Pls advice.

Former Member
0 Kudos

add commit and check it out ( just a try)..

Rajesh

Former Member
0 Kudos

Sorry... I just check the code..it has "Commit work"

Is this enough or i need to do BAPI_COMMIT..

Thanks..

prateek
Active Contributor
0 Kudos

Commit work should be enough. Do you use business system for your RFC system? Could you check if you have proper adapter specific idntifiers attached to it.

Regards,

Prateek

Shabarish_Nair
Active Contributor
0 Kudos

make sure your program id is unique.try changing it.

Ref:

RFC adapter - /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step

trouble shooting rfc/soap -

/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009