<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>Nat,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>This is very simple to do. Create your RFC, then
inside the RFC use the BOR macros to instantiate the business object and call
your method. Something like below.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>data lv_obj type swc_object.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>data: begin of lt_container occurs 0,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>
include structure swcont.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>data: end of lt_container.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>swc_create_object lv_obj 'your_obj_name'
objkey.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>swc_call_method lv_obj 'your_method_name'
lt_container.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>You can use swc_set_element to set any import parameters in
lt_container before calling the method then use swc_get_element to read any
export parameters after calling the method. Syntax is
swc_get_element lt_container 'your_param_name'
lv_variable.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>Hope this helps.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2>--Seth</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=636050714-15092009><FONT face=Arial
color=#0000ff size=2> </FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Nat 4
Govender<BR><B>Sent:</B> Tuesday, September 15, 2009 2:59 AM<BR><B>To:</B> SAP
Workflow Users' Group<BR><B>Cc:</B> sap-wug@mit.edu;
sap-wug-bounces@mit.edu<BR><B>Subject:</B> Function Module<BR></FONT><BR></DIV>
<DIV></DIV>
<P>Hi All,<BR><BR>I would like to know if it is possible to create a function
module (remote) that can access one of our methods of the business
object.<BR><BR><BR>If so can you please advise how to go about to do that. I am
not a ABAPer.<BR><BR><BR><BR><B><FONT color=#483d8b
size=4><BR>Regards</FONT></B><FONT size=4><BR>Nat Govender<BR>Toyota South
Africa<BR>IT - SAP Workflow Specialist<BR>Internal Ext. : 32645<BR>Direct Line :
+27 031 910 2645<BR>Fax : 086 607 0414<BR>E-mail : </FONT><A
href="mailto:ngovender4@toyota.co.za"><U><FONT color=#0000ff
size=4>ngovender4@toyota.co.za</FONT></U></A><FONT size=4><BR></FONT><FONT
color=#ff00ff size=4><BR>If you tell the truth, you don't have to remember
anything. </FONT></P></BODY></HTML>