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: 

Currency CURR type with more than 2 decimals ALV bug

gubp
Participant
0 Kudos

I just realized that we MUST NOT use CURR type with more than 2 decimals, even if SAP allow us to do so.

I created a DOMAIN with Data Type CURR and 8 decimal places:

Look at what happens at SE16N Details:

There is NO Conversion Routine at the Domain, only standard CURR type.


The problem is any ALV I try to display or SE16N, values on LEFT are showing on Output.

I could set DECIMALS on SALV using CL_SALV_COLUMN->SET_DECIMALS( '8' ), but it will only add ZEROS

(Ex above TOTFRDOC would be 11,006,361.60000000 instead of 11.00636160) .

I could not found any SE16N settings to fix that. (or any SAP Note).

I could only fix that using DataType DEC instead. Any plausible solution for that?

Thanks,

1 ACCEPTED SOLUTION

gubp
Participant
0 Kudos

out of curiosity...

there are 57 standard domains type CURR with more than 2 decimals in my SAP system,
109 standard tables using that without any conversion...
Most of them are rates with 4 decimals, so when converting to 2 decimals it shows value multiplied by 100, as percentage.
1 REPLY 1

gubp
Participant
0 Kudos

out of curiosity...

there are 57 standard domains type CURR with more than 2 decimals in my SAP system,
109 standard tables using that without any conversion...
Most of them are rates with 4 decimals, so when converting to 2 decimals it shows value multiplied by 100, as percentage.