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

RFC help!

Former Member
0 Likes
532

Hi Experts,

Can anyone explain me about the Rfc usage in our normal abap editor how can we call and create our own RFC ..plz it is urgent...

thanks,

Shahed Khan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
490

Hi Shahed,

RFC: is the Remote Function Call it is a call to the function module running in a system different from the collers..

we hav 3 types of rfcs 1. Synchronous RFC.

2. Asynchronous RFC

3. transactional Rfc.

Synchronous RFc:

while sendin the request from one sever to the other it will wait till the status is recieved.

Asynchroous Rfc:

while sending the request frm ione server to the other it will not wait for the status .

Transactional Rfc:

it sends the request from one server to the other if the server is down it will store the data and when the server is up it again sends the request.

Rfc logs can be checked in Sm58.

to make settings for rfc go tcodeSm59.

to create our own rfc connection:

goto se37 create function group and then create a function module in atttributes tab select radio button ---> Remote enbled then only u can use rfc for other servers.

In import tab:

imagine i want to take kna1 table in tht kunnar filed then

gf_kunnr type kunnr.

Export:

gw_kna1 type kna1.

source code:

select single * into gw_kna1

from kna1

where kunnr = gf_kunnr.

now activate.

Now goto sm59 make settings there ..

Now create the executable program: in se38:

so we need to call the function module:

Call function 'z_function module ' Destination 'zrfcsm59'

here z_function module will be the name if function module which we have created in se37 and zrfcsm59 will be the rfc connection which we hav created in sm59.

then use this in this way ..

Hope u understood try this it will solve ur problem/

Regards,

Sana.

Reward points if found helpful..

4 REPLIES 4
Read only

Former Member
0 Likes
490

Hi,

RFC is nothing but remote function call.

By using this we can connect the systems .

we can call the functions in another system by using this RFC we can get the data.

it is like a service.

RFC have 5 types.

Transactional RFC,

SynchronusRFC,

ASynchronusRFC

Parallel RFC,

QuedRFC.

i am sending some document to please read it.

please award points, if it is useful.

regards,

satish.

Read only

Former Member
0 Likes
490

Hi,

i am giving some additional information what i for got to tell

we can use RFC in our ABAP

while creating BAPI and ALE IDOCs.

we can create these RFC at Function modules.

in FM we have attributes tab is there in that we select the radiobutton rfc.

This is the process to create RFC in BAPI.

if u want to connect by usnig the tcode SM59.

please reward points.

regards,

satish.

Read only

muhammed_nishad
Participant
0 Likes
490

Hai,

RFC is Remote Function Call . If you need to acessess some function module which is residing in a different R3 system, to call such function module make sure that there is function module exists and this should be remotly enabled.You can make a function module as remotly callable by going to the SE37 attribute-->Processing type. Now to call the same you need a RFC connectivity you make this you need to go to SM59 and create connection and test this.You get the exporting and importing prameters of RFC from the other system and call this in your program with RFC destination.

syntax:

Call function <Function Name> Destination <destination name>

exporting

importing

.

Read only

Former Member
0 Likes
491

Hi Shahed,

RFC: is the Remote Function Call it is a call to the function module running in a system different from the collers..

we hav 3 types of rfcs 1. Synchronous RFC.

2. Asynchronous RFC

3. transactional Rfc.

Synchronous RFc:

while sendin the request from one sever to the other it will wait till the status is recieved.

Asynchroous Rfc:

while sending the request frm ione server to the other it will not wait for the status .

Transactional Rfc:

it sends the request from one server to the other if the server is down it will store the data and when the server is up it again sends the request.

Rfc logs can be checked in Sm58.

to make settings for rfc go tcodeSm59.

to create our own rfc connection:

goto se37 create function group and then create a function module in atttributes tab select radio button ---> Remote enbled then only u can use rfc for other servers.

In import tab:

imagine i want to take kna1 table in tht kunnar filed then

gf_kunnr type kunnr.

Export:

gw_kna1 type kna1.

source code:

select single * into gw_kna1

from kna1

where kunnr = gf_kunnr.

now activate.

Now goto sm59 make settings there ..

Now create the executable program: in se38:

so we need to call the function module:

Call function 'z_function module ' Destination 'zrfcsm59'

here z_function module will be the name if function module which we have created in se37 and zrfcsm59 will be the rfc connection which we hav created in sm59.

then use this in this way ..

Hope u understood try this it will solve ur problem/

Regards,

Sana.

Reward points if found helpful..