Skip to Content
avatar image
Former Member

Include structure & Append structure

What is diffrence between Include structure & Append structure .

be simple and clear

thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 17, 2007 at 02:07 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 11:17 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 11:21 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 17, 2007 at 11:19 AM

    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>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 11:20 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 11:21 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 11:27 AM

    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

    Add comment
    10|10000 characters needed characters exceeded