2022 Dec 15 11:34 AM
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?
2022 Dec 15 11:41 AM
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 []
2022 Dec 15 11:41 AM
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 []
2022 Dec 15 11:59 AM
Thank you. However i still dont understand why is works sometimes?
2022 Dec 15 12:23 PM
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.