SAP ABAP Modularization Techniques, in ABAP/4 programming environment we use modularization techniques very frequently. It's a very good programming practice to use modularization techniques in our SAP ABAP applications. Modularization techniques provides better understandability, readability, and for better maintainability of our ABAP applications. We use subroutines, include programmes, and functions very often. Here we are going to provide real time interview questions on SAP ABAP Modularization Techniques. Refer this post to know more about this SAP Modularization. Click on read more to explore.
SAP-ABAP Modularization Techniques Real Time Interview Questions
SAP ABAP Modularization Techniques, in ABAP/4 programming environment we use modularization techniques very frequently. It's a very good programming practice to use modularization techniques in our SAP ABAP applications. Modularization techniques provides better understandability, readability, and for better maintainability of our ABAP applications. We use subroutines, include programmes, and functions very often. Here we are going to provide real time interview questions on SAP ABAP Modularization Techniques. Refer this post to know more about this SAP Modularization.
1. Can you name the different types of SAP ABAP/4
Modularization techniques.
Ø Source code module
Ø Subroutines
Ø include programs
Ø Macros
Ø Functions
2. What are
subroutines?
Ans. Subroutines are
program modules, which can be called from other ABAP/4 programs or within the
same program.
3. What are the 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.
4. A subroutine can
contain nested form and endform blocks. (T/F)
False.
5. Data can be passed
between calling programs and the subroutines using parameters.
6. 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.
7. 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.
• 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.
8. A subroutine can
be terminated unconditionally using EXIT. (T/F)
True.
9. The method by
which internal tables are passed is by Reference.
10. How can an
internal table with Header line and one without header line be distinguished when passed to a subroutine?
Ans:
Itab[] is used in the form and endform
if the internal table is passed with a header line.
11. What should be
declared explicitly in the corresponding ABAP/4 Statements to access internal
tables without header lines & why?
Ans:
Work Area. This
is required as the Work Area is the interface for transferring data to and from
the table.
12. What is the
difference between the function module and a normal ABAP/4 subroutine?
Ans:
In contrast to normal subroutines function
modules have uniquely defined interface. Declaring data as common parts is not
possible for function modules. Function modules are stored in a central
library.
13. What is a
function group?
Ans.
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 main 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 belongs to a
function group.
14. 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.
15. What is an update task?
Ans. It is an SAP
provided procedure for updating a database.
"You found the information helpful and want to say thanks? Your donation is enough to inspire us to do more. Thanks a bunch!"
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.