Application Development 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: 

Function Module

Former Member
0 Kudos

dear friends,

How to write a function module in SAP. wil any1 Describe.

What are the exceptions in function module

What is a function group

plz rep asap

2 REPLIES 2

Former Member
0 Kudos

Hi,

You might get more detailed answer at the ABAP forum:

/community [original link is broken]

But to put it short, you can build function modules for example with transactions SE37 or SE80.

Please check following links for further details:

http://help.sap.com/saphelp_47x200/helpdata/en/22/0425f2488911d189490000e829fbbd/frameset.htm

http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f02454211d189710000e8322d00/frameset.htm

Kind regards,

Ville

Former Member
0 Kudos

Dear Vel,

Post your queries in relevant Forums to get an efficient answer. It would save Moderator's time.

Function Module : You would create a Function Module in transaction SE37.

1. Go to Tranasaction SE37 -> enter function module name that you want to create

2. Choose create pushbutton

3. Provide Function Group and Short Text (You would create the function group in transaction SE80)

4. Provide Import, Export, Changing, Tables, and Exceptions (The exceptions screen only allows you to enter a text with which the exception can be triggered in the function module.)

5. Choose Source Code option and write the code.

Exceptions:

1. As name suggests are exceptional conditions. You would use the exceptions that you had defined under exceptions.

MESSAGE <type number> WITH <var1> <var2> .. RAISING <exception>.

Function Group : A function group contains a set of logically related function modules.

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.

Visit the following link for more information:

http://help.sap.com/saphelp_nw04/helpdata/en/d1/801e9a454211d189710000e8322d00/frameset.htm

Regards,

Naveen.