Function Module

Stevens, Seth Seth.Stevens at anadarko.com
Tue Sep 15 10:14:23 EDT 2009


Nat,
 
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.
 
data lv_obj type swc_object.
data: begin of lt_container occurs 0,
          include structure swcont.
data: end of lt_container.
 
swc_create_object  lv_obj  'your_obj_name'  objkey.
swc_call_method lv_obj  'your_method_name'  lt_container.
 
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.
 
Hope this helps.
 
--Seth
     

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Nat 4 Govender
Sent: Tuesday, September 15, 2009 2:59 AM
To: SAP Workflow Users' Group
Cc: sap-wug at mit.edu; sap-wug-bounces at mit.edu
Subject: Function Module



Hi All,

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.


If so can you please advise how to go about to do that. I am not a
ABAPer.




Regards
Nat Govender
Toyota South Africa
IT - SAP Workflow Specialist
Internal Ext. : 32645
Direct Line : +27 031 910 2645
Fax : 086 607 0414
E-mail : ngovender4 at toyota.co.za <mailto:ngovender4 at toyota.co.za> 

If you tell the truth, you don't have to remember anything. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20090915/87bb0208/attachment.htm


More information about the SAP-WUG mailing list