cancel
Showing results for 
Search instead for 
Did you mean: 

Executing ABAP program in RFC to File

Former Member
0 Kudos

Hi,

In the RFC to File, the RFc is called in the ABAP program.

So when i am executing the ABAP program for the 1st time it doesnt reach PI, only when clicking the execute button multiple times execution reaches PI and a message ID is created along with the required data.

what is the problem? why is it not reaching PI when i execute at the first time itself?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

U r scenario is RFC->XI->File.

First u have check RFC destinatios wheter it working or not.

1) U r program ID should match with RFc destination and RFC adapter configurations.

2)should write commit work at last in the Abap Program.

3)Refresh the Cache objects using SXI_CACHE and below urls.

http://XXXXXXX:50000/CPACache/refresh?mode=full

http://XXXXXX:50000/CPACache/refresh?mode=Delta

4)Then run ur program.It will sent successfully

5)Check in SM58 .

Thanks

Ravi

Former Member
0 Kudos

Hi Ravi,

Thanks for the response.

>>> First u have check RFC destinatios wheter it working or not. 1) U r program ID should match with RFc destination and RFC adapter configurations.

I have tested the RFC destinations and it works fine. I have also given the same Program ID in adapter configuration

>>>2)should write commit work at last in the Abap Program.

Commit is present at the end of the ABAP program

Cache refresh was also done. But still facing the same problem.

>>>5)Check in SM58 .

And we are getting the following errors randomly:

Server repository could not create function template for 'ZFN_EXTRACT

Commit fault: com.sap.aii.adapter.rfc.afcommunication.RfcChannelMismatchE

Former Member
0 Kudos

Hi,

The problem was resolved by increasing the PI support package from SP06 to SP09.

Now the program reaches PI for the first time execution itself.

Thanks,

JJ

Former Member
0 Kudos

Hello,

To catch the error try to set up break point in your abap program and debug work of RFC function from input parameters to output. During debugging draw your attention at next points: clearing content and header of internal tables, rollback and commit operations and of course logic of filling result table(s) of your RFC function.

BR,

Dzmitry

Former Member
0 Kudos

Hi Dzmitry,

Thanks for the response.

in ECC if i use breakpoints and do the testing, it works fine.

The porblem is only when calling the RFC from PI side. If the C.C is triggered in PI only the 4th or 5th attempt reaches ECC, the connection is not happening at the first time itself when we trigger the CC in PI.

Former Member
0 Kudos

Hi,

Could anybody suggest me some solution for this. i m still facing the same issue.

This is the case with synchronous method (File - RFC - File) as well and also in QA also we are facing this error.

Regards,

JJ

Former Member
0 Kudos

Hi,

Any helping hand to solve the problem.