Prerequisites
- You can create an append structure only on the basis of an existing
structure.
- This functionality is provided since SAP NetWeaver 7.5 SP00.
Context
You create an append structures to add components or component extensions to an existing
structure without modifying the latter:
Procedure
- Trigger the creation of an append structure.
Note
For this, you have, for example, the following possibilities:
- By opening the context menu on the base structure in the
Project Explorer: Then, select
New Append Structure.
- By opening the base structure in its ABAP Dictionary
editor: Then, in its define type
statement, get the quick assist proposals by choosing Quick
Fix from the context menu (shortcut Ctrl 1)
or by using the Quick Assist view. Apply
Create append structure for.
- By adding a code template: To do this, select the complete source
code of the base structure and add the
appendStructure code template. Note that you
rename the append structure after adding the code template.
Otherwise, a syntax error is displayed when you save.
The Creation Wizard is opened.
- Enter the Name and Description
for the append structure to be created.
Note The base structure is automatically selected and cannot be changed.
- Choose Next.
- Assign a transport request.
- Start the creation with Finish.
Results
The inactive version of an append structure is created and stored in ABAP Dictionary.
In the Project Explorer, the new append structure is added to
the Dictionary folder of the corresponding package.
The source-based ABAP Dictionary editor is opened. Here, the initially generated
source code is displayed and ready for editing.
The append structure is
introduced with the structure annotations of the base structure, followed by the
extend type ... with keywords. Within the curly brackets, you
can add the components that you want to add on to the base structure.