‎2007 Feb 19 5:26 AM
folks ,
my program is throwing a dump .
the line of error is compute erfmg = tab-erfmg / 100 .
value of tab-erfmg is 00200.
and erfmg is of type char 6 .
can anyone suggest why it is thrwoing a dump and what is the role of compute .?
thanks,
abhishek
‎2007 Feb 19 5:28 AM
Abhishek,
Change the type of the variable to I or P or N depending on the req.
That will not give you any dump...
Thanks
‎2007 Feb 19 5:29 AM
Hi Abhishek ,
What is the dump message it is displaying.
Regards
Arun
‎2007 Feb 19 5:30 AM
hi declare result varibale as type n instead of type C.
demo code -
data d1(5) type c.
data d2 type n.
d1 = '00200'.
d2 = d1 / 100.
write: d2.
‎2007 Feb 19 5:31 AM
‎2007 Feb 19 5:34 AM
TRY TO TAKE IT IN TYPE P VARIABLE AND CALCULATE THAT AFTER CALCULATION YOU CAN TAKE IT IN CHAR VAR.
OR
JUST CHECK IN ABAP EDITOR MENU
GOTO---->ATTRIBUTES.
FIXED POINT ARITHMETIC IS TICKED OR NOT ?
JUST MAKE A TICK THERE.
REGARDS
SHIBA DUTTA