Application Development and Automation 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: 
Read only

parameter id

Former Member
0 Likes
519

how can i refresh or clear or reset or free or unassign the parameter id for a user in the same session?

3 REPLIES 3
Read only

Former Member
0 Likes
493

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.

Read only

Former Member
0 Likes
493

Hi Willard,

Use FREE MEMORY.

for detail documentaion do F1 on FREE (in SE38).

Reward points if this helps.

Manish

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
493

You can simply set it with a blank value.

data: value(10) type c.

set parameter id 'SAG' field value.

Regards,

Rich Heilman