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: 

KONV-KAWRT number of decimals

0 Kudos

The condition base value of a condition is always stored with 2 decimals in KONV-KAWRT, regardless of the actual number of decimals which depends on the unit in KONV-KMEIN. For example, 500 G (gram) is stored as 5000.00 G because G really has 3 decimals.

When viewing a condition in VA03 or VF03, SAP will show the condition base value with the right number of decimals.

My question: how can I determine the actual number of decimals myself? I thought it might be in T006-ANDEC, but that's not it.

5 REPLIES 5

former_member222709
Contributor
0 Kudos

Dear Filip,

Try the following simple syntax:

DATA: FLD(8) TYPE P DECIMALS 2, DEC TYPE P. DESCRIBE FIELD FLD DECIMALS DEC. DESCRIBE FIELD KONV-KAWRT DECIMALS DEC.

Regards,

Pranav.

0 Kudos

That just says konv-kawrt has 2 decimals, regardless of the unit.

kesavadas_thekkillath
Active Contributor
0 Kudos

Just check the function module J_1B_IM_TX_CALCULATE_TAX_NEW, you will find the logic behind it.

Refer the line no's 415,439,442.

0 Kudos

The line numbers don't match anything useful, probably because of enhancements from an SAP note. Can you copy/paste those lines pls, then I can find them and analyse the logic.

This is relevant for a units like grams and meters though, right? Not just currencies.

kesavadas_thekkillath
Active Contributor
0 Kudos

Please check whether it converts the condition value to the unit of measure of the target item while calculating..