Question - What is the difference between SAP memory and ABAP memory?
Answer -
data sending between main sessions using get parameter and set parameter is sap memory
data sending between internal sessions using import or export parameters is abap memory
sap memory is a global memory whereas abap memory is local memory.
For example, we have four programs in abap memory and assigned some varibles to a particular program in abap memory then those varibles can't be used by anyother program in abap memory i.e., the variables are only for that program and also local to that memory,whereas sap memory can access all the abap memory or else it can perform any kind of modifications.
SAP memory is available to the user during the entire terminal session.
ABAP memory is available to the user during life time of external session.