Application Development and Automation 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: 
Read only

modulirazation techniques

Former Member
0 Likes
474

Hi,

I am Srikanth nad i want to know

modulirazation techniques and thier details

Regards

M.Srikanth

3 REPLIES 3
Read only

Clemenss
Active Contributor
0 Likes
442

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

Read only

Former Member
0 Likes
442

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

Read only

Former Member
0 Likes
442

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