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

Former Member
0 Likes
781

Hi,

In the standard Bapi for routing (Bapi_routing_create)we had the code as

refresh return.

clear: group,

groupcounter,

return.

Here Refresh Return which deletes all the rows from the intrenal table. Then why we using

Clear Return in the above code.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
754

HI,

return might be an internal table with header line.

refresh return will clear the lines in the internal table

clear return will clear the header line.

rgds,

bharat.

5 REPLIES 5
Read only

Former Member
0 Likes
754

HI Ram,

I guess the 'RETURN will be internal table with header.

Refresh return clears value in the internal table and Clear Return clears the value in Header Area of the return.

Hope this answers your query.

Thanks,

Arun

Read only

JoffyJohn
Active Contributor
0 Likes
754

Clear ITAB : This Statement will clear the Internal Table Header content.

To clear the Intertal Table Hearder as well Body we can use Clear ITAB [ ] statement.

Refresh will deletes the Internal Table content but still memory is not freed.

Read only

JoffyJohn
Active Contributor
0 Likes
754

Refresh is used to refresh the body contents of the internal table. This is used if in case internal table is not declared with header line.

Clear is used to clear the contents in the work area or header line.

Clear[] is similar to refresh itab - This refresh the contents of the body.

Read only

Former Member
0 Likes
754

Hi,

Refresh <itab> : eg: refresh itab will delete all the records in the internal table and not the header of the internal table..This is similar to Clear <itab>[]..

Clear itab will only clear the header of the internal table and not the records of the internal table...

Hence they have used both the clear and refresh

Reward if useful

Regards

Shiva

Read only

Former Member
0 Likes
755

HI,

return might be an internal table with header line.

refresh return will clear the lines in the internal table

clear return will clear the header line.

rgds,

bharat.