Wednesday, September 30, 2020

Differences between Macro & subroutine in SAP ABAP.

 What are the differences between Macro & subroutine?

Differences between Macro & subroutine in SAP ABAP.

                             Macro

                            Subroutine

1. Definition & calling in the same program.

1. Definition & calling may/may not in the same

    Program.

2. Definition should be the 1st & calling should be

    The next.

2. Calling should be the 1st & Definition should

     Be the next.

3.  Macros can take up to 9 inputs.

3. Subroutines can take any no of inputs.

 4. Macros cannot be debugged.

4. Sub-routines can be debugged at run time.

No comments:

Post a Comment