Thursday 27 February 2014

Simple Yet Helpful Commands for itab (Internal Table) in SAP



There is no doubt that understanding SAP is not easy, but with the help of some commands, you can perform several tasks easily if you have an internal table ‘itab’. Want to know what and how! Keep reading… 

Clear Commands
  • CLEAR <itab>.
    • This will clear the entire contents, if <itab> is not having header line.
  • CLEAR <itab>.
    • This statement will clear the contents of header line, if <itab> is having the header line.
  • CLEAR <itab>[]
    • This will clear the body contents (excluding header line), if <itab> has header line.
  • CLEAR itab[].
    • It is kind of opposite command of the CLEAR. The content of the table is released, and the header line is not.
  • CLEAR itab.
    • This command clears the header of a table, but keeps its content. The initial memory allocated for the table remains reserved.
  
Refresh Commands
  • REFRESH <itab>.
    • This will cause the body content to be cleared, but memory allotted to the table will remain as it is.
  • FREE itab.
    • Initializes the internal table and releases its entire memory space, including the initial memory requirement. So using free de-allocates memory.
 For more information like this you may visit SAP Help Portal.
Have I made few things easier to you guys? I hope yes, but for more information keep visiting and if you have any question, let us know. 

No comments:

Post a Comment