cancel
Showing results for 
Search instead for 
Did you mean: 

How to set fixed point arithmetic in INCLUDE program?

Former Member
0 Kudos

Hi Experts,

I'm creating an INCLUDE program responsible for packed/floating point computations. This INCLUDE program is called in an enhancement in a SAP standard program. Since I cannot modify attributes in the SAP standard program, and include programs do not have the attribute for "fixed point arithmetic", is there any way of coding to activate/tick this attribute?

Thanks in Advance,

Jack

Accepted Solutions (1)

Accepted Solutions (1)

martin_roldan
Participant
0 Kudos

Hi,

You could call a Function Module from your INCLUDE and activate "fixed point arithmetic" for the Function Group. This FM should be responsible for packed/floating point computations.

Martin

Former Member
0 Kudos

Is there an FM for activating the fixed point arithmetic in a program?

martin_roldan
Participant
0 Kudos

No, what I mean is that you can create a FM to do your packed/floating point computations.

Answers (2)

Answers (2)

Former Member
0 Kudos

To clear what others point-out.

If you create an include, that is just a plain single file, like would be in other programming languages. The same situation is in ABAP. If you want to change the properties of the program (like fixed point arithmetics in your situation), you have to change it in the main program, where your include is used. Your main program is either the module-pool, report, main program of your function group etc. So if this is your custom abap development, you have to find the place, where your include is being used and change the property there. If that is an SAP standard program, then you could have a problem, 'case that change would mean a repairment.

wol
Active Participant
0 Kudos

Hi Jack,

to clear things:

I think Martin implies that you turn on fixed point arithmetic in the function group of your function module:

Greets

Stefan