Define Function Groups?

Answer

Function groups are containers for function modules. Infact, there are a large number of standard Function Groups. All of the function modules in a function group can access the global data of the group.

Like executable programs (type 1) and module pools (type M), function groups can contain screens, selection screens, and lists.

Points to Note

  • Function Groups cannot be executed.
  • The name of a function group can be up to 26 characters long.
  • When you create a function group or function module, the main program and include programs are generated automatically.
  • Function groups encapsulate data.

How to create a Function Group

  1. Goto Transaction SE80.
  2. Select Program in the DropDown.
  3. Write the name of the Function Group That you want to create. Generally User made Function groups start with "Z". e.g. - <Z_FUNCTION_GROUP_NAME> . Hit Enter Key.
  4. Note that The TOP Include is create by default if the user checks the option of creating a TOP include.

How to create a Function Module

  1. Create a function Group (say "ZCAL").
  2. Create a function module, set the attributes like  (Function group, Application, Short Text and Process Type) and Save.
  3. Include file "LZCALU01" will have source code of first function module.
  4. Include file "LZCALTOP" will have global data.
  5. Main program "SAPLZCAL" contains
    • Global data Include file "LZCALTOP"
    • Function modules include file "LZCALUXX"
    • User defined Include files "LZCALF..", "LZCALO.." and "LZCALI.."
  6. Define interface parameters and Exceptions
  7. Write the source code
  8. Activate Function Module
  9. Testing the Function Module - Single Test & Debugging
  10. Documenting and Releasing a Function Module

All SAP ABAP Questions

Ask your interview questions on sap-abap

Write Your comment or Questions if you want the answers on sap-abap from sap-abap Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---