Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

compute ??

Former Member
0 Likes
797

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

5 REPLIES 5
Read only

Former Member
0 Likes
757

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

Read only

Former Member
0 Likes
757

Hi Abhishek ,

What is the dump message it is displaying.

Regards

Arun

Read only

Former Member
0 Likes
757

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.

Read only

abhishek_gupta2
Participant
0 Likes
757

thanks rahul , i have changed it to integer , n its working .

Read only

Former Member
0 Likes
757

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