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: 

Debugging Work area

shivangi_pant
Participant
0 Kudos
343

Hi Experts, i have a question. While debugging any report i used to write [] with work area (ls_work[]) name but in some cases it gives error as "invalid variable" but runs without [] (ls_work). Can you explain the difference and error?

1 ACCEPTED SOLUTION

abityildiz
Active Participant
0 Kudos
297

Hello,

[] brackets means has a array lists.Internal tables has array lists.

work area is only one record and has a one record.when you debug work area use to without []

3 REPLIES 3

abityildiz
Active Participant
0 Kudos
298

Hello,

[] brackets means has a array lists.Internal tables has array lists.

work area is only one record and has a one record.when you debug work area use to without []

0 Kudos
297

Thank you. However i still dont understand why is works sometimes?

matt
Active Contributor
0 Kudos
297

It works when the table has a header line - e.g. with select options. However, outside of select options, you should not use tables with header lines.