‎2009 Jan 14 9:30 PM
Hi there,
I have a question. I am adding coding to an include of SAP (modification). In this include SAP has disabled the checkbox for the Fixed point arithmetic in the attributes. Now I have the problem that I want to activate this flag for my inserted coding and after my coding I want to set it back to the original value.
Is there any statement that gives me this option in ABAP for example?
Thank you very much.
Kind regards
Max
‎2009 Jan 14 9:49 PM
I'm guessing you are doing some calculations that you need higher precision to do properly.
Instead of doing your code in the SAP program, you can call a Z function module with the attribute checked. This will leave less work at upgrade time as well.
Rob
‎2009 Jan 14 9:37 PM
I want to activate this flag for my inserted coding
and after my coding I want to set it back to the original value.
This not makes any sense.
Since you will again set Fixed point arithmetic's value back to original,
than what would impact to your piece of code?
As include always associate with some other main program,
and it will only execute once the main program executes.
And after set the Fixed point arithmetic back to original, do you think you will find any change?
‎2009 Jan 14 9:49 PM
I'm guessing you are doing some calculations that you need higher precision to do properly.
Instead of doing your code in the SAP program, you can call a Z function module with the attribute checked. This will leave less work at upgrade time as well.
Rob
‎2009 Feb 19 1:14 PM
Hello Rob,
as I'm currently having the same question, I valued your answer with the function module, as this could solve my requirement as well, as I temporarily need more precision within a calculation. I could also use other ABAP data types, moving the variable's content back and forth.
But I also wonder, if there's an in-line statement, e.g.
set extended check off/on... that is similar to the check-box "fixed point arithmetic", so you could temporarily switch the attribute at runtime.
Any ideas here?
Florin