‎2008 May 26 8:06 AM
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.
‎2008 May 26 8:11 AM
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.
‎2008 May 26 8:09 AM
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
‎2008 May 26 8:09 AM
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.
‎2008 May 26 8:10 AM
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.
‎2008 May 26 8:10 AM
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
‎2008 May 26 8:11 AM
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.