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

Refresh memory

Former Member
0 Likes
1,385

Hi,

I want to refresh MEMORY after using FUNCTION 'LIST_FROM_MEMORY'.

Can anybody give me a guidance or a hint.

Best regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,161

You can use command FREE or $TAB

Regards,

Lalit Gupta

4 REPLIES 4
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,161

Hi

U can use FREE command after the specified function module.

Regards,

Sreeram Kumar.Madisetty

Read only

Former Member
0 Likes
1,161

use CALL FUNCTION LIST_FREE_MEMORY .

Read only

Former Member
0 Likes
1,161

Hi,

You can do below

call function 'LIST_FROM_MEMORY'
     tables
          listobject = list_pdata
     exceptions
          not_found  = 1
          others     = 2
if sy-subrc = 0.
call function 'WRITE_LIST'   
     tables
          listobject = list_pdata
    exceptions
         empty_list = 1
         others     = 2
          .
if sy-subrc NE 0.
  message id sy-msgid type sy-msgty number sy-msgno
         with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.

CALL FUNCTION LIST_FREE_MEMORY.  "here free meory
endif.
endif.

Thanks!

Edited by: Prasanth on Mar 13, 2009 3:54 PM

Read only

Former Member
0 Likes
1,162

You can use command FREE or $TAB

Regards,

Lalit Gupta