‎2006 Dec 11 4:10 PM
Hi Guys;
Can someone guide me on how to create a RFC basically i want to create a Function Group and module and what changes to do in R/3 side for program id.
I am new to this .. please screenshots will be appreciated.
my email id : Kbuddhdeo@prosoftgroup.com
Thanks,
Kuna
‎2006 Dec 11 4:19 PM
You simple create a function module and mark it as "Remote Enabled" in the attributes tab.
http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm
Regards,.
Rich Heilman
‎2006 Dec 11 4:19 PM
You simple create a function module and mark it as "Remote Enabled" in the attributes tab.
http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm
Regards,.
Rich Heilman
‎2006 Dec 11 4:21 PM
Hi,
1) For creating function group..
Goto SE37...In the menu choose...GOTO->Function groups -> Create group..
Give a function group name..Give the description..
Save the Function group..
2) Creating RFC..
Check this link for creating a Function module..In the attributes set the remote enabled radio button to make the FM as RFC.
http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm
Thanks,
Naren
‎2006 Dec 11 4:57 PM
Creating new Function Modules
Function modules perform tasks of general interest to other programmers. Usually these tasks are well-defined functions that all users need, regardless of application. Some well-defined tasks include performing tax calculations, determining factory calendar dates, and calling frequently-used dialogs.
When you write ABAP routines that other programmers might use, you should define these routines as function modules. This means that you develop them in the Function Builder as follows:
Check whether a suitable function module already exists. If not, proceed to step 2.
Create a function group, if no appropriate group exists yet.
Create the function module.
Define the function module interface by entering its parameters and exceptions.
Write the actual ABAP code for the function module, adding any relevant global data to the TOP include.
Activate the module.
Test the module.
Document the module and its parameters for other users.
Release the module for general use.
Runtime Considerations
There are some runtime considerations you should be familiar with when writing function modules:
The CALL FUNCTION statement can pass import, export, and changing parameters either by value or by reference. Table parameters are always transferred by reference.
If you declare the parameters with reference to ABAP Dictionary fields or structures, the system checks the type and length when the parameters are transferred. If the parameters from the calling program do not pass this check, the calling program terminates.
At runtime, all function modules belonging to a function group are loaded with the calling program. As a result, you should plan carefully which functions really belong in a group and which do not. Otherwise, calling your function modules will unnecessarily increase the amount of memory required by the user.
‎2006 Dec 12 5:44 AM
hi,
u can do it by creating a function module which is remote enabled...
if u have further doubts u can check this link..
http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm
regards ,
Rajkumar.G.