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

internal table

Former Member
0 Likes
647

hi to everybody...

what is the difference between REFRESH,CLEAR AND FREE.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
575

HI,

We have two cases to consider and understand the behaviour of these statements.

1) internal table with header line.

refresh : will delete the conent of the body of the internal table

clear : will clear the condent of the header line of the internal table

free : will delete the content and also free the memory occupied by the internal table

2) internal table without header line

refresh/clear : will delete the content of the interla table body (No header line exist for this table)

free : delete the records and free the momory.

Thnaks

Mahesh

5 REPLIES 5
Read only

Clemenss
Active Contributor
0 Likes
575

search forum:

Forum Search

Use the form below to search the forum content. You can choose to search all content or restrict it to certain forums or dates. Also, you can filter the results by a username or user ID.

Search Forum Content

Search Terms: Search Tips

Category or Forum: All Categories Business Process Expert • Business Process Expert General Discussion • Business Process Modeling Methodologies • Governance, Risk and Compliance • Organizational Change Management • Analytics Enterprise SOA • Enterprise SOA • Standards • SAP Discovery System for Enterprise SOA SAP Solutions • Enterprise Resource Planning (ERP) • ERP Financials • ERP HCM (HR) • ERP - Logistics Materials Management (MM) • ERP - SD • ERP2005 Upgrade • Enterprise Asset Management (EAM) • ERP Employee Self-Service • Customer Relationship Management (CRM) - General & Framework • CRM - People Centric User Interface • CRM - Web Application • CRM - Mobile Applications • SCM - PP • SCM - APO • Product Lifecycle Management (PLM) • Supplier Relationship Management (SRM) • Globalization Services • Global Trade Service - SLL • SAP Solution Manager SAP Business One • SAP Business One • SAP Business One SDK • SAP Business One Integration Technology • SAP Business One E-Commerce and Web CRM • SAP Business One Product Development Collaboration SAP NetWeaver • Exchange Infrastructure • Industry Speak • SAP Master Data Management • Mobile • SAP NetWeaver Platform • SAP NetWeaver .NET Technologies • SAP NetWeaver Technical Integration with ERP • SAP NetWeaver - IBM Software Interoperability • Security • SAP NetWeaver Administrator • SAP NetWeaver Performance • BPM and Workflow • Composite Application Framework • SAP Interactive Forms by Adobe • SAP NetWeaver Partner Initiative Consultants • Documentation & Guidelines Database & OS Platforms • SAP on DB2 for z/OS (DB2) • SAP on DB2 UDB for i5/OS (DB4) • SAP on DB2 UDB for Unix and Windows (DB6) • SAP on SQL Server • SAP on Oracle • MaxDB/liveCache • SAP on Informix (INF) • SAP on Windows • SAP on Linux • SAP on Unix Portal • Portal Content Development • Portal Implementation • SAP NetWeaver Visual Composer • Unification, Connectivity and Object Based Navigation • Knowledge Management & Collaboration • Enterprise Portal Migration Business Intelligence • BI General • Business Content and Extractors • Data Warehousing • BI Suite – Business Explorer • Business Planning • BI in SAP NetWeaver 2004s Industries • Industry Solutions General • IS-OIL-Downstream and Upstream (PRA) • Public Sector • Defense • Higher Education & Research • Healthcare • IS - Media Application Server • NetWeaver AS, General • Web AS Preview Installation • Business Server Pages (BSP) • Web Dynpro ABAP • Web Dynpro Java • Internet Transaction Server (ITS) • SAP GUI • WebAS Migration • Java Programming • Java EE 5 @ SAP • Java Development Infrastructure (JDI) • NetWeaver AS, Java ABAP Development • ABAP, General • ABAP Dictionary • Form Printing • UI Programming • Enhancements and Modifications • ABAP Performance and Tuning • Data Transfers • ABAP Objects Emerging Technologies • Technology & Tools • RFID • SAP xApps • SAP xMII • User Experience & Design • Duet • SAP NetWeaver Enterprise Search • Enterprise Widgets Scripting Languages • Scripting, General • PHP Development • Ruby and Ruby on Rails Community Discussions • Suggestions and Comments • Coffee Corner • Trials, Previews & Other Downloads • SAP Certified Professionals • SAP TechEd • SAP Mac Users • Test & Playground Forum • SAP 2.0 - We want to know what you think! Integration and Certification Center (ICC) General Questions • Software Integration and Certification • Hosted test systems for ISVs and partners SAP NetWeaver - Web Application Server • ABAP Add-ons • J2EE-DEP - Deployment on J2EE Engine • Security • Business Communication • System Management • Messaging • Web AS - General SAP NetWeaver - Auto ID Infrastructure • SAP Auto ID Infrastructure SAP NetWeaver - Business Intelligence • Business Intelligence SAP NetWeaver - Enterprise Portal • Enterprise Portal SAP NetWeaver - Exchange Infrastructure • Exchange Infrastructure Human Resources • Human Resources Product life-cycle management • Product life-cycle management Supply Chain Management • Supply Chain Management Supplier Relationship Management • Supplier Relationship Management Small and Medium-sized Businesses • B1-SDK - SAP Business One Add-on Solution Certification

Date Range: AllYesterday - 8/13/07Last 7 Days - 8/7/07Last 30 Days - 7/15/07Last 90 Days - 5/16/07This Year - 1/1/07Last Year - 1/1/06

Results Per Page: 101530

Welcome, Clemens Li

Your Control Panel

Your Reward Points

Your Questions

