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: 

structure activaton warnings:

Former Member
0 Kudos
75

Enhancement category for table missing

Enhancement category for include or subtype missing

what are these warnings?

how can I rectify them?

tx.

kiran

4 REPLIES 4

0 Kudos
48

HI,

For every structure or table you need to mention the enhancement category.

Also when you have include strucutres then it is required that you mention the enhancement category for eahc one of them.

You can rectify the erros or warnings by specifying Enhancement category in SE11 Menu Extras->Enhancement Category.

Here is the help on the same.

Structures and tables that were defined by SAP in the ABAP Dictionary can be enhanced subsequently by customers using Customizing includes or append structures. The enhancements do not only refer to structures/ tables themselves, but also to dependent structures that adopt the enhancement as an include or referenced structure. Append structures that only take effect at the end of the original structure can also cause shifts - in the case of dependent structures - even within these structures.

You must select an enhancement category for the following reason: In programs where there is no active Unicode check, enhancements to tables and structures can cause syntax and runtime errors during type checks and particularly in combination with deep structures.

In programs where there is an active Unicode check, statements, operand checks, and accesses with an offset and length are problematic - for example, if numeric or deep components are inserted into a purely character-type structure and the structure thus loses its character- type nature.

Depending on the structure definition, the radio buttons allowed in the dialog box are ready for input. Choose one of the possible enhancement categories:

Cannot be enhanced

The structure must not be enhanced.

Can be enhanced or character type

All structure components and their enhancements must be character-type (C, N, D, or T). The original structure and all enhancements through Customizing includes or through append structures are subject to this limitation.

Can be enhanced or character-type or numeric

The structure and its enhancement must not contain any deep data types (tables, references, strings).

Can be enhanced in any way

The structure and its enhancement may contain components whose data type can be of any type.

Not classified

This category can be chosen, for example, for a transition status; however, it must not be chosen for creating structures.

The rules for defining the enhancement category result implicitly from the structure setup and the classification of the types used. These rules are as follows:

If the object contains at least one numeric type or a substructure or component (field has a structure/table/view as its type) that can be enhanced numerically, the object can no longer be enhanced character-type, but is itself, at most, enhanceable character-type or numeric.

If the object contains a deep component (string, reference, or table type), or it contains a substructure or component that is marked as enhanceable in any way, then the object itself is enhanceable in any way.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

Former Member
0 Kudos
48

Hi...

Structures and tables that were defined by SAP in the ABAP Dictionary

can be enhanced subsequently by customers using Customizing includes or

append structures. The enhancements do not only refer to structures/

tables themselves, but also to dependent structures that adopt the

enhancement as an include or referenced structure. Append structures

that only take effect at the end of the original structure can also

cause shifts - in the case of dependent structures - even within these

structures.

You must select an enhancement category for the following reason: In

programs where there is no active Unicode check, enhancements to tables

and structures can cause syntax and runtime errors during type checks

and particularly in combination with deep structures.

In programs where there is an active Unicode check, statements, operand

checks, and accesses with an offset and length are problematic - for

example, if numeric or deep components are inserted into a purely

character-type structure and the structure thus loses its character-

type nature.

Depending on the structure definition, the radio buttons allowed in the

dialog box are ready for input. Choose one of the possible enhancement

categories:

Cannot be enhanced

The structure must not be enhanced.

Can be enhanced or character type

All structure components and their enhancements must be

character-type (C, N, D, or T). The original structure and all

enhancements through Customizing includes or through append

structures are subject to this limitation.

Can be enhanced or character-type or numeric

The structure and its enhancement must not contain any deep data

types (tables, references, strings).

Can be enhanced in any way

The structure and its enhancement may contain components whose data

type can be of any type.

Not classified

This category can be chosen, for example, for a transition status;

however, it must not be chosen for creating structures.

The rules for defining the enhancement category result implicitly from

the structure setup and the classification of the types used. These

rules are as follows:

o If the object contains at least one numeric type or a substructure

or component (field has a structure/table/view as its type) that can

be enhanced numerically, the object can no longer be enhanced

character-type, but is itself, at most, enhanceable character-type

or numeric.

o If the object contains a deep component (string, reference, or table

type), or it contains a substructure or component that is marked as

enhanceable in any way, then the object itself is enhanceable in any

way.

o If the object does not contain any substructure or component that is

marked as enhanceable, you can select cannot be enhanced. If the

structure has not yet been enhanced, you can choose the category

cannot be enhanced in any case.

If you are creating new tables and structures in the ABAP Dictionary,

the system proposes the category can be enhanced in any way as standard

value for the classification of the enhancement options. If the

developer chooses a more restrictive classification than can be enhanced

in any way for a particular structure, then only the classification

levels that adhere to the rules above are allowed. It is not possible to

choose an enhancement option of a structure that is more restrictive

than the classification resulting immplicitly from the structure setup

and from the classification of the types used. Therefore, only the

allowed categories are proposed for selection in the maintenance user

interface.

If a structure depends on one or several other structures, the smallest

category is chosen as implicit classification (in the order cannot be

enhanced < can be enhanced and character-type < can be enhanced and

character-type or numeric < can be enhanced in any way). This

classification is greater than or less than the category in the other

structures and also greater than or the same as the category that

results from the actual setup in the original structure itself.

Former Member
0 Kudos
48

Hi,

If u go to SE11 and select EXTRAS -> Enhancement Ctegory u will find five options u have to select any one of them.

The choice of an enhancement category is necessary. The reason is that in programs where there is no active Unicode flag, structure enhancements - in particular for type checks and in connection with deep structures - can cause syntax and runtime errors.

In programs where there is an active Unicode flag, statements, operand checks, and accesses with offset and length are problematic if - for example - numeric or deep components are inserted in a purely character-type structure. In this way the structure loses its character-type nature.

Procedure

In the following dialog box, choose an enhancement category for the structure:

Cannot be enhanced

The table/structure must not be enhanced.

Can be enhanced and character-type

All the structure components and their enhancements must be character-type.

Can be enhanced and character-type or numeric

The structure and its enhancement must not contain any deep data types.

Can be enhanced in any way

The structure and its enhancement may contain components whose data type

can be of any type at all.

If you are uncertain here, read the section entitled Enhancement Category .

Hope this will be helpful for u.

Regards,

Ravi

Former Member
0 Kudos
48

Hi

You check your Compnent type of your structure.

what ever declared in compnent type that should match with data element or domain .

Thanks...