Hello,
I have seen many questions regarding the same but no solution work for me.
PROBLEM: GET_SELECTED_ROWS returns the selected index the first time when a button is triggered but does not return any value the second time even after refreshing ...
Q1. In 2019, what are the best practices to follow while coding in ABAP?
Q2. Have a look at my code and let me know, how can I optimize it. Also, please let me know how can I remove "TABLES".
Thanks.
*----------------------------------------...
LINE SELECTION IS NOT WORKING PROPERLY.
FIRST SCREEN: MARA-MATNR & MAKT-MAKTG
LINE SELECTION SCREEN: MATNR ERSDA ERNAM LAEDA MTART MATKL MEINS LGORT WERKS
SELECTION SCREEN ------ Works Fine.
FIRST SCREEN ---- Works Fine.
LINE SELECT...
-> you don't need to create again and again the same objects reference (container and grid) only create when initial/inactive.Thank You, it worked.IF GRID1 IS INITIAL AND GRID2 IS INITIAL.
Thank you for answering chandchitme.As I can see you have added:CALL METHOD cl_gui_cfw=>flush.gs_layout-SEL_MODE = 'D'.AND an Internal table IT_FINAL2.But it does not work the second time ο