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: 

about append structures and include structures

Former Member
0 Kudos

wat is the difference between append and include structures

2 REPLIES 2

Former Member
0 Kudos

Hi,

Append Structure is a structure assigned to just one table. When a table is activated, all append structures for the table are found and appended to the table.

Append structures are used to add customer fields to SAP tables

Include Structure is a structure which we include under another structure which is already defined

An include structure is NOT the same as an append structure. I tried in a datasource to add a field via an append structure, however I didn´t see the field in the data source. When I changed it to an Include structure everything was ok

Please check this link for more info.

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

/message/1479232#1479232

Reward points

Regrads

Former Member
0 Kudos

Hi

<b>INCLUDE STRUCTURE:</b>

This statement must be used only within a structure definition with the additions BEGIN OF and END OF in the statements TYPES, DATA, CLASS-DATA, and STATICS. It copies all the components of the structured type struc_type or the structure struc at the given position into the current structure definition. The components are created at the same level as the INCLUDE statement. The INCLUDE statement does not create any substructure.

struc_type can be a local (within program), structured type or a structure from the ABAP Dictionary. struc must be a structure of the same program.

Through the specification of a name name after the AS addition, either all the components of the bound structure struc_type or struc are addressed together through the name name or individual components can be addressed using the structure component selector (-).

Using the RENAMING WITH SUFFIX addition, each indivdual component is renamed by adding on the suffix suffix. Here, a structure can be copied several times. suffix must be specified directly.

<u><b>In include structure u can not add more fileds</b></u>

<b>APPEND STRUCTURE:</b>

Structure in the ABAP Dictionary that is appended to another structure or a database table so as to add further components. Standard structures and database tables delivered by SAP can be enhanced by means of append structures in customer systems.

<b><u>using append structure u can custyomize ur structure by adding more fields</u></b>

sample

data: begin of itab,
include structure..,
end of itab.

Reward all helpfull answers

Regards

Pavan