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: 

reg alv

Former Member
0 Kudos

hi all

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 ?

VERY URGENT

Regards '

KARTHIK

2 REPLIES 2

Former Member
0 Kudos

Hi karthikeyan,

In which way you filter your records.

1. By deleting record if not selected.

2. By transferring it to another table if selected.

Second method is more preferable..

As you are not using OOPS, you will not able to use methods directly..

Regards,

Mohaiyuddin.

former_member200338
Active Contributor
0 Kudos

Hi,

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.

endloop.

describe table lt_selected_rows lines l_line.

reward points if useful,

Regars,

Niyaz