Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to call a RFC-enabled function module

Former Member
0 Likes
17,289

Hi All,

We have 2 systems; system 1 (client 420) and system 2 (client 600).

I just want to know that how can a RFC-enabled function module be called from one system (420) whereas the RFC-enabled functio nmodule exists in the other system (600).

Also, as per my understanding any RFC-enabled function module is a BAPI. Please confirm.

Please help.

Thanks & Regards,

Namrata

4 REPLIES 4
Read only

Former Member
Read only

Former Member
0 Likes
7,078

Hi,

RFC enabled FM can be called from anther system:

From 420 we can call RFC FM residing in 600, through RFC destination cretaed in SM59 tcode in 420 client.In sm59, maintain the entries of destination system i.e 600.and test the connection whether it is succesful or not/ through remote logon.

suppose in 420 client , in sm59 u have cretaed with destination DEST600 say.

In 420, u can code as below..

Call 'RSSDK_LOGSYS_REMOTE_CHECK' destination DEST600

exporting

I_QSYSTEMNAME =

tables

E_T_MSG =

there exist difference between BAPI/RFC.

BAPI always return messages / RFC doen't.

BAPI follows ceratin naiming convetions while defineing the parameter structures ( ex BAPI_..)

In bapi , no dialog screens can be called.

In bapi, statements liek COmmit work/Call Transaction/Submit...shouldn't exit.

Bapi's are implemented as FM's and are stored as methods in Business Object repository.

another Ex for RFC

RSAN_LOGSYS_DETERMINE

Revert back if any issues,

Reagrds,

Naveen

Edited by: Naveen Deva on Feb 18, 2009 9:54 AM

Read only

Former Member
0 Likes
7,078

Hi Namrata,

Check this useful link for calling RFC, it will surely help just go through it.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf

also, as per my understanding any RFC-enabled function module is a BAPI.

No, All BAPIs are RFC enabled but the reverse is not true.

BAPI_PO_CREATE is RFC enabled, but it a BAPI (check the Attributes tab, radio button Remote-enabled FM)

RFC_READ_TABLE is also RFC enabled but not a BAPI

Sachin

Read only

Former Member
0 Likes
7,078

HI,

All BAPIs are rfc enabled. And to call rfc enabled function module folloe the below syntax.

CALL FUNCTION '<FM Name>'

DESTINATION <destination-system>.

Thanks,

Asit Purbey