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

Difference b/w Append structure and include structure

Former Member
0 Likes
1,081

Difference b/w Append structure and include structure

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,025

Hi

append structure ...u can append a structure only at the end of all the feilds in table.

u cannot delete a structure which u append u have to delete the entire table.

include structure: u can include a structure anywhere in the table.

and u can delete include structure directly.

6 REPLIES 6
Read only

Former Member
0 Likes
1,025

Enhancement using Append structures

Append structures allow you to attach fields to a table without actually having to modify the table itself. You can use the fields in append structures in ABAP programs just as you would any other field in the table.

Click on the append structure tab and opt to create new

structure.

Append structures allow you to enhance tables by adding fields to them that are not part of the standard. With append structures; customers can add their own fields to any table or structure they want.

Append structures are created for use with a specific table. However, a table can have multiple append structures assigned to it

Customers can add their own fields to any table or structure they want.

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

Enh. using Customizing includes

Some of the tables and structures delivered with the R/3 standard contain special include statements. These are often inserted in those standard tables that need to have customer-specific fields added to them. Such includes are Customizing includes. (CI).

A Customizing include is a structure that satisfies a special naming convention. (name begins with CI_).

A Customizing include is a structure that satisfies a special naming convention. The name of a Customizing include begins with ‘CI_’ and the include is in the customer namespace .

If enhancements are already planned in the R/3 standard using customer-specific fields, such Customizing includes are included. in the corresponding standard table or standard structure. The Customizing include (that is the definition of the structure itself) is usually first created in the customer system and filled with fields by special Customizing transactions.

Customers can add their own fields to any table or structure they want.

The Customizing include field names must lie in the customer namespace just like field names in append structures. These names must all begin with either YY or ZZ.

Append structures v/s Customizing includes

In contrast to append structures, Customizing includes can be inserted into more than one table.

As an example the customizing include that we created (CI_DEMO) could be a part of multiple tables in the database whereas the append structure (ZDEMO_APPEND) can only be assigned to one table. (here MARA).

This provides for data consistency throughout the tables and structures affected whenever the include is altered.

Reward i fusefull

Read only

Former Member
0 Likes
1,026

Hi

append structure ...u can append a structure only at the end of all the feilds in table.

u cannot delete a structure which u append u have to delete the entire table.

include structure: u can include a structure anywhere in the table.

and u can delete include structure directly.

Read only

Former Member
0 Likes
1,025

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

Regards

Read only

Former Member
0 Likes
1,025

thanks

Read only

Former Member
0 Likes
1,025

hi,

The statement include structure ends with a period because it is not part of the data statement; it is a separate statement. Any number of fields could be included, more structures could be included here as well, or any combination thereof.

append structure ...you can append a structure only at the end of all the feilds in table.

reward if its useful

Read only

Former Member
0 Likes
1,025

hi,

if we append a structure to a table that will be the last structure in that table. we can't include any structures after that.

if we include structure we can include any number of structures after that.

hope it is useful.

regards,

sreelakshmi