‎2008 May 14 11:14 AM
What is the differenc between Append Structure and Include Structure?
‎2008 May 14 11:19 AM
Hi,
Possibilities offered by structure enhancements
Customers can subsequently enhance structures and tables, defined by SAP in the ABAP Dictionary, as follows: Customizing Includes
Customizing Includes:
Specified parts of a structure or table are already reserved for enhancements. The customer then creates the appropriate includes.
Appends:
The customer appends fields to the end of the structure or the table without any prior reservation having been made.
Enhancements of this kind affect not only the structures and tables themselves but also all dependent structures that take the enhancement as an include or substructure. For example, if an enhancement using an Append takes effect only at the end of the initial structure, it will affect all the dependent structures.
Reward some points.
regards,
Anomitro
‎2008 May 14 11:20 AM
append structure necessarily adds the structure fields at the end of the table/structure while include structure can be used to insert fields in the middle too..
append structure can be used to enhance standard sap tables but not include structure.
‎2008 May 14 11:22 AM
Hi,
an append is a special structure where the customer can add his own fields to existing SAP structures / tables. An include is simply a mechanism to reuse the definition of a structure within another structure if you don't need a nested structure.
You can define several fields in your own structure type and then include this into an append. In other words, these concepts are not mutually exclusive; they complement each other.
Kind regards,
Joerg Wegener
‎2008 May 14 11:23 AM
Hi,
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.
When a table or structure is activated, all the append structures of the table are searched and the fields of these append structures are added to the table or structure. Foreign keys and search help attachments added using the append structure are also added to the table. If an append structure is created or changed, the table or structure assigned to it is also adjusted to these changes when the append structure is activated.
Since the order of the fields in the ABAP Dictionary can differ from the order of the fields on the database, adding append structures or inserting fields in such append structures does not result in a table conversion.
The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP.
Include Structure :
Here we have to add an Existing Structure to a Table .. So it can be reused.
We cannot Include structure to Standard Table
It can be inserted anywhere in the Table.
INCLUDE:
Includes are used to group fields and insert them together in a table or structure.
An include program has two main functions:
It contains code which can be used by several different programs.
It helps you to modularize programs, which consist of many different logically related parts. Each of these parts is stored as a separate include program.
Include programs improve the readability of programs and make maintenance easier.
Include reports contain rolled out parts of reports. They are called by the main report, and can only be run in conjunction with the main report.
APPEND:
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
Reward if useful..
Regards,
Raj.
‎2008 May 14 11:24 AM
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
https://forums.sdn.sap.com/click.jspa?searchID=11769589&messageID=3965201
Regards
Kiran