0% found this document useful (0 votes)
3 views

source+code

The report ZDINTEGER discusses the characteristics of different data types in programming, specifically focusing on INTEGER, NUMERIC, and PACKED types. It highlights that INTEGER cannot hold decimal values but can support negative values, while NUMERIC does not support negative values. The report also mentions that PACKED types can ignore decimal values unless specified.

Uploaded by

venkatesh ravi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

source+code

The report ZDINTEGER discusses the characteristics of different data types in programming, specifically focusing on INTEGER, NUMERIC, and PACKED types. It highlights that INTEGER cannot hold decimal values but can support negative values, while NUMERIC does not support negative values. The report also mentions that PACKED types can ignore decimal values unless specified.

Uploaded by

venkatesh ravi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

*&---------------------------------------------------------------------*

*& Report ZDINTEGER


*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
************************************************************ INTEGER DATA
TYPE
*1. VARIABLE WITH DATA TYPE INTEGER CAN NOT HOLD DECIMAL VALUES.
*2.

REPORT ZDINTEGER.

DATA LV_INTEGER TYPE I.

*LV_INTEGER = '111.11'. " DECIMAL VALUE NOT SUPPORTED.


LV_INTEGER = -111. " NEGATIVE VALUES ARE SUPPORTED.

WRITE :/ 'INTEGER DATA TYPE VALUE IS --> ', LV_INTEGER.

ULINE.

DATA LV_NUMERIC(7) TYPE N.

LV_NUMERIC = '112.55'. " DECIMAL VALUE NOT SUPPORTED.


*LV_NUMERIC = -112. " NEGATIVE VALUES ARE NOT UPPORTED.

WRITE :/ 'NUMERIC DATA TYPE VALUE IS --> ', LV_NUMERIC.

ULINE.

DATA LV_PACKED TYPE P DECIMALS 2.

*LV_PACKED = '112.45'. " DECIMAL VALUE ARE IGNORED HERE UNTIL WE ARE NOT
SPECIFYING THE DECIMAL VALUES..
*LV_PACKED = '112.484'.
LV_PACKED = -112. " NEGATIVE VALUES ARE UPPORTED.

WRITE :/ 'PACKED DATA TYPE VALUE IS --> ', LV_PACKED.

You might also like