I have a report RPT1 which uses CL_SALV_TABLE in fullscreen mode (no grid). I assign the program a gui status STATUS1.
I create a second ALV report RPT2 which also uses CL_SALV_TABLE in fullscreen mode. I copy STATUS1 to RPT2 and change the status (i.e: add some function code, remove func codes not needed)
I assign the gui status using cl_salv_table->set_screen_status and my new toolbar displays correctly.
However when I try to hide a button on toolbar using cl_salv_functions_list->set_function(...), it cannot find my function code and I trigger an error. But using debug it can find buttons associated with STATUS1 od RPT1.
Finally, I renamed STATUS1 to STATUS2 in RPT2 and everything works fine.
I'm trying to understand why STATUS1 appears to keep a link to RPT1.