Application Development 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: 

I have found some Code: is it necessary to do this: "clear lt_return, lt_return[]."

a142367
Explorer
0 Kudos

I have found some Code: is it necessary to do this: "clear lt_return, lt_return[]."

is it not redundant to do this:

clear: lt_return, lt_return[]."

would not the following statement achieve the same result:

clear lt_return.

2 REPLIES 2

raymond_giuseppi
Active Contributor

Basically, is lt_return an internal table with an (obsolete) header line?

Sandra_Rossi
Active Contributor
  • lt_return and lt_return[] are equivalent if it's an internal table without a header line.
  • lt_return and lt_return[] are not equivalent if it's an internal table with a header line.
  • See documentation link given by Raymond.