Application Development and Automation 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: 
Read only

Code for generating Rank

Former Member
0 Likes
386

Hello all,

Below is my requirement. I need to generate the rank for Value$ by plant and $ by plant within a sales org

My itab has the following data format:

Material plant SalesOrg Value$

I need the output as: (no material)

Plant SalesOrg Value$ (Rank $ plant) (Rank $ plant-Sales org).

(Rank $ plant) --> rank for all plants

(Rank $ plant-Sales org) --> rank of plants within a sales org.

Please help with the code...

Thanks,

Ani.

2 REPLIES 2
Read only

Former Member
0 Likes
365

What is the logic of generating ranks?? Like, is it a simple sort in an ascending order

Read only

0 Likes
365

Yes, it would be a sort ascending for all plants and then for plants within a sales org.

Can someone please help me with the code...