Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Overflow for arithmetical operation (type P) in program

Hi Gurus,

I am trying to do multiplication of two quantities in this given code.

t_temp1-comp2_qty = v_comp1_qty * t_stpo2-menge.

But qunatity value is coming too large.

So I am getting the "Overflow for arithmetical operation (type P) in program "ZOUM_R021 ".

Actual code is like this.

LOOP AT t_stpo2 WHERE stlnr = t_mast2-stlnr.

t_temp1-idnrk = t_stpo2-idnrk.

t_temp1-bwkey = t_stpo2-werks.

t_temp1-stlnr = t_stpo2-stlnr.

t_temp1-comp2_qty = v_comp1_qty * t_stpo2-menge.

COLLECT t_temp1.

CLEAR t_temp1.

ENDLOOP.

wherer v_comp1_qty and t_stpo2-menge

is already calculated value.

Then please suggest how to avoid this overflow .

Regards,

Amit Kumar Singh

Tags:
Not what you were looking for? View more on this topic or Ask a question