Application Development 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: 

Include structure & Append structure

Former Member
0 Kudos

What is diffrence between Include structure & Append structure .

be simple and clear

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

nclude 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.

7 REPLIES 7

Former Member
0 Kudos

Hi rambabu,

1. .INCLUDE

(which appears in se11 in many tables.)

2. Well,

thats nothing but a technique

of BUNCHING / GROUPING fields

(for ease of re-use)

(instead of again and again

specifying those SET of FIELDS,

in more than 1 table)

(we can as well give each field, field-by-field,

it won't make any difference in database table)

3. However,

Append structure

is FACILITY PROVIDED BY SAP

for customer enhancment of tables.

It behaves differently when

some upgrade is done in that table

by sap itself.

In such case,

when the upgrade occurs,

first the SAP fields (which are added in the standard table)

are first included in the sequence of fields,

AFTER THAT,

our APPEND structure fields,

are appended !!!

regards,

amit m.

varma_narayana
Active Contributor
0 Kudos

Hi..

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.

Append Structure:

Here we have to add an Structure which has to be created newly to a Table .. So it cannot be reused.

We can use Append structure to Enhance Standard Tables

It can be only inserted end of the Table.

<b>Reward if Helpful</b>

Former Member
0 Kudos

Include Structure adds the structure fields to the internal table, this is done while defining internal table.

Append Structure adds the contents of work area(structure-some say workarea as structure) to the internal table.

Reward points if useful.Get back in case of query...

Cheers!!!

former_member404244
Active Contributor

Former Member
0 Kudos

Hi Rambabu,

The only main difference is -

Append Structure - This structure can be used only in the table where you have Appended. Meaning the structure that we append will be available only with the table where we have appended it.

Include Structure - This structure can be used in multiple tables. Meaning the structure will be available for usage in multiple tables.

I mean you can INCLUDE the same structure in multiple tables, but you can APPEND a structure in only one table.

<i>Reward if helpful</i>

Best Regards,

Ram.

Former Member
0 Kudos

Hi,

Basically APPEND structures are used to add additional fields to exactly one table, while CI may be used to include fields to several tables.

As far as I know there is no difference at the DB-level; as soon as either one is used the fields will be added at the end of the file (although an CI could be at any place in the Data Dictionary); of course with an exception in case one of the fields in de CI has been marked as Key-field.

def

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,

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

http://help.sap.com/saphelp_sm32/helpdata/en/43/2000374c144e54e10000009b38f936/content.htm

https://forums.sdn.sap.com/click.jspa?searchID=4594854&messageID=114309

Please reward points.

Message was edited by:

Prakhar Saxena

Former Member
0 Kudos

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.

nclude 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.