Application Development and Automation 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: 
Read only

table with key field is initial

Former Member
0 Likes
2,356

Hi all,

I have created a table with key fields as mandt and matnr and also created a Table Maintainence generator for it .

I declared in the Table with Key fields as Key and initial.

But when i am creating the entries through SM30, key field is accepting inital value.

I dont know how can this possible.

Will you anybody clear my doubt.

Regards,

Madhavi

5 REPLIES 5
Read only

Former Member
0 Likes
1,538

re read your post.

Read only

0 Likes
1,538

Will you know any discrepancy, i didnt find anything there.

As though i defined as key fields in se11, it is accepting Initial values while creating new entries in SM30 .

Read only

0 Likes
1,538

The initial value (space in case of character fields) is a valid key field value. If you want to prevent initial values as key field values, you will probably have to work with table maintenance events.

Thomas

Read only

0 Likes
1,538

I declared in the Table with Key fields as Key and initial.

here is the discrepancy.

Read only

prasannakrishna_mynam
Contributor
0 Likes
1,538

Hi..

When you mark the init value for the key fields, the particular field will have the field's datatype's initial value, if you left the field with out giving any value, while entering the data.

Eg: If the key field is of type Char and is marked as init, the space will be the value, incase we don't provide any value as input to that field.