Check the below links for your reference.
http://searchsap.techtarget.com/tip/Dynamic-internal-tables
http://www.erpgreat.com/ab030.htm
https://scn.sap.com/thread/285625
https://scn.sap.com/thread/821179
http://scn.sap.com/thread/571214
http://scn.sap.com/thread/191432
http://zevolving.com/tag/dynamic-internal-table/
Regards,
Bastin.G