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

Differnce Between Append Structure and Include Structure

Former Member
0 Likes
2,394

hi all,

can any one say

Differnce Between Append Structure and Include Structure

and how to include structure in Database table

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,039

Hi

Append Structure->Append structures are used for enhancements that are not included in the standard. This includes special developments, country versions and adding customer fields to any tables or structures.

An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.

The following enhancements can be made to a table or structure TAB with an append structure:

· Insert new fields in TAB,

· Define foreign keys for fields of TAB that already exist,

· Attach search helps to fields of TAB that already exist,

These enhancements are part of the append structure, i.e. they must always be changed and transported with the append structure.

Include Structure ->In addition to listing the individual fields, we can also include the fields of another structure in tables and structures. Individual fields and includes can be mixed as required.

When an include is changed, all the tables and structures that include it are automatically adjusted.

Includes can also be nested, that is structure A includes structure B which in turn includes another structure C, etc. The maximum nesting depth is limited to nine. The maximum length of a path of nested includes in a table or structure is therefore nine (the table/structure itself not included).

Check this SAP help

on append structure and Include Structure

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb54446011d189700000e8322d00/frameset.htm

Difference Between them

http://sap.ittoolbox.com/groups/technical-functional/sap-r3-bw/append-structure-vs-include-structure...

Reward points

Regards

7 REPLIES 7
Read only

Former Member
0 Likes
1,040

Hi

Append Structure->Append structures are used for enhancements that are not included in the standard. This includes special developments, country versions and adding customer fields to any tables or structures.

An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.

The following enhancements can be made to a table or structure TAB with an append structure:

· Insert new fields in TAB,

· Define foreign keys for fields of TAB that already exist,

· Attach search helps to fields of TAB that already exist,

These enhancements are part of the append structure, i.e. they must always be changed and transported with the append structure.

Include Structure ->In addition to listing the individual fields, we can also include the fields of another structure in tables and structures. Individual fields and includes can be mixed as required.

When an include is changed, all the tables and structures that include it are automatically adjusted.

Includes can also be nested, that is structure A includes structure B which in turn includes another structure C, etc. The maximum nesting depth is limited to nine. The maximum length of a path of nested includes in a table or structure is therefore nine (the table/structure itself not included).

Check this SAP help

on append structure and Include Structure

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb54446011d189700000e8322d00/frameset.htm

Difference Between them

http://sap.ittoolbox.com/groups/technical-functional/sap-r3-bw/append-structure-vs-include-structure...

Reward points

Regards

Read only

Former Member
0 Likes
1,039

hi

using append structure u can custyomize ur structure by adding more fields

but with include structure u cannot do this.

example.

data: begin of itab,

include structure..,

end of itab.

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Read only

Former Member
0 Likes
1,039

Hi,

Append structure will play its role when we need to insert some fields in to the database table.Check it out by creating a table in se11 and also create another structure for that...

Click the append structure and give the structure name into the table and u can see the structure in the Database table...

INCLUDE structure will be helpful when we creating an internal table in the run time..At that time we can include a structure of a table in it instead of giving the all fields in the creation of the internal table

REWARD If useful!!!!!!!!!

Read only

Former Member
0 Likes
1,039

Hi,

Append structures are used for enhancements that are not included in the standard. An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.

http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm

Includes are used to group fields, an include structure can be assigned to many tables. If you add a fields to an include structure, all tables/structures, which contain that include structure, will be updated too.

http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21ea6a446011d189700000e8322d00/content.htm

Reward if useful.

Thanks

Read only

Former Member
0 Likes
1,039

In case of a Include structure, the reference originates in the table itself, in the form of a statement include….

In case of an append structure, the table itself remains unchanged and the reference originates in the append structure.

Reward if useful

Regards

Prax

Read only

Former Member
0 Likes
1,039

Simply

Append structures are for standard ddic table when you are working to make some enhancements where as include structure would be used in internal tables when you need a internal table which has fields of a ddic structure you can use it

regards,

Himanshu

Read only

Former Member
0 Likes
1,039

<u><b>INCLUDE STRUCTURE:</b></u>

This statement must be used only within a structure definition with the additions BEGIN OF and END OF in the statements TYPES, DATA, CLASS-DATA, and STATICS. It copies all the components of the structured type struc_type or the structure struc at the given position into the current structure definition. The components are created at the same level as the INCLUDE statement. The INCLUDE statement does not create any substructure.

struc_type can be a local (within program), structured type or a structure from the ABAP Dictionary. struc must be a structure of the same program.

Through the specification of a name name after the AS addition, either all the components of the bound structure struc_type or struc are addressed together through the name name or individual components can be addressed using the structure component selector (-).

Using the RENAMING WITH SUFFIX addition, each indivdual component is renamed by adding on the suffix suffix. Here, a structure can be copied several times. suffix must be specified directly.

Note

Outside of ABAP objects, flat structures, database tables, or views of the ABAP Dictionary can also be specified for struc with the STRUCTURE addition

In constant structures declared with CONSTANTS, no components can be included using INCLUDE because no start values can be assigned to these.

Example

In this example, the structure week is defined by repeated copying of the components in the structured type t_day. The components for week are all on one level and can be addressed as follows: week-work_mon, week-free_mon, week-work_tue, and so on. Alternatively, however, the following address method is also possible: week-monday-work, week-monday-free, week-tuesday-work, and so on.

TYPES: BEGIN OF t_day,

work(8) TYPE c,

free(16) TYPE c,

END OF t_day.

DATA BEGIN OF week.

INCLUDE TYPE t_day AS monday RENAMING WITH SUFFIX _mon.

INCLUDE TYPE t_day AS tuesday RENAMING WITH SUFFIX _tue.

INCLUDE TYPE t_day AS wednesday RENAMING WITH SUFFIX _wed.

...

DATA END OF week.

<u><b>APPEND STRUCTURE</b></u>:

Structure in the ABAP Dictionary that is appended to another structure or a database table so as to add further components. Standard structures and database tables delivered by SAP can be enhanced by means of append structures in customer systems.

<i><b>Reward point if helpful

Debjani Lahiri</b></i>