F How to count decimal places using function module in SAP ABAP | CodeTheta

How to count decimal places using function module in SAP ABAP

March 30, 2025

Using a SAP inbuilt function module SWA_DETERMINE_DECIMALS, we can count the number of digits in decimal places.

In import, section we need to pass the number with decimal places and data type should be SWAEXPDEF-EXPR type.
 

In export section, we can get the count of decimal place number and export data type is DFIES-DECIMALS type.

Example: 


Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us. We will reply you as soon as possible.

Post a Comment