09-19-2008 4:05 PM
Hello
I have this estructure with 3 rows with values in on program.
it_bomgroup LIKE bapi1080_bgr_c OCCURS 0 WITH HEADER LINE,
How can I delete all of the values?
Thanks in advance.
09-19-2008 5:04 PM
09-19-2008 4:06 PM
try.
refresh: it_bomgroup[].
But it is not structure, but internal table. For clearing structure you can use command CLEAR.
Edited by: Filip Kouba on Sep 19, 2008 5:07 PM
09-19-2008 5:04 PM
09-20-2008 6:10 AM
Hi,
We can use both clear & Refresh.
But there is difference between clear & Refresh statement.
There are 2 types of clear statements we can use:
Clear ITAB : This Statement will clear the Internal Table Header content.
To clear the Intertal Table Header as well Body we can use Clear ITAB [ ]
statement.
Refresh will deletes the Internal Table content but still memory is not freed.
Hope it will help you.
Regards,
Mamta
09-20-2008 6:18 AM
Hi,
If it is internal table Use this...
REFRESH : it_bomgroup[].
If it is structure Use this....
CLEAR : it_bomgroup.
Hope it will helps