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

types

Former Member
0 Likes
986

Hi All,

What is the difference between the structure we declare with type and we define with se11...

plz explain and in which situation we need to define in se11..

Thanks & Regards

Ashu Singh

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
0 Likes
941

Hi

The Types that you create in the SE11 those are global and they can be accessed by any application.

But when you declare a type inside a structure then it is local to the program that you have defined

when you have a situtation where you will use the TYPE in many programs then it is a good idea to define it in a SE11

and when you have very less use or if you are using once in a program then go for a STRUCTURE

Regards

pavan

8 REPLIES 8
Read only

bpawanchand
Active Contributor
0 Likes
942

Hi

The Types that you create in the SE11 those are global and they can be accessed by any application.

But when you declare a type inside a structure then it is local to the program that you have defined

when you have a situtation where you will use the TYPE in many programs then it is a good idea to define it in a SE11

and when you have very less use or if you are using once in a program then go for a STRUCTURE

Regards

pavan

Read only

Former Member
0 Likes
941

Hi,

The structure we define in SE11 is Global.

The structure we define with type is local to the Program.

Regards,

rama.

Read only

Former Member
0 Likes
941

The structure we declare with type is onlly availble to the program in which it is defind

where as

strcuture declared using se11 is gloabally availble to each program in SAP

Regards

rajesh

Read only

Former Member
0 Likes
941

hiii

when you create a structure using SE11 it will be global and one more advantage is we can append it to any table for using that fields.

while by creating in program we create a local structure and can be accesed in that program only.

regards

twinkal

Read only

Former Member
0 Likes
941

no difference but the difference is

if you create from SE11 it is global if you craete from program it is local.

thanks

Srinivas-SAP

Read only

Former Member
0 Likes
941

hi check this...

the use of the structure is reusability if you declare in the se11 then it can be accessed by programs ,function modules ...

Read only

Former Member
0 Likes
941

What is the difference between the structure we declare with type and we define with se11...

plz explain and in which situation we need to define in se11..

Visibility-> SE11 structures visible Globally, Reusable

But when you take program Structures then it is local. But Try to avoid creating the Custom Dictionary Objects, if unavoidable situation we can proceed with SE11.

Read only

Former Member
0 Likes
941

If we create a structure in a program, Only that program has access to that structure and no other program can use it (no reusability).

But, If you are creating a strucutre in the ABAP Dictionary, It can be accessed by any program and is available globally (reusable).