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: 

Top N records in ALV

rahulv6
Explorer
0 Kudos

Hello all,

I was trying to sort a field by equipment number in the ALV display. The functional guy wants me to show only the top 25 equipment details in the ALV report.

There is a trasaction MCI8 where he showed me a push button (Top N), which would give me a pop up asking for how many records I want to see (25 in my case), and then it would display those 25.

Anyone with ideas, solution please help me.

Thanks,

~V

1 REPLY 1

Former Member
0 Kudos

Hi,

Goto program RMCS0UCO Line 296 which contains coding for TOP user code which gets triggered in MCI8.

PERFORM HITLISTE_ANZEIGEN USING TRUE.

SAP uses function module 'POPUP_GET_VALUES_USER_CHECKED'.

You can use this logic in your program.

Hope this helps.

ashish