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

our own data types

Former Member
0 Likes
1,685

Can anybody tell me , How to create our own data types give me the eg pls.

Regards,

swathi.

5 REPLIES 5
Read only

Former Member
0 Likes
1,085

Hi,

What kind of data type that you want to create?

Domain, Data Element, Structure or Table Type ?

But generaly you can do it by:

1. Run TCode: SE11

2. Select data type and type your data type name.

3. Click button Create.

4. Select what kind of data type that you want to create ( Data Element, Structure, Table Type )

Regards,

Read only

varma_narayana
Active Contributor
0 Likes
1,085

Hi Swathi..

We can Create user defined data types in two ways.

1. Global data types: in SE11.

Data elements, Structures, Table types and Type pools.

2. Local data types in program.

Eg:

types: begin of name,

FirstName(30),

Lastname(30),

end of name.

<b>reward if Helpful</b>

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,085

Hi,

General program guideline is to create a Doman, then Create Data elements, then use these Data elements to create Structures and Tables.

So SE11-> Domain to create the Domain

SE11-> Data type->Data element OR Structure or Table Type.

You can also create your own TYPE POOLS.

Use SE11->Type Group for that.

Regards,

Sesh

Read only

Former Member
1,085

Hi swathi,

You are asking about the data types...

We cannot create usr defined data types.. Data types are already provided by SAP. Basic data types like C, N, I, D, T, P etc.. and derived data types like INT3, CURR, CUKY, CLNT etc..

However, we can create domains.. but they are not actually the data types as inside you will again be referring to the SAP provided data types..

You can create domains or can create data variables in type pools but in actual you will always refer to sap data types..

Thanks and Best Regards,

Vikas Bittera.

**Points for useful answers**

Read only

Former Member
0 Likes
1,085

hi,

We can Create user defined data types in two ways.

1. Global data types: in SE11.

goto se11 -> data type -> give name create -> u ll get a window with 3 options :: structure, table type, type group...........

and also u can create ur own domains which are helpful for creating data element [user defined] using which we can create user defined tables also...........

2. Local data types in program are created using TYPES keyword. using TYPES keyword u can create a structure which can taken as areference for creating user defined internal tables later.

for Eg:

types: begin of name,

madt like mara-mandt,

FirstName(30) type s,

Lastname(30) type s,

end of name.

data: suresh type name occurs 0 with header line.

where suresh is a internal table [user defined which has also standard data filed] of type name [ which is again a user defined data structure].

note: while creating internal tables for user defined structures [structures wwhich are created using TYPES keyword] , we should not use LIKE statement as LIKE used for existing DATA objects of sap.

if helpful reward some points.

with regards,

Suresh Aluri.