Hello ABAP Gurus,
I had this nagging question for a long time about FREE and CLEAR statements while used to initialize internal tables. I understand that the only difference between them is that FREE releases the complete memory area for the internal table whereas CLEAR reserves the required initial memory area for the internal table.
Throughout my ABAP development career, I have seen CLEAR statement being used mainly, but then FREE can also be used for same purpose, may be even with better performance, as it releases the complete memory.
Can you guys think of something which made people choose CLEAR over FREE? Or my assumption, 'FREE is underused' itself is wrong?
Any comments, ideas are welcome!!
Thanks & Warm Regards,
Raveesh