Application Development and Automation 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: 
Read only

Packed data element with decimals 2 inside Implicit enhancement calc.

Former Member
0 Likes
526

Hi all,

I am facing problem with the standard program SAPLKKDI as its attributes doesn't have FIXED POINT ARITHMETIC. As a result my packed data element with 2 decimals product is having extra 2 zero's.

Is there any way to change the attribute of this standard program to set the FIXED POINT ARITHMETIC through some function module ?

SAP recommends FIXED POINT ARITHMETIC as i find the following statement in help.sap.com

Fixed Point Arithmetic

If the attribute Fixed point arithmetic is set for a program, the system rounds type P fields according to the number of decimal places or pads them with zeros The decimal sign in this case is always the period (.), regardless of the useru2019s personal settings. We recommend that you always set the fixed point arithmetic attribute.

Though SAP Recommends this practice, it failed to follow the same for their program for some reason.

I see that many consultants are also facing the same problem but there are no solutions yet.

Please advice.

Hi all,

I am facing problem with the standard program SAPLKKDI as its attributes doesn't have FIXED POINT ARITHMETIC. As a result my packed data element with 2 decimals product is having extra 2 zero's.

Is there any way to change the attribute of this standard program to set the FIXED POINT ARITHMETIC through some function module ?

SAP recommends FIXED POINT ARITHMETIC as i find the following statement in help.sap.com

Fixed Point Arithmetic

If the attribute Fixed point arithmetic is set for a program, the system rounds type P fields according to the number of decimal places or pads them with zeros The decimal sign in this case is always the period (.), regardless of the useru2019s personal settings. We recommend that you always set the fixed point arithmetic attribute.

Though SAP Recommends this practice, it failed to follow the same for their program for some reason.

I see that many consultants are also facing the same problem but there are no solutions yet.

Please advice.

1 REPLY 1
Read only

brad_bohn
Active Contributor
0 Likes
458

Why don't you just work with the setting as-is? There are hundreds, if not thousands, of programs like that and you make adjustments for it in your code. Don't attempt to change the setting or you'll affect all of the includes under that program.