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

Re: ALV SALV OOP - Number alignment

$
0
0

Hi Jim,

No, you don't have to change the column type to char for this.

 

Since you are using ALV object model (CL_SALV_TABLE) here's what you do to align the amount column.

 

  1. Get object reference to class CL_SALV_TABLE through method FACTORY( ).
  2. Get object reference to class CL_SALV_COLUMNS_TABLE through method GET_COLUMNS( ) of CL_SALV_TABLE
  3. Get object reference to class CL_SALV_COLUMN through method GET_COLUMN( ) of CL_SALV_COLUMNS_TABLE and
  4. Go through the various GET and SET methods of CL_SALV_COLUMN to influence the way data is displayed on the ALV. In your case use method SET_ALIGNMENT( ) and pass values from the interface IF_SALV_C_ALIGNMENT.

 

This should work unless I have misunderstood your requirement.

 

Regards,

David


Viewing all articles
Browse latest Browse all 8540

Trending Articles



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