Skip to Content
0
Former Member
Dec 01, 2009 at 04:34 PM

Display - Number of records in OOPS ALV

530 Views

Hi,

I need to display the serial number for each record in OOPs ALV, to achieve this i just created separate field in the alv output table and incremented the counter based on the number of entries. Since user has 'Filter' option at the ALV output when user filter some of the records then count (S.No) was not changing. Could any one let me know how to handle this. Right now PAI / PBO is not at all triggering when FILTER option used in ALV.

First time display: 

S.No#    Document#   Doc type#
1           XXXXXXXX   AA
2           YYYYYYY   BB
3           ZZZZZZZZ  AA

If output FILTERed based on the document type: AA 
then it was showing as 
S.No#    Document#   Doc type#
1           XXXXXXXX   AA
3           ZZZZZZZZ  AA

Note: S.No# was not changing as per present display since PAI/PBO was not triggering, and i hope even it gets triggered its difficult to handle, i mean to change the data in the internal table based on standard FILTER option. And one more thing that i need to display total number of records also based on any FILTERation.