Skip to Content

Delete rows

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 04:04 PM

    since the itab has header line use clear and refresh.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2008 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2008 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2008 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.