Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9218

Re: Sorting amounts and quantities in ABAP

$
0
0

Hi

 

That means you need an additional field which amount converted to the same currency

 

 

DATA: BEGIN OF ITAB OCCURS 0,

             AMOUNT,

             CURRENCY,

            AMOUNT_CONVERTED,

            .................

 

 

SORT ITAB BY AMOUNT_CONVERTED

 

 

You can use fm CONVERT_TO_FOREIGN_CURRENCY or CONVERT_TO_LOCAL_CURRENCY to convert the amount

 

But this solution can be used for amount, because the dimension of the value is the same, you can have some problem with the quantity:

 

You can sort the Hour and weight together...for example

 

Max


Viewing all articles
Browse latest Browse all 9218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>