6. Write down the syntax to define and call subroutines.
Answers
The general syntax of a subroutine definition is
FORM <subroutine_name>.
<statements>
ENDFORM.
A reusable portion of code is called a subroutine. It's a software modularization unit where a function is contained in a piece of source code. To acquire a better understanding of the main programme, you can page out a section to a subroutine and utilize the matching series of statements repeatedly as shown in the accompanying figure.
Three separate source code pieces make up programme X. The ABAP statements in each block are identical. They are essentially the same code chunks. We can put the code into a subroutine to make it simpler to maintain. This function can be called as many times as needed within our programmes. Form and EndForm statements can be used to define subroutines.
A subroutine can be called by utilizing the PERFORM statement. The subroutine named "subroutine namefirst "'s executable statement is where the control moves. Control returns to the statement that comes after the PERFORM statement when ENDFORM is encountered.
Learn more about subroutines at
https://brainly.com/question/25741060