WHAT IS THE DIFF B/W MACRO & SUBROUTINE?
Answers were Sorted based on User's Feedback
Answer / sudhakar1207
MACRO IS NOT REUSABLE, WHERE AS SUBROUTINE CAN BE REUSABLE.
MACRO DEFINITION WILL REPLACE THE MACRO CALL AT COMPILE TIME, WHERE AS SUBROUTINE CALL WILL TRANSFER THE CONTROL TO THE SUBROUTINE DEFINITION AND EXECUTE IT AND RETURN BACK TO CALLING PROGRAM.
DEBUGGING IS NOT POSSIBLE IN CASE OF MACRO.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / anil salekar
One more difference is Macro has to be defined in the same
calling program whereas subroutine can be in the same
calling program (Subroutine in a program) or can be in
another program (Function Module) .
Is This Answer Correct ? | 1 Yes | 0 No |
macros can be called first later define.
subroutine be first define later called.
Is This Answer Correct ? | 0 Yes | 1 No |
How to maintain the table control in BDC?
How to same internal table in same functional module?
What takes most time in SAP script programming?
Explain what is sap script? What is the purpose of sap script?
What is the difference between field-group header and other field groups? : abap modularization
How to sort internal table?
Is there Any Module in SAP for Internal Audit?
what is the difference between [select single xxx from ...] and [select * from ... up to one row]?
What is an interactive report? What is the obvious difference of such report compared with classical type reports?
What are the differences between session method and call transaction method? : abap bdc
Sort statement?
what is the standard program used to upload/download layout sets in scripts.