Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function module creation

Former Member
0 Likes
917

Hi friends,

Please tell me all the steps for creating a functional module.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
867

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

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
867

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

Read only

Former Member
0 Likes
867

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

Read only

ferry_lianto
Active Contributor
0 Likes
867
Read only

oliver
Active Contributor
0 Likes
867

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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
867
Read only

Former Member
0 Likes
867

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.

Read only

Former Member
0 Likes
868

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

Read only

0 Likes
867

THANK YOU VERY MUCH GUYS.