What is BOX Components in ABAP Programming

Box components purpose to reduce the memory needed by ABAP Program. For example : We have ABAP Internal table which is contain two fields let’s say Main Address and Secondary Address, not all the data have secondary address. The problem if there is no data in the fields, SAP System still allocate memory to just hold initial values, this potentially a lot of wasted memory to just hold initial values.

You can use Box for addition when declaring substructure of a table type to tell SAP System not to allocate memory. Check the following ABAP Program.