Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Delete rows

Former Member
0 Likes
664

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
629

since the itab has header line use clear and refresh.

4 REPLIES 4
Read only

Former Member
0 Likes
629

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

Read only

Former Member
0 Likes
630

since the itab has header line use clear and refresh.

Read only

Former Member
0 Likes
629

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

Read only

Former Member
0 Likes
629

Hi,

If it is internal table Use this...


REFRESH : it_bomgroup[].

If it is structure Use this....


CLEAR : it_bomgroup.

Hope it will helps