Video Lesson 7.1: ABAP Subroutines and procedures
In this lesson you will learn why subroutines make sense and how you can use them in your ABAP programs. Furthermore, you will learn how the interface of a subroutine is used to pass parameters and how the different transfer types are used. This is only a brief introduction to the tools.
Using Subroutines
- A subroutine is a modularization unit within the program where a function is encapsulated in the form of source code.
- You page out a part of a program to a subroutine to get a better overview of the main program and to use the corresponding sequence of statements several times.
- Using subroutines makes your program more function-oriented: it splits the program's task into subfunctions, so that each subroutine is responsible for one subfunction.
- Using subroutines also means that your program becomes easier to maintain as changes to functions often only have to be implemented in the subroutine.->