Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3510

Re: Amount field(P) decimal 2 with internal length more than 15 characters?

$
0
0

Now I see where is the problem.

It is mixture of "Predefined Types in ABAP Dictionary" (DDIC) and "ABAP types".

In debugger you see ABAP type.


From documentation:

TypePermitted Positions mMeaningABAP Type
CHAR1-30000Character stringc, length m
DEC1-31Packed number BCD formatp, length (m+1)/2


  • If a data type CURR, DEC, DF34_DEC, DF16_DEC, or QUAN has an even number of characters (not recommended), the length of the associated ABAP type p is rounded up and hence becomes the next highest uneven number.


In DDIC you have lets say DEC length 31 and in debugger its p length = (31 + 1) / 2 = 16.


Viewing all articles
Browse latest Browse all 3510

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>