Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Decimals Confusion ?

Hi,

I declared a variable in this manner

<b>data : w_zkprs(15) type p decimals 4.</b>

My guess is the total length is 15 of which 4 are for decimals and 1 for dot and rest for the number . Is that right ?

Regards,

Ben.

Tags:
Former Member
replied

In the case of TYPE P, your output length will always be double of your definition plus 1. This is the way packed fields work, you get 2 for 1.

Regards,

Rich Heilman

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question