Posts

Showing posts with the label Modularization

Mastering ABAP: A Step-by-Step Guide to Function Modules and Groups for Modularized Programming

Image
  Function Modules :- It is a modularization technique. The transaction code to create a function module is SE37. To create a function module, we need to create a function group. Function Group :- Function group is a container for the function modules. The transaction code to create a function group is SE80. A function group can store up to 99 function modules. Requirement :- let’s create a function module for sum of two numbers. 1. Creation of function group :- Step 1 :- Go to SE80 transaction code → Object Navigator. Step 2 :- From the drop down select function group. Step 3 :- Give a name of function group. Step 4 :- press enter. Step 5 :- Click on yes a popup screen will appear. Step 6 :- Give short description → press enter → Assign package and transaction request and press enter. Step 7 :- Right click on function group and click on activate to activate the function group. Step 8 :- You will see two includes, will be added after ac

Breaking it Down: Exploring Modularization Techniques in ABAP Programming

Image
 Welcome back everyone, We have just finished our classical reports in our last blog, So let’s start with Modularization Techniques. Modularization Techniques :- Modularization is a technique used to divide the application program into smaller units. This helps to maintain the code in an easy manner and reduce the code redundancy. The various modularization techniques are as follows :- Includes Function Modules Subroutines Class-Methods 1. Include Programs/Includes :- Include Program is a modularization technique. We use include programs to organize a program code in to smaller units. We can create include programs with the help of SE38(ABAP Editor). The type of include programs is ‘I’. We can not execute a include program. We can reuse the same include program multiple times in our executable reports. The most important use of include programs is for lengthy data declarations used in different programs. The Syntax to use a Include Program in to another type of