Call the subroutine of another program

We can call subroutines by using PERFORM command. we can use it to call the subroutine of another program by including “IN PROGRAM” in the perform statement.

Ex: PERFORM f_compute_tax IN PROGRAM ZAU_TEST using lv_value changing lv_result.

The above code will call the subroutine f_compute_tax of the ABAP program ZAU_TEST. It is important to note that if we are using program ZAU_TEST like this , it will not come in where used list of the program. Suppose one deletes the program ZAU_TEST after seeing no program are using the program, the above code will give dump.