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 dictionary

Former Member
0 Likes
503

hi experts,

in data dictionary we have 7 components i.e DBtable,view,

datatype,domain,S.H,lock objects.

I want to know what is the use of datatype,type group

pls explain in detail.

Regards,

L.cnu

4 REPLIES 4
Read only

Former Member
0 Likes
478

Hi,

In the data type you can maintain the following elements..

DATA ELEMENTS

STRUCTURES

TABLE TYPES..

o Data elements (elementary types)

Elementary types have no structure. They describe the data type

attributes (such as given Dictionary data type, number of places)

and information that is relevant for the screen (such as title) of

unstructured data objects (variables/fields).

o Structures (structured types)

Structured types describe the structure and functions of any

structured data objects, that is of data structures with components

of any type.

A component can be a field with an elementary type or can itself be

a structure. A table can also be used as a component in a structure.

A database table always has a structure and is therefore implicitly

a structured type. However, the fields of a database table can only

have an elementary type.

o Table types

Table types describe the structure and functions of internal tables

in the ABAP program. Their rows can have any row type. Table types

with elementary row type therefore can be defined just the same as

multi-dimensional table types (table types with a table type as row

type) or table types using structures with table-like components.

Press F1 in the data type field..You will get a detailed documentation.

Thanks,

Naren

Read only

Former Member
0 Likes
478

Hi

1. data type: here we can create 'z'

data elements,

structures and

table types .

2. type group: here you can define few types which are common to some programs. Without retyping in all the programs you can simply include (with the command ty-pools) the above type-group and use all the types in the alv.

eg: ty-pools slis.

which is used for alv's

Read only

0 Likes
478

hi,

In simple words,

datatype means same like in any ther pgming language.

eg : int, char, num, string etc.

type group means ,

its a pool of commonly used structres, types and internal table.

so in the pgm just declare TY-POOLS SLIS.

so this eg: slis is a group whic contain commonly used

in the ALV display.

so its like a directory.

we are including tat direc tory in our pgm.

so we can use the files inside it.

hope u got a clear idea.

rgds

anver

pls mark helpful answers

Read only

Former Member
0 Likes
478

Hi,

<u><b>Data Type:</b></u>

Data types can be divided into elementary, reference, and complex types.

Some of the examples are Character (C), Numeric character (N), Date (D), and Time (T), Byte field (X),Integer (I), Floating-point number (F) and Packed number (P).

You can define data types at various levels in the R/3 System.Some ABAP statements allow you to use the TYPE addition to refer to an existing data type. The data types must be visible in the program for this to work.When working with data, it is important to know whether data types are compatible or not.

<u><b>Type-Group:</b></u>

It contains the definitions of the ABAP/4 types.

Basic form TYPE-POOL type pool.

The name <type_pool> is to consist of the name of the development class and one or two additional characters. The names of all types must start with the name of the type group and an underscore.

Example

TYPE-POOL ABCDE.

TYPES: ABCDE_PACKED TYPE P,

ABCDE_INT TYPE I.

P.S. Mark all helpful answers for points.

JLN