abap 子例程
![net-framework .NET framework](https://i-blog.csdnimg.cn/blog_migrate/82ff0bf6866d2807a8c03308f1495155.gif)
Subroutines are another word for methods, and they’re code blocks that will be executed by your application as you call them elsewhere in your applications. To call a subroutine, just call it by the subroutine’s name (for instance, if you created your own subroutines).
子例程是方法的另一种说法,它们是代码块,将在您在应用程序的其他地方调用它们时由您的应用程序执行。 要调用子例程,只需使用子例程的名称进行调用(例如,如果您创建了自己的子例程)。
The Public, Private and Protected keywords are incase you create multiple classes (explained below) and you want to choose whether other classes have access to use the respective methods (or subroutines) you have created. You can search online for the exact definition of these three keywords.
如果您创建多个类(如下所述),并且想要选择其他类是否有权使用您创建的相应方法(或子例程),则使用Public,Private和Protected关键字。 您可以在线搜索这三个关键字的确切定义。
Say you have a subroutine that does some task of some kind, you call it and the code within that subroutine gets executed. However, the thing is, what if you wanted to make sure some code in the subroutine did it’s job? What about using the Return
keyword and return either true or false depending on whether the portions