0% found this document useful (0 votes)
4 views2 pages

Modularization

The document discusses modularization techniques in programming, emphasizing the benefits of reducing redundancy and improving maintainability. It details various types of subroutines, methods of passing data, and the differences between function modules and normal subroutines. Additionally, it explains the distinctions between internal tables and extract datasets, as well as the implications of using call by reference.

Uploaded by

dg3602550
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Modularization

The document discusses modularization techniques in programming, emphasizing the benefits of reducing redundancy and improving maintainability. It details various types of subroutines, methods of passing data, and the differences between function modules and normal subroutines. Additionally, it explains the distinctions between internal tables and extract datasets, as well as the implications of using call by reference.

Uploaded by

dg3602550
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Modularization Techniques

We Never Compromise in Quality. Would You ?


1. What is Modularization and its benefits and Various Techniques?
If the program contains the same or similar blocks of statements or it is required
to process the same function several times, we can avoid redundancy by using
modularization techniques. . Modularized programs are also easier to maintain and to
update.

Note : Modularization Improves Readability and Re-Usability Of the Source Code.

Modularization Tecgniques :
Source code modularization(Macros and INCLUDE Programs)
Functionality Modularization (Subroutines and Functions )

2. What are subroutines and types of Subroutines ?


(Patni,IBM,Accenture, CAP Gemini,iGATE)
Subroutines are program modules, which can be called from other ABAP/4
programs or within the same program.
Types of Subroutines:
· Internal Subroutines: The source code of the internal subroutines will be in the
same ABAP/4 program as the calling procedure (internal call).
· External Subroutines: The source code of the external subroutines will be in an
ABAP/4 program other than the calling procedure.

3. It is not possible to create an ABAP/4 program, which contains only Subroutines


(T/F). (Patni,IBM,Accenture, CAP Gemini,iGATE)
False.
Note : We Can Create it through Subroutine Pool Program.

4. A subroutine can contain nested form and endform blocks. (T/F)


False.
5. What are the different types of parameters?
Formal Parameters: Parameters, which are defined during the definition of
subroutine with the FORM statement.
Actual Parameters: Parameters which are specified during the call of a
subroutine with the PERFORM statement.

6. What are the different methods of passing data?


· Calling by reference: During a subroutine call, only the address of the actual
parameter is transferred to the formal parameters. The formal parameter has no memory
of its own, and we work with the field of the calling program within the subroutine. If we
change the formal parameter, the field contents in the calling program also changes.

· Calling by value: During a subroutine call, the formal parameters are created
as copies of the actual parameters. The formal parameters have memory of their own.
Changes to the formal parameters have no effect on the actual parameters.

Page 1 of 2
eMax Technologies,Ameerpet,Hyderabad
Ph No :040-23734808, Cell No : 99484 44808, [Link]. com
Modularization Techniques
We Never Compromise in Quality. Would You ?
· Calling by value and result: During a subroutine call, the formal parameters
are created as copies of the actual parameters. The formal parameters have their own
memory space. Changes to the formal parameters are copied to the actual parameters at
the end of the subroutine.

7. . How can an internal table with Header line and one without header line be
distinguished when passed to a subroutine?
(IBM,Accenture,Satyam,Wipro,CAP Gemini,iGATE)
Itab [] is used in the form and endform if the internal table is passed with a header
line.
8. What is the difference between the function module and a normal ABAP/4
subroutine? (IBM,Accenture,Satyam,Wipro,CAP Gemini,iGATE)
In contrast to normal subroutines function modules have uniquely defined
interface. Function modules are stored in a central library. Function Modules are Global
re-usable Components, i.e which Can be Called From any from Program without
Including the Definition of the Function Module.

9. What is a function group?


A function group is a collection of logically related modules that share global data
with each other. All the modules in the group are included in the same ain program.
When an ABAP/4 program contains a CALL FUNCTION statement, the system loads
the entire function group in with the program code at runtime. Every function module
should belong to a function group.
10. What is the disadvantage of a call by reference?
During a call by reference damage or loss of data is not restricted to the
subroutine, but will instantly lead to changes to the original data objects.

11. What is an update task and What happens if a function module runs in an
update task? (Satyam,Wipro,CAP Gemini,iGATE)
It is an SAP provided procedure for updating a [Link] system performs the
module processing asynchronously. Instead of carrying out the call immediately, the
system waits until the next database update is triggered with the ‘COMMIT WORK’
command.

12. What is the difference between internal tables and extract datasets?
· The lines of an internal table always have the same structure. By using extract
datasets, you can handle groups of data with different structure and get statistical figures
from the grouped data.
· You have to define the structure of the internal table at the beginning. You need
not define the structure of the extract dataset.
· In contrast to internal tables, the system partly compresses exact datasets when
storing them. This reduces the storage space required.
· Internal tables require special work area for interface whereas extract datasets
do not need a special work area for interface.

Page 2 of 2
eMax Technologies,Ameerpet,Hyderabad
Ph No :040-23734808, Cell No : 99484 44808, [Link]. com

You might also like