06-11-2007 10:59 AM
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
06-11-2007 11:21 AM
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
06-11-2007 11:03 AM
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
06-11-2007 11:16 AM
Hi Anji,
thanks for your anwser, can you write a Sample for that.
Thanks a lot.
Regards
Shuo
06-11-2007 11:21 AM
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