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: 

Include structure in SAP tables and structures

Former Member
0 Kudos

Hi Friends,

I have a clarification.

I have created a z structure and i wanted to include that structure in few SAP tables and SAP structures.

But, then i tried the menu path EDIT-> Include->insert.

It is in disable mode.

How can we achieve.Nowhere i find the replies for these query.

Thanks & Regards,

Prabu

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

- First insure that every field of the structure is in the correct namespace (eg. ZZFIELDNAME) (1)

- For each standard table you want to append, check if there is not already a special include (like CI_TABLENAME or a customizing point, if there is one use it else create an append structure by SE11 (one append structure can only be appended to one table, in the correct include, append or CI_x) include your structure typing .INCLUDE in field name column and the structure name in the data element/structure column. (2)

Regards,

Raymond

(1) [Note 16466 - Customer name range for SAP objects|https://service.sap.com/sap/support/notes/16466]

(2) SE11 in display mode, click on append structure, click on create icon

10 REPLIES 10

former_member195402
Active Contributor
0 Kudos

Hi,

you can Include your Z structure to APPEND structures of SAP tables and structures. Therefore you have to create the APPEND structures first.

Regards,

Klaus

Former Member
0 Kudos

Hi Prabhu,

You can achieve this by clicking on the Append Structure button and by creating structure starting with yy or zz.

Also, go through the following link.

[;

Hope this is usefull.

Thanks and Regards,

Priya.

0 Kudos

Hi,

For eg. I am taking one standard table EKES and i am trying to do this.

1) Create Append Structure Button click.

2) Enter the Strcutre name to be created and enter the fields name.

If i activate it. Can i sue the same structure in other tables also?

Thanks & Regards,

Prabu

0 Kudos

If you have your APPEND structure, please enter .INCLUDE for field name and your Z structure as type.

If you are using this in several SAP tables and structures, all of them can be changed by changing your Z structure (for example if you want to add a field).

Regards,

Klaus

0 Kudos

Hi Prabhu,

Append structures can only be assigned to a single table. i.e., an append structure can be used only for the table it is created.

If you create a append structure for table EKES, that structure will be used only for the table EKES.

Thanks and Regards,

Priya.

Edited by: Priyadharshini Shanmugasundaram on Jan 10, 2012 12:26 PM

0 Kudos

Hi Prabhu,

Follow the Below procedure may be your problem can be solved.

Including Structure for DataBase Table

-->Go to Tcode: SE11 then select the radio button database table and give the data base table name in which you want to include the structure then click on display<=>change button from application tool bar for enable mode.

-->then enter name that should be .include (this is mandatory) in field column then enter the structure name in the field of dataelement which structure you want include in this database table

Including Structure for Structure

-->Go to Tcode: SE11 then select the radio button data type and give the Structure name in which you want to include the structure then click on display<=>change button from application tool bar for enable mode.

-->then enter name that should be .include (this is mandatory) in field column then enter the structure name in the field of dataelement which structure you want include in this Structure.

Regards

Sreenivas P

0 Kudos

Hi Sreenivas,

I undestand your explanation. Is this applicable for standard SAP tables and structures.

You are asking me to go in change mode. But, how to achieve this in SAP standard SAP tables and structures.

Regards,

Prabu

0 Kudos

You don't need to open a standard table in change mode to include a structure.

This is how you can include your custom structure within standard SAP tables

1. Open the standard table in SE11 display mode

2. Click on Append Structure button

3. Click on Create Append button in the popup that shows

4. Enter a name for the append (name it like ZZ_XXXXX

5. Enter the component = .INCLUDE and component type = <your custom structure name>

6. Activate the append structure

raymond_giuseppi
Active Contributor
0 Kudos

- First insure that every field of the structure is in the correct namespace (eg. ZZFIELDNAME) (1)

- For each standard table you want to append, check if there is not already a special include (like CI_TABLENAME or a customizing point, if there is one use it else create an append structure by SE11 (one append structure can only be appended to one table, in the correct include, append or CI_x) include your structure typing .INCLUDE in field name column and the structure name in the data element/structure column. (2)

Regards,

Raymond

(1) [Note 16466 - Customer name range for SAP objects|https://service.sap.com/sap/support/notes/16466]

(2) SE11 in display mode, click on append structure, click on create icon

0 Kudos

Hi All,

Now, i understand it. Thanks for all your replies.

Regards,

Prabu