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

re: structures

Former Member
0 Likes
531

HI,

What is the difference between appending the fields and including the fields.

rgds.

p.kp

4 REPLIES 4
Read only

Former Member
0 Likes
513

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 Fields

you 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

Hope it helps u.

Thanks,

Ruthra

Read only

christian_wohlfahrt
Active Contributor
0 Likes
513

Hi!

You can make appends to standard tables or structures without doing a modification (and in case of tables, data in appends is stored in a slightly different way; unless table is generated new on DB).

Defining an including is good for using a bunch of fields in different structures - so adding a field in an include might change a lot of structures immediately. An append will only change this specific structure.

Except of this organizational differences: afterwards the new field is part of the structure - not important if you used an append or include.

Regards,

Christian

Read only

Former Member
0 Likes
513

including the fields


Only flat structures may be included in a table. No field refers to another structure in a flat structure. All the fields of a flat structure therefore refer either to a data element or were directly assigned a data type, field length and decimal places.

Append Structures

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.

For Further Details You can chek this link

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

have a nice time

Mithlesh

Read only

Former Member
0 Likes
513

hi,

one of the difference b/w appending and including is the way SAP treat them.

in case of appending you will save the appended structure in a package with a request no. so in this case you can say a pointer to that location of the appended structure is being included in your parent structure so this creates a deep structure.

however in case of including the structure you include its contents get added to your existing structure in the same transport request and package. so in this case its not a deep.

however your structure can be deep if you have already a deep data type in it.

hope this will clear your doubt.

regards,

Hemendra