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

Variable size declaration

Former Member
0 Likes
410

Hi All,

In a ABAP program the Invoice amount is declare .

data : w_amount like konv-kwert , ( which is curr(13) decimal (2).

Due to small in size of amount field , prog gives dump error.

I need to increase the size of this w_amount.

What variable shud i declare .

Can i declare as w_amount type p decimals 2. or suggest

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
378

Hi,

type P decimals 2

should be fine.

Thanks,

Best regards,

Prashant

Read only

Former Member
0 Likes
378

use: w_amount(15) type p decimals 2.

Hope this will help.