Application Development 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: 

FM with RFC function

Former Member
0 Kudos

Hi experts,

i need a FM with RFC Function. with this FM i can find the MATNR in the Table MAKT and read Data with this MARNR in the Table MARA?

How can i do this.

Thx

Best Regards.

shuo

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

. FM involved by the system so it maps the another server using that Destination

There is no such FM directly.

The destination is mapped in SM59.

2. With the destination keyword,

the system understands that it is a RFC,

and based upon its comuunication and protocol,

directly communicates with the relevant system.

(There is no FM which comes in between)

(it is a direct feature of abap language and sap facility)

example

1.When we call rfc from A to B,

the FM should exist in B

(If it does not exist in A, its perfectly fine. Bcos the server

will search the FM in B only)

2. So from the B machine,

we can always take the FM name,

export import parameters

and type them in our A machine manually.

( we can open se37 in B, and copy/paste the exporting/importing parameters,

also we can check the first lines of commented code in se37, where

the syntax is somewhat available)

<b>*Reward points</b>

Regards

3 REPLIES 3

Former Member
0 Kudos

Hi

RFC (Remote Function Call) is similar to the general SAP fun module: except that in the attributes you click the radio button: RFC enabled;

and you will be passing an Import parameter DESTINATION to it.

Other code and usage will be similar to any fun module;

Have a look at any fun module in SE37 to understand better about the different components of Fun modules;

Refer this link:

http://help.sap.com/saphelp_nw04/helpdata/en/22/042518488911d189490000e829fbbd/frameset.htm

<b>Reward points for useful Answers</b>

Regards

Anji

0 Kudos

Hi Anji,

thanks for your anwser, can you write a Sample for that.

Thanks a lot.

Regards

Shuo

Former Member
0 Kudos

Hi,

. FM involved by the system so it maps the another server using that Destination

There is no such FM directly.

The destination is mapped in SM59.

2. With the destination keyword,

the system understands that it is a RFC,

and based upon its comuunication and protocol,

directly communicates with the relevant system.

(There is no FM which comes in between)

(it is a direct feature of abap language and sap facility)

example

1.When we call rfc from A to B,

the FM should exist in B

(If it does not exist in A, its perfectly fine. Bcos the server

will search the FM in B only)

2. So from the B machine,

we can always take the FM name,

export import parameters

and type them in our A machine manually.

( we can open se37 in B, and copy/paste the exporting/importing parameters,

also we can check the first lines of commented code in se37, where

the syntax is somewhat available)

<b>*Reward points</b>

Regards