i have used the below logic
l_kg LIKE afko-igmng,
g_total_to_store_mseg LIKE afko-igmng,
menge TYPE zti_recipe_usage-menge,
l_kg = g_total_to_store_mseg * tbl_recipe_mseg-menge.
iam getting the below error in the dump
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_ARITHMETIC_OVERFLOW', was not
procedure "GET_KG_TO_STORE_MSEG" "(FORM)", nor was it propagated by a RAISING
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
An overflow was discovered in an ongoing arithmetical operation with
operands of type P. Possible causes are:
1. The result field of type P is too small for the result.
2. The result or a intermediate result has more than 31 decimal places.