‎2006 Oct 17 11:36 AM
how can i refresh or clear or reset or free or unassign the parameter id for a user in the same session?
‎2006 Oct 17 11:41 AM
hi
clear statement clears the header while refresh clears the body of Internal table ...
Check
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb384e358411d1829f0000e829fbfe/content.htm
Check this sample code:
REPORT ypra_sample61.
TYPES: BEGIN OF ty_itab,
data1 TYPE char10,
data2 TYPE char10,
END OF ty_itab.
DATA: itab TYPE STANDARD TABLE OF ty_itab,
wa_itab TYPE ty_itab.
DATA: itab1 TYPE ty_itab OCCURS 0 WITH HEADER LINE,
wa_itab1 TYPE ty_itab.
wa_itab-data1 = '12'.
wa_itab-data2 = '112'.
APPEND wa_itab TO itab.
CLEAR: wa_itab, itab.
*Here the clear will clear both the header and as well as Body - Because
*it is declared as type standard table of ty_itab.
wa_itab1-data1 = '12'.
wa_itab1-data2 = '112'.
APPEND wa_itab1 TO itab1.
CLEAR: wa_itab1, itab1.
REFRESH: itab1.
*Here both the clear & refresh should be given to clear the workarea & *the internal table
Cheers
Alfred
Reward points if it is helpful.
‎2006 Oct 17 4:10 PM
Hi Willard,
Use FREE MEMORY.
for detail documentaion do F1 on FREE (in SE38).
Reward points if this helps.
Manish
‎2006 Oct 17 4:19 PM