‎2006 Jul 18 8:23 PM
Hi friends,
Please tell me all the steps for creating a functional module.
‎2006 Jul 18 8:32 PM
Hai
Check the following Methods
Follow the steps.
Step 1.
GO to transaction SE80.In the drop box list select function group enter your Z Function group name.Press enter it will ask for creating the function group.Create your function group.
OR
In SE37 transaction,in the menu bar Goto - > Function Group - > Create Group.Your Function Group will be created.
Step 2.
Go to transaction SE37.Enter your Z Function module name,your recently created function group name and the description.Press Enter.Now your FM is created.
Step 3.
Enter Export,Import parameters.In the source code tab write the code what you want to write.If any exception write in the exception tab.
Method 2)
First u have to create Function Group.
1.se37->Goto->Function Group--->Create.
2.Create FM.
3.maintain import /export parameters and tables , exceptions.
4.based on the ur requirement u have to bulid ur logic in Source Code by using there Import parameters and u can pass the results by using Export or table.
5.u can raise error by using exception.
see simpple FM AC_DOCUMENT_RECORD
Regards
Sreeni
‎2006 Jul 18 8:27 PM
You must first create a function group. Go to SE80, choose Function group from drop down list box. Enter the name of your function group, make sure it starts with "Z" or "Y". Hit enter, system will ask you if you want to create it, say yes. Give description, assign package(dev class) Now it is created, you can start creating function modules underneath. right click on the function group node on the tree to the left. Choose create, function module, give name and desription. Click green check. Now you need to put any import parameters, export parameters and the source code of the function module. Save and activate all.
Regards,
Rich Heilman
‎2006 Jul 18 8:28 PM
hi,
goto transaction SE37.
click on GOTO->FUNCTION GROUPS-> CREATE( first create a function group)
give the FUNCTION GROUP name and give short desciption
save
now give a name for the function module.
click on Create
give Short description
and give ur exporting and importing parameters
and source code do your coding
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
hope this helps,
do reward if it helps,
priya
Message was edited by: Priya
‎2006 Jul 18 8:28 PM
Hi Sadhik,
Please chcek this link.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
Regards,
Ferry Lianto
‎2006 Jul 18 8:28 PM
Hi Sadhik,
please take a look into the online documentation at:
http://help.sap.com/saphelp_erp2005/helpdata/en/22/0424ba488911d189490000e829fbbd/frameset.htm
Regards,
ok
‎2006 Jul 18 8:29 PM
Here is the help for function builder.
http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801e9a454211d189710000e8322d00/frameset.htm
REgards,
Rich Heilman
‎2006 Jul 18 8:31 PM
Hi sadhik,
goto se37, from the tool bar goto->function groups->create group
now create a group by giving the description n name.
then create function module n use the function group for it which u created.
also check the link:
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
regards,
keerthi.
‎2006 Jul 18 8:32 PM
Hai
Check the following Methods
Follow the steps.
Step 1.
GO to transaction SE80.In the drop box list select function group enter your Z Function group name.Press enter it will ask for creating the function group.Create your function group.
OR
In SE37 transaction,in the menu bar Goto - > Function Group - > Create Group.Your Function Group will be created.
Step 2.
Go to transaction SE37.Enter your Z Function module name,your recently created function group name and the description.Press Enter.Now your FM is created.
Step 3.
Enter Export,Import parameters.In the source code tab write the code what you want to write.If any exception write in the exception tab.
Method 2)
First u have to create Function Group.
1.se37->Goto->Function Group--->Create.
2.Create FM.
3.maintain import /export parameters and tables , exceptions.
4.based on the ur requirement u have to bulid ur logic in Source Code by using there Import parameters and u can pass the results by using Export or table.
5.u can raise error by using exception.
see simpple FM AC_DOCUMENT_RECORD
Regards
Sreeni
‎2006 Jul 19 1:47 AM