Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

data types in ABAP

Former Member
0 Likes
306

what is the significance of initial field and valid field in data type like float,numeric,int etc.

1 REPLY 1
Read only

Former Member
0 Likes
278

hi,

With data types p, n, c, and X you can enter a length in parentheses after the type name. If no length

is entered, the default length for this data type is used.

With data type P you can use the DECIMALS addition to determine the number of decimal places that

should be used (up to a maximum of 14). If this addition is missing, the number of decimal places is

set to zero.

If you do not specify a type, then the field is automatically type C.

All other literals (character, numbers with decimal places, floating point numbers) are stored as text

literals with data type C. If a literal is assigned to a variable that does not have type C, then a type

conversion is carried out.

The length specification after the type name for ABAP data types C, N, and X specifies the number of

characters in the type. For type P fields, you can also set the number of decimal places. If you omit

these specifications, the system uses the default values

Hope this helps, Do reward.

Edited by: Runal Singh on Feb 11, 2008 12:18 PM