cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Adapter Settings.

Former Member
0 Kudos

Friends ,

I am working on a RFC to XI to Mail senerio. 2 diff adapters are required for this, as we know. From r3 perspective, I have a se38 program to run the RFC.

see the code below!

report zrfc_adapter.

data: it_final1 type standard table of zrfc_str.

*Cns :

call function 'ZRFC_XI'

  • EXPORTING

  • bill_doc = 'ABCD'

tables

it_final = it_final1.

Clear it_final1.

Refresh : it_final1.

The FM has been made RFC by selecting the Remote Function Call in

FUNCTION ZRFC_XI.

*"----


""Local Interface:

*" TABLES

*" IT_FINAL STRUCTURE ZRFC_STR OPTIONAL

*"----


it_final-NAME = 'Arnab Mondal'.

it_final-TELEPHONE = '12345'.

it_final-ADDRESS = 'abcdxyz'.

append it_final.

ENDFUNCTION.

Now there is a setting needed in sm59. I hav read several blogs and wikis, and every where they are asking to make a TCP/IP connection where I hav to make a program ID . The program ID name can be 'anything'

Now friends I have done this, and select the activation type as Registered Server Type.

Then as per the snote : 730870 ,page 13, " To check which Program IDs are registered at the SAP Gateway the

gateway-monitor can be used via transaction SMGW. Select Goto ->

Logged on Clients. Registered RFC-Servers have a System-Type of

'REGISTER_TP'. The Program ID of the registered RFC-Servrer can be

found in column 'TP name'. Unfortunately the list within SMGW only

shows the truncated version of the Program ID (column 'TP name'). To

get the full name, the details of an entry have to be selected. As an

alternative the report RSGETALL_REG_SERVERS can be executed in

transaction SE38. The output of this report will show the full names

of the Program ID in column 'Registered PROGID'. This functionality is

also available in the function module GWY_READ_CONNECTED_SYSTEMS which

can be executed in transaction SE37.

So as per instruction when I tried to execute the program RSGETALL_REG_SERVERS, I couldnt find it in se38.

Now the biggest query is sm59 is not taking any arbitary PROGRAM ID name!

I tried to copy a standard tcp/ip connection: GFW_ITS_RFC_DES and the program id in this is IGS.DTR, which is working perfect. I can copy and use this,, but this is not the solution. Pls some1 help me, where am I going wrong???

Thanks and Regards,

Arnab

PLs Help !!!

Arnab

Edited by: Arnab Mondal on Sep 10, 2008 7:39 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member190389
Active Contributor
0 Kudos

Also you need to add COMMIT WORK after you make a call.

......

call function 'ZRFC_XI'

EXPORTING

bill_doc = 'ABCD'

tables

it_final = it_final1.

COMMIT WORK.

...

Former Member
0 Kudos

Hi u need to create a TRFC in SM59 and the program ID should be same as the sender adapter program ID.

suppose u r RFC is XI_CONID

then u need to write a report and calling the FM as

data: it_final1 type standard table of zrfc_str.

*Cns :

call function 'ZRFC_XI' destination 'XI_CONID'

EXPORTING

bill_doc = 'ABCD'

tables

it_final = it_final1.

Clear it_final1.

Refresh : it_final1.

Former Member
0 Kudos

Jayashima,

do u want me to put the logical system name in the *destination '_ _______' or the SM 59 TCP/IP name ??

Got to be a bit clear here!!!

is 'XI_CONID' the logical name of the receiver system or the TCP IP name that i have created?? in the sending system?? My concept is not clear !!

Pls comment

Arnab

Former Member
0 Kudos

Hi,

You can Follow this Procedure to get Success in Test Connection

1) Create RFC Sender Channel and mention the Program ID(Any thing that u Want)

Activate all the Objects here.

Now goto SM59 in R/3 and create TCP/IP connection and mention the Same Program ID name here which u entered in RFC Sender Channel creation.

Save and test Connection. and there by check in SMGW for your Registered Program ID also

Regards

Seshagiri

Former Member
0 Kudos

Sesh, Thanks a lot...All these Days, I was first creating the SM59 connection, and then the CC. Now I careted a CC and the Sm59 connection.

Next query is , is nderstanding ok about the se38 program and the RFC. Sowuld I execute the program and check the SXMB_MONI....for what ever messege it gives!!

Thanks a lot yaar!!

Arnab

Former Member
0 Kudos

Hi,

Yes, we have to Trigger the RFC and there by we need to check in XI for the same whether it is reached or not.

How to Trigger BAPI From R3 ToXI

Regards

Seshagiri

Former Member
0 Kudos

Sesh,

1 more question 2 u. Can you tell me is there ant tool in r3 to confirm the passage of RFC data out of the system , just as we check in we02/05 for idocs.

Also, can I see the incoming of RFC in XI server in the transaction idx5 apart from sxmb_moni. Is there any funda of importing the RFC just as we do for idocs in idx2 apart from importing in Integration Repository - !!

Thanks a lot!

Arnab !!