Search This Blog

Monday, March 15, 2021

Pass by Value Vs Pass by Reference Vs Pass by value and return in SAP ABAP

Pass by Value Vs Pass by Reference Vs Pass by value and return in SAP ABAP



By Reference

·                     Passes a pointer to the original memory location.

·                     Very efficient

 

By value

·                     Allocates a new memory location for use within the subroutine. The memory is freed                 when the subroutine ends.

·                 Prevents changes to passed variable

 

By value and result

·                     Similar to pass by value, but the contents of the new memory is copied back into the                original memory before returning.

·                    Allows changes and allows a rollback

No comments:

Post a Comment

Pages