Yes, we can do that using the (TCODE — RZ11) or RSMEMORY Program.
dynamically we can change the memory and that will be effective only for a particular session.
The value will be restored back to original, once restarted.
Here is the flow about allocation of memory:
Dialog work process —
# Roll area
(Ztta/Roll_First)
(Ztta/Roll_Area)
# Extented Area
(Ztta/roll_extension_dia)
(em/initial_size_MB)
# Heap area
( abap/heap_area_dia)
Non Dialog work process
# Roll area
(Ztta/Roll_First)
(Ztta/Roll_Area)
# Heap area
(Abap/heap_area_nondia)
# Extended Area
(Ztta/roll_extension_nondia)
( em/initial_size_MB).