Search Results » Messages: 35 - Search Terms: REFRESH,CLEAR AND FREE Sort by: Relevance Date

Pages: 3 1 2 3

FREE, REFRESH , CLEAR ?

Posted on: Aug 11, 2007 8:54 PM, by user: spart cus -- Relevance: 100% -- Show all results within this thread

what is FREE, REFRESH , CLEAR ? what is the purpose of it ? what is the functionality of them ? what is the difference ...

Re: refresh,clear,free

Posted on: Jun 5, 2007 4:52 PM, by user: Seshu Maramreddy -- Relevance: 97% -- Show all results within this thread

Clear : it clear header of the internal table refresh : it clear body of the internal table free : it clear body of the internal table and it will deallocates the memory Refresh and Free comman ...

difference between refresh and clear[] .

Posted on: Feb 7, 2007 7:33 AM, by user: rajesh kumar -- Relevance: 14% -- Show all results within this thread

what is the main difference between refresh and clear and free.

Re: **INTERNAL TABLE*

Posted on: Feb 28, 2007 7:54 PM, by user: Ashwani Mittal -- Relevance: 8% -- Show all results within this thread

CLEAR : clear the contents of the ITAB REFRESH: clear the contents and header of the ITAB. FREE : freeing it from the memory. hope this wll help Ashwani ...

Re: METHOD DESTRUCTOR

Posted on: Jan 30, 2006 10:09 AM, by user: Nail Akin -- Relevance: 7% -- Show all results within this thread

I can not write anything in destructor. When I write refresh and clear commands, the same error occured, and my X_APP_EXCEL is an ole object. I have to free this object. But I do not ...

Re: buffer memory

Posted on: Jun 11, 2007 11:58 AM, by user: Atish Sarda -- Relevance: 7% -- Show all results within this thread

Hi Varad, Clear - Mostly to clear work area of table, can clear the table data also if given with [] refresh ...

Re: Small Doubt in Internal Table

Posted on: Aug 17, 2006 1:20 PM, by user: Jignesh Patel -- Relevance: 7% -- Show all results within this thread

Hi, There are two commands which you may have used. REFRESH and FREE. if you use refresh then ...

Re: refresh and clear

Posted on: Mar 8, 2007 5:21 AM, by user: Sesh Madala -- Relevance: 6% -- Show all results within this thread

Hi, If the internal table is with out header line then use CLEAR otherwsie use REFRESH to clear the ...

Re: ALV Toolbarcustom button problem

Posted on: Dec 19, 2005 8:25 PM, by user: Suman Kumar -- Relevance: 6% -- Show all results within this thread

Hi, The problem is you are not refreshing the internal table of the tool list. Else you can add code ...

Re: HELLO

Posted on: Jan 25, 2007 8:11 PM, by user: Ashvender Kumar -- Relevance: 6% -- Show all results within this thread

Hi Darsh, You can use Clear to clear the header line. & Refresh to clear the body of internal table. Refresh ...

Re: Optimization

Posted on: Dec 1, 2005 10:15 PM, by user: Rich Heilman -- Relevance: 6% -- Show all results within this thread

Refresh will clear out the internal table, but not free up the memory. It will not improve performance. Use FREE when you want to unallocate ...

abap queries....

Posted on: Apr 11, 2007 2:28 PM, by user: Ratish Kaimal -- Relevance: 5% -- Show all results within this thread

me out... 1) can we pass more than 1 sapscript to the same print program at the same time? if yes, how? 2) what is self join, equi join and outer join? 3)can you gv me a sample code as to hw to ...

Re: diff refresh Vs clear of internal table

Posted on: May 23, 2006 2:07 PM, by user: Sylendra Prasad -- Relevance: 5% -- Show all results within this thread

Hi , REFRESH and CLEAR are the various methods for initializing Internal Tables. examples: CLEAR ...

Re: back ground processing

Posted on: Mar 14, 2007 6:35 PM, by user: Ferry Lianto -- Relevance: 5% -- Show all results within this thread

Hi, If the dump indicates that there are more than 100K records in the internal table, then the only ...

Re: FREE itab.

Posted on: Oct 21, 2005 7:35 AM, by user: sasikumar palanichamy -- Relevance: 5% -- Show all results within this thread

hi, clear itab - clears only header line refresh itab- clears body of the internal table Free itab ...

Pages: 3 1 2 3

Regards,

Clemens

Read only

Former Member
0 Likes
575

Hi Nagesh,

Welcome to SDN...

REFRESH ITAB[] - Will refresh the content in internal table ie delete the entires in internal table

CLEAR ITAB - Will clear the header line content of internal table

FREE ITAB - Resets any data object f to the correct initial value for its type and FREE also releases any resources connected with the data object.

Thanks,

Vinay

Read only

Former Member
0 Likes
576

HI,

We have two cases to consider and understand the behaviour of these statements.

1) internal table with header line.

refresh : will delete the conent of the body of the internal table

clear : will clear the condent of the header line of the internal table

free : will delete the content and also free the memory occupied by the internal table

2) internal table without header line

refresh/clear : will delete the content of the interla table body (No header line exist for this table)

free : delete the records and free the momory.

Thnaks

Mahesh

Read only

Former Member
0 Likes
575

Hi Nagesh,

Refresh Itab[] - This deletes the whole records/contents/data of the internal table body.

Clear Itab - This deletes the data/record/content of the internal table's header.

Free Itab - This deletes all the records and releases the memory allocated for the Internal table.

Hope this helps.

Please reward if useful.

Thanks,

Srinivasa

Read only

Former Member
0 Likes
575

thanks...