What does modularization means.
Dividing the program in to sections so as to increase the appearance and readability of the code.
What are different modularizing techniques.
d. Function Modules.
Are includes executables.
Where do we create include.
IN SE38 just select type I instead of E as for reports in attributes.
Can includes be nested.
What is a macro.
Macros are like small codes written inside the program or can be global , we can pass parameters to these macros.
How many parameters can we pass to the macros.
Is it good practice to use macros.
Macros are inserted at the calling point during runtime which increase the length of the codes and hence the execution time so they should not be used frequently.
How do we define and call macros.
Define <macro name>.
Calling a macro.
<Macro name > parameters.
What is a subroutine.
Subroutines are local calls made in the program which may or may not return a value.
Can parameter be passed to a subroutine.
Yes, They can be
a. Pass by value.
b. Pass by reference.
c. Pass by value and return or changing.
How are internal tables passed.
They are always passed as pass by reference.
Can a subroutine be called outside a program.
Yes, just put in the program name that contains the subroutine.
What is a formal parameter and actual parameter.
Actual Parameter: This is the one that is actually passed to the subroutine.
Formal Parameter: Parameters that hold the values in the actual call in the subroutine are formal parameters.
What is a function group.
Logically related function modules are stored under one roof , function group. This is necessary for creating a function group.
What is the T-Code for creating function module.
What are the types of function modules.
b. Remote enables.
c. Update function module.
What are the important tabs in function module.
There are two more tabs
a. Source code
What is an exception tab.
User can raise exception in the function using the raise statements these exceptions are stored in the exception tab and are handled where the function is called.
What is a remote enabled function module.
Function that can be called outside sap by any other application is a remote enabled function module.
What is an update function module and why is it used.
When user wants to update any data base table directly then we should use these FM as it work on the principal of commit all(If update is successful) or rollback all(If update fails).