‎2007 May 16 10:06 AM
hi experts,
can somebody explain a real time requiremwnt , to create a function module.
its very urgent.
i want elaborately.
regards,
subhasis.
‎2007 May 16 10:09 AM
hi
pls refer these links...
<a href="
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
">http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm</a>;
thx
pavan
‎2007 May 16 10:10 AM
Hi!
You might get some hints from the Smartforms how to create a function module in runtime.. Check out the function module: SSF_FUNCTION_MODULE_NAME
Regards
Tamá
‎2007 May 16 10:11 AM
Hi Subhasis,
For processing the custom Inbound IDocs, you need to create a function module for sure.
Apart from this, whenever, you want to code some logic which you want to use in multiple programs and no standard function module is available, you need/can create a function module.
Also, if you create and activate a custom smartform, a function module is created automatically.
Regards,
Neeraj
‎2007 May 16 10:17 AM
hi,
In real time
1. as per my knowledge we create function modules to Inbound IDOC /outbound processing..
2.Interface between a program..
Example we need to take some data from a report say materials and plant and process some bapi and return logfiles to the report we can use FM here too.
To create a function module
First you need to create a function group (function group holds a number of function modules relevant)
SE37>goto>function groups-->create group ..click this create group..
Now in the pop up enter the function groupname Eg: ZW_FG1 plus short text and saveit
Now again goto SE37--> enter new Function module name eg:ZW_FM1
and press F5.
Now again a popup you need to enter
function group name : ZW_FG1
and short test and save it..
Now the Function module is created under the Function group ZW_FG1.
write your export import table parameters and you source code.
rewards if useful
regards,
nazeer
Message was edited by:
nazeer shaik