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.
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
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.
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