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

modularization

Former Member
0 Likes
647

what r the modularization techniques?

5 REPLIES 5
Read only

Former Member
0 Likes
609

The advantage of modularization is:

1. Readability.

2. Code reusability

3. Providing structure to your code.

Refer

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf

Regards,

Santosh

Message was edited by:

Santosh Kumar Patha

Read only

ferry_lianto
Active Contributor
0 Likes
609

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).

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
609

Hi..,

There are two techniques..

<b>

One is Source code modularization and the second is Procedures..</b>

Macros and Includes comes under Source code modularization.. these codes will be replaced in the main program during syntax check it self..

Subroutines and Function modules comes under Procedures.. the code in these modules are replaced in the program onli at the runtime of the program i.e while getting executed !!!

regards,

sai ramesh

Read only

Former Member
0 Likes
609

Modularization techniques are the methods in which you can arrange your CODE in different blocks instead of writing a very long program.

Using PERFORMs, methods in classes, Includes , MACROS etc, yo ucan modularize your code.

Refer to the example programs:

demo_mod_tech_macros.

demo_mod_tech_include.

demomodtech* and press f4.

Regards,

Ravi

Read only

Former Member
0 Likes
609

in simple words

If you are having reusable code

then u will write that code in different modularizations method based upon u r requirement

Different modularization techs r

1. Function Modules

2. Subroutines

3. Includes.

4. Macros.

~~Guduri