‎2007 Jan 20 1:35 PM
Hi,
I am Srikanth nad i want to know
modulirazation techniques and thier details
Regards
M.Srikanth
‎2007 Jan 20 1:46 PM
Hi srikanth,
Check this page
<a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/content.htm">Modularization Techniques</a>
and put your question again with more precise details.
Regards,
Clemens
‎2007 Jan 20 2:44 PM
Hi,
Modularization techniques is used to avoid repetitive coding.
Two techniques can be used:
1. Function Modules
When we call the function module in ABAP program, it is internally inserted in the program.
First you create function group (Path: SE37 -> Goto -> function group -> Create a group) then you create function modules.
2. Subroutines
There are two types:
- Call by value.
In here the main program values are not affected (global variables). Only local variable values are affected.
- Call by reference or pass by reference.
By default all internal tables are call by reference. In here the blobal variable values are also affected (in main program).
Hope this will help.
Regards,
Ferry Lianto
‎2007 Jan 21 7:57 AM
Hello Srikanth,
I am referrring to a brief extract from SAP Library for your convinience.
The modularising Techniques can be broadly classified as -
1. Source Code Modules - Macros and Include Programs
When you modularize source code, you place a sequence of ABAP statements
in a module. Then, instead of placing all of the statements in your main
program, you just call the module. ABAP contains two kinds of source code
modules: Local modules are called macros, and cross-program modules are
called include programs.
2. Procedures - Subroutines and Function Modules
Procedures contain a set of statements, and are called from other ABAP
programs. Subroutines are principally for local modularization, that is, they are
generally called from the program in which they are defined. Function modules
are for global modularization, that is, they are always called from a different
program. Function modules contain functions that are used in the same form
by many different programs.
Please refer to SAP library for details.
Regards
Indrajit