Search This Blog

Showing posts with label pass by reference. Show all posts
Showing posts with label pass by reference. Show all posts

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

Pages