At the point when you modularize source code, you place a grouping of ABAP proclamations in a module. Then, at that point, rather than putting every one of the assertions in your fundamental program, you simply call the module.When the program is created, the source code in the modularization unit is treated like it were quite present in the primary program.In this instructional exercise you will learn:
Need of Modularization
Work on the construction of the program.
Simple to peruse the code
Simple to keep up with the code
Keep away from overt repetitiveness and advances code reuse
Different Modularization Techniques
Utilization of Macros
Utilization of incorporate documents
Gives investigate every one of them access detail :
If you have any desire to reuse similar arrangement of proclamations at least a couple of times in a program, you can remember them for a large scale.You can involve a full scale inside the program wherein it is characterized, and it must be brought in lines of the program following its definition.Investigate MOREMacros can be valuable for long estimations or complex WRITE explanations.Language structureCharacterize
Incorporate Programs are exclusively for modularizing source code, and have no boundary interface.Incorporate projects permit you to utilize a similar source code in various projects. They can be valuable if you have extended information statements that you need to use in various projects.PunctuationIncorporate
Incorporate projects can't call themselves.
Incorporate projects should contain total proclamations.
Subroutines are techniques that you can characterize in any ABAP program and furthermore call from any program. Subroutines are regularly called inside, or at least, they contain segments of code or calculations that are utilized much of the time locally. In the event that you maintain that a capability should be reusable all through the framework, utilize a capability module.
Sorts of Subroutines
Subroutine characterized in same program being called.Can get to every one of the information objects proclaimed in the fundamental ABAP/4 program.Outside
Subroutine characterized external the program being called.Need to utilize the
Calling a Subroutine
Information proclaimed in fundamental program is naturally accessible.
Focuses to Note
Settled calls are permitted in subroutines (for example PERFORM inside a FORM … ENDFORM ).Recursive calls are likewise conceivable.To characterize neighborhood information, utilize the DATA articulation after FORM . Each time you enter the subroutine, the information is reproduced (with an underlying worth) and delivered toward the end (from the stack).To characterize worldwide information utilized inside a subroutine, utilize the LOCAL assertion after FORM . The qualities are saved when you enter the subroutine and afterward delivered toward the end (from the stack)
Capability Modules are broadly useful ABAP/4 schedules that anybody can utilize. Infact , there are an enormous number of standard capability Modules accessible.Capability Modules are coordinated into Function Groups: Collections of legitimately related capabilities. A Function module generally has a place with a Function Group.PunctuationCapability
Significant data Associated with Function Module
Capability bunches are holders for capability modules. Infact, there are an enormous number of standard Function Groups.
All of the capability modules in a capability gathering can get to the worldwide information of the gathering.
Like executable projects (type 1) and module pools (type M), capability gatherings can contain screens, choice screens, and records.Focuses to Note
Capability Groups can't be executed.
The name of a capability gathering can really depend on 26 characters in length.
At the point when you make a capability gathering or capability module, the fundamental program and incorporate projects are created consequently.
Capability bunches embody information.
The most effective method to make a Function GroupGoto Transaction SE80.
Select Program in the DropDown.
Compose the name of the Function Group That you need to make. For the most part User made Function bunches start with "Z". for example -
Instructions to make a Function Module
Characterize interface boundaries and Exceptions
Compose the source code
Initiate Function Module
Testing the Function Module - Single Test and Debugging
Recording and Releasing a Function Module
That is all to Modularity in ABAP.
Click Here For more Detail