In my ALV output, i ll select some records and i ll click CRETAE INVOICE button to create invoice for the selected rows.
To count the selected rows in the primary ALV , i am using a loop .
But it is bringing performance issue, So to avoid that , what statement i can use to increase my performance.
This is greater issue for me. I am using normal ABAP coding only, not OOPS.
Is there any option to count the number of records ?
You can try the following code.
Create another internal table of same type as your output internal table.
loop at gt_output into gs_output where box = 'X'.
append gs_output to lt_selected_rows.
describe table lt_selected_rows lines l_line.
reward points if useful,