SAP Tutorials Blog


 


You can reset individual components to their initial values and clear the entire structure using the CLEAR keyword. Note that FREE statements also deletes the content, but they also release the initially allocated memory. space.


CLEAR struc-component.


CLEAR struc.


"This statement additionally releases memory space.

FREE struc.


"Note: An assignment using the VALUE operator without entries in the parentheses clears the structure. 

struc = VALUE #( ). 


"The same applies to data reference variables pointing to structures.

struc_ref = NEW #( ).


Serkan AKKAVAK

Computer Engineer BSc

Head of SAP & Software Department

Contact : serkurumsal@yandex.com