Quantcast
Channel: SCN : Popular Discussions - SAP Business Rules Management
Viewing all articles
Browse latest Browse all 1717

Problem when concatenating a string with a number

$
0
0

Hi Experts,

 

I have a BRFplus Function with a top expression that returns a number (length 3, decimal places 0).

The top expression rounds off the decimal places an amount (e. g. round( 48,79 ) = 50.

The result of the top expression is stored in a structure component. The component is of type number (length 3, decimal places 0).

 

Then, a ruleset will be applied. If the value is between 20 and 70, the result shall be concatenated with a string.

E. g. concatenate( 'RB', result ). The expected result would be RB50.

 

However, the (concatenated) result is RB5E+1.

During debugging I found out, that in method ROUND_OFF of class CL_FDT_CALCULATION, which is called when the ROUND functional is executed, the result of 5E+1 is returned. This seems to be the String representation of the value 50 because the internal type is decfloat34.

 

Is this a bug or do I have used the ROUND and CONCAT functionals in a wrong way?

At the moment, I´m a little bit helpless what could I do to get it work.

 

The used release is SAPKB73106.

 

Thanks,

Alex


Viewing all articles
Browse latest Browse all 1717

Trending Articles



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