Function modules in SAP are similar to subroutines except that they are global.
They can be accessed by any program.
They can handle exceptions and can return values unlike subroutines.
Every function should be defined in a function group.
You can either use existing groups or create your own function groups.
Lets assume that you create a func grp called FGRP.
SAP creates program called SAPLZ_FGRP .
This program includes a program called LZ_FGRPTOP.
These have to activated before using the function in this group.
Not activating this gives ativation errors.
For example if u create a function Z_FUNCTTEST in group Z_FGRP,
You have to activate Z_FUNCTTEST,LZ_FGRTOP,SAPLZ_FGRP.
To call functions in a program use the pattern option and click the function you want to insert.
Tuesday, June 12, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment