Application Development 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: 

Delete rows

former_member603051
Participant
0 Kudos

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

Former Member
0 Kudos

since the itab has header line use clear and refresh.

4 REPLIES 4

former_member1033672
Participant
0 Kudos

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

Former Member
0 Kudos

since the itab has header line use clear and refresh.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

If it is internal table Use this...


REFRESH : it_bomgroup[].

If it is structure Use this....


CLEAR : it_bomgroup.

Hope it will helps