Skip to Content
author's profile photo Former Member
Former Member

Why is it that I need to Refresh

q]] In the following link http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

please find Formatting Data Using Nested Internal Tables

q]] Why is it that I need to Refresh WA_SPFLI-SFLIGHT ,& WA_SFLIGHT-SBOOK & Why I do not do the same with WA_SPFLI.

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 Nov 22, 2007 at 11:46 AM

    hi

    q]] In the following link http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

    please find Formatting Data Using Nested Internal Tables

    Ans :- http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9eaa35c111d1829f0000e829fbfe/frameset.htm

    q]] Why is it that I need to Refresh WA_SPFLI-SFLIGHT ,& WA_SFLIGHT-SBOOK & Why I do not do the same with WA_SPFLI.

    Ans :- Refresh will releases body of the work area or internal table, where as

    clear will clear work area.

    Refresh we will use for performance sake

    <b>Reward Points if useful</b>

    regards,

    pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 06:37 AM

    REFRESH statement can only be used with internal tables as WA_SPFLI is a deep structure, REFRESH statement can't be used with it.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 29, 2007 at 06:52 AM

    Hi,

    You can use refresh tab_SPFLI, since it is declared as

    DATA TAB_SPFLI LIKE TABLE OF WA_SPFLI .

    Otherwise, you can only use clear statement for that.

    clear wa_spfli.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 29, 2007 at 08:10 AM

    clear is used for workarea or header of IT.

    refresh is used for IT when u want to refill the IT.The memory still remain allocated.

    'free' is used for IT when U dont want to refill the IT.Memory will be freed.

    All the ITs must be freed after their usage or atleast at the end of

    program so that memory is freed .For eg if your program is a list, if you dont free the ITs ,when you are watching the ouput list also memory is occupied.Only when u close the list does the memory gets freed.

    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.