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: 

How to create good performance with function modules?

Former Member
0 Kudos

How to create good performance with function modules?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Function Modules

Function modules are procedures that are defined in function groups (special ABAP programs with type F) and can be called from any ABAP program. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.

Function modules allow you to encapsulate and reuse global functions in the R/3 System. They are stored in a central library. The R/3 System contains a wide range of predefined function modules that you can call from any ABAP program. Function modules also play an important role in database updates and in remote communications between R/3 Systems or between an R/3 System and a non-SAP system.

Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.

The Function Builder also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed

http://news.soft32.com/ati-videocards-and-drivers-for-vista_1558.html

Kindly Award Points If You Find The Reply Helpful.

Cheers,

Chaitanya.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Function Modules

Function modules are procedures that are defined in function groups (special ABAP programs with type F) and can be called from any ABAP program. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.

Function modules allow you to encapsulate and reuse global functions in the R/3 System. They are stored in a central library. The R/3 System contains a wide range of predefined function modules that you can call from any ABAP program. Function modules also play an important role in database updates and in remote communications between R/3 Systems or between an R/3 System and a non-SAP system.

Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.

The Function Builder also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed

http://news.soft32.com/ati-videocards-and-drivers-for-vista_1558.html

Kindly Award Points If You Find The Reply Helpful.

Cheers,

Chaitanya.

Former Member
0 Kudos

hi Haresha,

One of the step to obtain good performance with FM is by checking its runtime analsys.

The Function Builder contains more test options than simply running a function module. You can also run a test in the debugger or create a runtime analysis performance file for a function. To investigate a function module in debugging mode:

1.Choose Test from the Function Builder initial screen.

2.Specify the data you want to transfer from your program to the function module.

3.Select Debugging.

The system executes the function module in debugging mode. You can step through the function's code and use all the options offered within the Debugger

To test a function module's performance, select Runtime analysis (Transaction SE30) from the Test Environment for Function Modules screen. The system executes the function module and records the function's performance in a special performance data file. Select Eval.rtime analysis to display the results of the analysis.

Reward if useful.

Thank you,

Regards.