2008 May 29 3:57 PM
Hi,
While declaring the type 'P' (Packed decimal) variable, should we provide the length. If we do not provide the length how munch length will it consider by default..?
I declared like below.
DATA: w_matprice TYPE P DECIMALS 3.
It didn't give any syntax error. So, will it provide length by default.
Please answer.
Thanks in advance.
Best Regards,
Paddu.
Hi,
While declaring the type 'P' (Packed decimal) variable, should we provide the length. If we do not provide the length how munch length will it consider by default..?
I declared like below.
DATA: w_matprice TYPE P DECIMALS 3.
It didn't give any syntax error. So, will it provide length by default.
Please answer.
Thanks in advance.
Best Regards,
Paddu.
2008 May 29 4:00 PM
By default the Packed type (P) has a length of 8.
From the TYPE help in SAP
Type Description of type SL Initial value
C Character 1 Space
N Numeric string 1 '00...0'
D Date (YYYYMMDD) 8 '00000000'
T Time: HHMMSS) 6 '000000'
X Byte (hexadecimal) 1 X'00'
I Integer 4 0
P Packed number 8 0
F Floating point number 8 '0.0'
2008 May 29 4:03 PM
Hi,
Check out the below details for your declaration ...
Type P
Length 8
Output length 17
Decimal places 3
2008 May 29 4:03 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |