I need to do a numeric(divide) operation with larger decimal value. I have given the example below.
var1 = 12345678 ( 8 digits )
Var2 = 98765432 ( 8 digits )
I want to store the above numbers in a variable,
CONCATENATE var1 "." Var2 INTO var3.
var3 = "12345678.98765432"
var4 = var3 / 1000 ( this 1000 is variable between 1 to 100000000 )
var4 = "12345.67898765432"
and then I need to pick 4 digits before decimal and 5 digits after decimal and Post IDoc for Exchange Rate.
Final output needed = "2345.67898"
I am stuck in this place, TYPE P data store only 16 characters.
Please suggest a solution in this case.