Requires Free Membership to View
DATA: p TYPE p(12) DECIMALS 4,
f TYPE f.
...
TRY.
p = f.
CATCH cx_sy_conversion_overflow.
WRITE:/ 'Overflow'.
ENDTRY.
WRITE: f,p.
Note that calculations involving type p fields are slower than those using type f and type i, so take care when working on these type of fields.
This was first published in January 2006

Join the conversationComment
Share
Comments
Results
Contribute to the conversation