cancel
Showing results for 
Search instead for 
Did you mean: 

ALV: SET_COUNT_RECORDS_ALLOWED

daniel_humberg
Contributor
0 Kudos

I am looking for an example of the method SET_COUNT_RECORDS_ALLOWED, which you can use in an ALV to give the user a way to count the records in an ALV.

I tried to enable it, but there was no result.

Any examples?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Daniel

SET_AGGREGATION_ALLOWED should be set as enabled then only you can set SET_COUNT_RECORDS_ALLOWED.

after setting SET_AGGREGATION_ALLOWED this will enable calculation tab on setting dialog box.

After then use SET_COUNT_RECORDS_ALLOWED.

to enable the count record checkbox.

lr_std->SET_AGGREGATION_ALLOWED( abap_true ).

lr_std->set_count_records_allowed( abap_true ).

Regards

Naresh

daniel_humberg
Contributor
0 Kudos

I had done this already.

But I expected the checkbox to show up somewhere in the table header, and not in the dialog settings.

Now I know where to look.

Thx for the help

Answers (0)