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

Client as a primary key

Former Member
0 Likes
678

Hi Experts,

I need to create a custom table in SE11. I dont want primary key in my table. I know that, we cant create a table without primary key.

So that I used client(MANDT) as a primary key and I have totally five fields in my table. Now when i creating entry to my table it will not accept duplicate entries. But in some standard table's i saw a duplicate entries.

Example table SWFDEVTYP has the client as the primary key and its accepting Duplicate entries.

How its possible??

Thanks,

Helps wil be appreciated.

hi ,

In this table SWFDEVTYP there are 4 key fields OBJCATEG, OBJTYPE, EVENT, RECTYPE . You 'll not get any duplicate records in this table with cobination of these 4 fields . therefore you to define some fields as key field in z table according to your requirement .

Jitendra

2 REPLIES 2
Read only

Former Member
0 Likes
557

hi ,

In this table SWFDEVTYP there are 4 key fields OBJCATEG, OBJTYPE, EVENT, RECTYPE . You 'll not get any duplicate records in this table with cobination of these 4 fields . therefore you to define some fields as key field in z table according to your requirement .

Jitendra

Read only

Former Member
0 Likes
557

Having single Mandt field as key field, system will keep overrighting the entries or return error message for duplicate entries.

I would suggest, define all fields as key fields, which solve your problem as you are not sure abt the key fields and also system accrpt all table entries as you update