SAP ABAP Question: Download SAP ABAP PDF

Can you print decimals in type N? What is difference between float and packed data type?

Tweet Share WhatsApp

Answer:

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.

Download SAP ABAP PDF Read All 161 SAP ABAP Questions
Previous QuestionNext Question
What is view? Different types of view. Explain?What is step-loop? Explain all the steps?