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 type

Former Member
0 Likes
863

what are all user defined data types?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
803

Numeric:

Integer

Packed

Float

Char:

Char

Numc

Date

Time

Hexa Decimals

Reward if useful

5 REPLIES 5
Read only

Former Member
0 Likes
804

Numeric:

Integer

Packed

Float

Char:

Char

Numc

Date

Time

Hexa Decimals

Reward if useful

Read only

0 Likes
803

data dictionary important Q/A

Read only

Former Member
0 Likes
803

ACCP Posting period YYYYMM

CHAR Character string

CLNT Client

CUKY Currency key, referenced by CURR fields

CURR Currency field, stored as DEC

DATS Date field (YYYYMMDD) stored as char(8)

DEC Counter or amount field with comma and sign

FLTP Floating point number, accurate to 8 bytes

INT1 1-byte integer, integer number <= 255

INT2 2-byte integer, only for length field before LCHR or LRAW

INT4 4-byte integer, integer number with sign

LANG Language key

LCHR Long character string, requires preceding INT2 field

LRAW Long byte string, requires preceding INT2 field

NUMC Character string with only digits

PREC Precision of a QUAN field

QUAN Quantity field, points to a unit field with format UNIT

RAW Uninterpreted sequence of bytes

RAWSTRING Byte String of Variable Length

SSTRING Short Character String of Variable Length

STRING Character String of Variable Length

TIMS Time field (hhmmss), stored as char(6)

VARC Long character string, no longer supported from Rel. 3.0

UNIT Unit key for QUAN fields

Read only

Former Member
0 Likes
803

hi

Two types of data types are there.

1) Predefined

2) User defined.

Again User defined Data types devided into two types

a) Local type

b) global type

Predefined : it is used to specify the types of individual field whose lenghts are fixed.

numeric(I,F,P)

Charcter(C,D,N,T)

Hexadecimal type(X)

Predefined Elementary type with variable length (String for char String,XString for byte String)

User Defined : Defined by user in the program as well as out side the program in abap dictinary.

in Local data type we declare the type in the program using predefined data type.

Elementary:

types : t (<length>) type <type>

Structure type :

types : begin of <struct>

.

end of <struct>.

table type :

types : <t> type\like <tabkind> of <line type> [with <key>].

types

in global data type we define Type Group which contain more than one types or constant names. Using Type-Pool statement we can retrive necessary types from the type group in the abap program.

Read only

Former Member
0 Likes
803

Thx for the pts