0 votes
in SAP by

Can You Print Decimals In Type N? What Is Difference Between Float And Packed Data Type?

1 Answer

0 votes
by

No, we cannot print decimals in type N because decimal places are not permitted with N data type.

Float Data Type: It cannot be declared in Parameters.
Packed Number: It can be declared in Parameters.
For e.g.
PARAMETERS: A(4) TYPE P DECIMALS 2, B(4) TYPE P DECIMALS 2.

DATA: C(4) TYPE P DECIMALS 2.

C = A + B.

WRITE : / ‘THE SUM IS’ , C.

Related questions

0 votes
asked Mar 23, 2020 in SAP by AdilsonLima
0 votes
asked Mar 23, 2020 in SAP by AdilsonLima
...