cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in RFC to file scenario

Former Member
0 Kudos

I have created the RFC to file scenario. i have created a program in which i call the RFC FM. I have created a tcp/ip connection for the R/3 system where i have created the program. But when I execute the program the program goes for a dump in the call function.

-


>>>CALL FUNCTION 'ZTEST_RFC_TO_FILE' DESTINATION 'RFCTOFILECHNARUN'

EXPORTING

name = 'ARUN'

rno = '581'

TABLES

details = details.

i have tried this scenario thrice and everytime it goes for a dump in the same place. i would appreciate your valuable suggestions

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Just check whether your RFC Destination is working or not. You can check this through SM59- Test connection or remote logon.

If possible please provide error analysis of ABAP DUMP.

Warm Regards,

Gouri

(Award points if useful )

Former Member
0 Kudos

the RFC connection is not working:

The following are the steps how i created it.

steps

1 RFC destination

2 check registered server program

3 program id (same is used in configuration also )

4 gateway host and servive - i got it from transaction rz70

i didn't do anything in logon/security and special options

is there anything else that should be configured

Former Member
0 Kudos

In the gateway host and gateway service write the values of your "Application system" - business system (not the XI server)

I think this will solve your problem.

Warm Regards,

Gouri

(Award Points if useful )

Former Member
0 Kudos

Hi,

did you mention same register program name in RFC sender communication channel???? It should be same.

there is nothing wrong in ABAP now as your RFC is itself not working.

Regards,

Gourav

Former Member
0 Kudos

yes I have used the business system and not the XI server

henrique_pinto
Active Contributor
0 Kudos

Have you activated the sender RFC adapter in XI which conects to that RFC Destination? I needs to contain the same information of RFC Destination in the upper part (host name, host gateway, Program ID) and below that, the normal log on information (host name, system ID, system number etc.).

Also, what is the output for the Connection Test in SM59 for your RFC Destination? Does the test goes ok? If not, the problem is there and not in ABAP.

Regards,

Henrique.

Former Member
0 Kudos

Hi,

Call RFC in background.

code would be.

-


CALL FUNCTION 'ZTEST_RFC_TO_FILE' in background

DESTINATION 'RFCTOFILECHNARUN'

EXPORTING

name = 'ARUN'

rno = '581'

TABLES

details = details.

-


Regards,

Gourav

---

<i>Reward points if it helps you</i>

Former Member
0 Kudos

it didn't work gourav. do you have any other suggestions

henrique_pinto
Active Contributor
0 Kudos

Hey Arunkumar,

actually the code is almost like what Gourav said, but he missed the word <b>task</b>.

It should be something like:

> -


> CALL FUNCTION 'ZTEST_RFC_TO_FILE'

> in background task

> DESTINATION 'RFCTOFILECHNARUN'

> EXPORTING

> name = 'ARUN'

> rno = '581'

> TABLES

> details = details.

> -


If you don't use "in background taks" you'll generate a synchronous RFC and in this case, it'll expect a response message, which is not sent by XI and hence you get the dump.

Check this info for further reference:http://help.sap.com/saphelp_nw2004s/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/frameset.htm

For XI integration, you should use either tRFC (for async inbound interfaces) or sRFC (for sync inbound interfaces).

Regards,

Henrique.

Former Member
0 Kudos

yeah I figured it out from the syntax --thx