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: 

Difference between Append structure and include structure

Former Member
0 Kudos

hi can anyone tell me the difference between include structure and append structure with respect to tables defined in ABAP dictionary?

Also how to create them in ABAP dictionary?

15 REPLIES 15

Former Member
0 Kudos

Include

1.) You add a field in the name space of SAP (like PRCTR). In this case it is necessary to modify the extract structure and to get an access key via the OSS. The "MOVE-CORRESPONDING" does only work in this case. (This means the field is copied into the extract

structure without adding any code.)

Append

2.) You add a field, that lies in the customer name range. By adding such a field in an append structure you cause no modification and no OSS access key is necessary. Nevertheless the field is not copied into the extract structure automatically, if you choose

this second solution.

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

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 <b>one table or structure</b>. There can be more than one append structure for a table or structure.

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

Also have a look at below link.

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

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers

Former Member
0 Kudos

Hi Abhishek,

Append structure is tht u can append a stucture only once for a particular talble.

where as include structure u can include it to as many tables ,

in any where in the table

If u want to create structure go to se11,

select data type

give the name

It will displays data element, structure.

select structure.

Sudhakar.

0 Kudos

Hi,

For append structure the main table need not be modified.

For include structure the main table needs to have an entry .INCLUDE in the table that is it shouldbe planned before by the developer. Where as for append its not needed.

If you append one structure to a table you can not append it to another table, One structure can be appended to only one table, but a table can have many append structures.

A strucutre can be included in as many tables as you want.

When you copy a table with an append structure all the fields of the append structure will become fields of the new table. (That is they are copied as table fields not as appended fields).

Append structures are easy to be implemented on the database than include strucutres.

You cannot append structre if the table as a field of type LCHR or LRAW.

Regards,

Sesh

Former Member
0 Kudos

Hi Abhi,

Appened Structure we use to add new Field(s) to a Standard SAP Table.

And This Structure we can add only one time.

Where as include structure is used to add fields to Custom Table and This Structure can be include any number of times in any number of Tables.

Bye

Murthy

Former Member
0 Kudos

Append Structure is to add custom fields starting with ZZ in standard SAP table.

Former Member
0 Kudos

Hi abhishek,

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.

uwe_schieferstein
Active Contributor
0 Kudos

Hello Abhishek

The main difference is that an append belongs to a single table (= appended table) whereas other structures can be included in many tables (or other structures).

I frequently use appends and structures in combination:

(1) I create the append for the required table.

(2) I include (z-)structures for different purposes in the append structure

Assuming that the append belongs to a SAP standard table the advantage of this approach is that have to touch the append structure (and, thereby, also the SAP standard table) not that frequently because future changes will primarily made on the z-structure and not directly on the append structure.

Regards

Uwe

abdul_hakim
Active Contributor
0 Kudos

hi

append structures are not pre-planned by SAP for enhancement.in otherwords you can create

append structures for standard tables/structures..append structures can be assigned to

exactly one table.but a table can have more than one append structure.

include structures are pre-planned by SAP.you can use it enhance the standard tables/structures.

include structures can be assiged to more than one table..

Cheers,

Abdul Hakim

Former Member
0 Kudos

Hi Abhi,

in INCLUDE STRUCTURE you can reuse in other tables also but where as in APPEND STRUCTURE it is for that particular table and this cannot be reuse.

Thanks

Vikranth Khimavath

Former Member
0 Kudos

hi abhishek,

append structure is used only in one particular table, and it should the last field for that table.

include structure can be used in many tables .

Former Member
0 Kudos

Please see the explanation below....

<b>Structure</b>

A structure (structured type) consists of components (fields) whose types are defined.

A component can have an elementary type, a structured type, a table type or a reference type.

Structures are used especially to define the data at the interface of module pools and screens and to define the types of function module parameters.

Structures that are used more than once can be changed centrally because they were defined centrall. The active ABAP Dictionary makes this change at all relevant locations. ABAP programs or screen templates that use a structure are automatically adjusted when the structure changes.

<b>Append structure</b>

An append structure defines a set of fields that belong to another table or structure but are treated in the correction management as a separate object.

Append structures are used to support modifications.

<b>You can create both of them using SE11 Trans</b>.

<b>Or Using 'Append Struture' / ' Goto --> Append Structure' / 'F5'</b>

Regards,

Ramki.

Former Member
0 Kudos

HI

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

Just have a look at this link:

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebd6446011d189700000e8322d00/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebd6446011d189700000e8322d00/frameset.htm</a>

Rsgards,

Gunasree.

    • Award marks to helpful answers

Former Member
0 Kudos

HI

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

Just have a look at this link:

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebd6446011d189700000e8322d00/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebd6446011d189700000e8322d00/frameset.htm</a>

Rsgards,

Gunasree.

    • Award marks to helpful answers

Former Member
0 Kudos

HI

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

Just have a look at this link:

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebd6446011d189700000e8322d00/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebd6446011d189700000e8322d00/frameset.htm</a>

Rsgards,

Gunasree.

    • Award marks to helpful answers