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: 

How can we sort up currency field in alv grid??

Former Member
0 Kudos

Hi GUrus,

Can any one suggest me how to sort the currency field in alv grid...Please help me out of this issue..

Thanks in advance!!!

regards,

Kranthi.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

use the sort option of alv , populate the sort table and then send it to ALV function or method.

sort-fieldname = 'CURRENCYFIELD'.

sort-up = 'X'.

append sort to it_sort.

pass this it_sort to ALV function parameter it_sort.

4 REPLIES 4

former_member188685
Active Contributor
0 Kudos

use the sort option of alv , populate the sort table and then send it to ALV function or method.

sort-fieldname = 'CURRENCYFIELD'.

sort-up = 'X'.

append sort to it_sort.

pass this it_sort to ALV function parameter it_sort.

Former Member
0 Kudos

hii,

SAP provides a set of ALV (ABAP List Viewer) & function modules, which can be used to enhance the readability and functionality of any report output.

ALV is a flexible tool used for displaying lists.The tool provides common list functions & can be enhanced by self-defined options.

so u will get the option for sorting in your alv report.

Thanks

Former Member
0 Kudos

Refer:

[http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/BCSRVALV/BCSRVALV.pdf]

Former Member
0 Kudos

thanks A lot