on 05-31-2007 1:51 PM
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
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 )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.