How active We are?

June 2013
M T W T F S S
« Sep    
 12
3456789
10111213141516
17181920212223
24252627282930


Append Structure

GD Star Rating
loading...

PreviousNext


Customers can add new fields to transparent tables and structures using ‘Append Structure’ technique without needing modification. Append Structure acts almost similar to a normal structure included in the original table / structure, which contain customer fields.

Let’s see how Append Structure technique of enhancing tables / structures works?

Process followed at SAP

Developers at SAP create standard tables and structure and set one among the following enhancement categories for each table or structure.

Possible Enhancement Categories:

  • Cannot be enhanced : No customer enhancements would be possible.
  • Can be enhanced (character-type) : Only character type fields (data type C, N, D, or T) can be added.
  • Can be enhanced (character-type or numeric) : Fields of all data types except deep data types (tables, references, strings) are allowed to be added.
  • Can be enhanced (deep) : Fields of all data types are allowed to be added.

You can check the enhancement category of a table / structure as followed:

  1. Go to transaction SE11 & display the specific table / structure.
  2. Navigate in the menu bar to ‘Extras -> Enhancement Category’ to find assigned enhancement category.

Finding Enhancement Category

Enhancement Process followed at Customer site

Below mentioned steps are followed for adding new fields to a table or structure using ‘Append Structure’ technique:

  1. Go to transaction SE11 and display the table / structure to be enhanced.
  2. Press the button ‘Append Structure’ in the application toolbar.
  3. Enter the name of the ‘Append Structure’.
  4. Add the customer fields.

Save & activate the append structure and go back to original table / structure to find the newly added fields.

Creating Append Structure

Naming Convention

Append Structures & their fields are named in customer namespace in order to avoid conflicts e.g. SAP adding new fields with the same name in future releases, during SAP upgrades.

Append Structures follow the naming pattern as Z* or Y*. (Note: Underscores ‘_’ are not allowed in the name at 2nd & 3rd character.)

Fields of append structures follow the naming pattern as ZZ* or YY*.

Prerequisites

  • The table to be enhanced should not be a pool or cluster table.
  • The enhancement category of the table / structure should allow adding customer fields i.e. Enhancement category should not be set to ‘Cannot be enhanced’. Moreover, even if the enhancements are allowed, the newly added customer fields should be in accordance with the enhancement category of table / structure.
  • In case of tables, it’s not allowed to create append structure if the table contains long fields (i.e. fields with data type VARC, LCHR, LRAW). However, it’s allowed in case of structures.

Important Properties

  • Append structures appear in original table / structure with .APPEND key word.
  • An append structure can be used exactly for one table or structure. However, it’s possible to add more than one append structures to one table or structure.
  • When an append structure is changed and activated, the original table / structure also gets activated automatically.
  • The append structure can be used in programs exactly similar to the way fields of a normal structure is used.
  • When a table / structure containing append structure is copied, the target table / structure contains the fields in append structures as normal fields.

Please send me your valuable feedback/ questions/ corrections in form of comments or mails to make this content perfect.
PreviousNext

GD Star Rating
loading...
GD Star Rating
loading...
Append Structure, 9.8 out of 10 based on 4 ratings

3 comments to Append Structure

Leave a Reply

  

  

  


*

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>