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

primary key

Former Member
0 Likes
851

hi friends,

can u plz explain what is complex primary key?

regards,

siri.

8 REPLIES 8
Read only

Former Member
0 Likes
787

its more than 1 field as primary key,i believe.

if you make many fields as the primary key set,it would become complex primary key.

Correct me,if i am wrong.

Message was edited by: Srikanth Kidambi

Read only

0 Likes
787

hi srikanth,

even i dont know this,

i was asked this question in one my interviews.

regards,

siri.

Read only

Former Member
0 Likes
787

Hi,

projection view wich is combination of primary keys

of different table .

check below link

http://help.sap.com/saphelp_nw04s/helpdata/en/6d/117c44d14811d2a97400a0c9449261/content.htm

Regards

Amole

Read only

Former Member
0 Likes
787

Hi,

Hi,

projection view wich is combination of primary keys

of different table is example of complex primary key.

check below link

http://help.sap.com/saphelp_nw04s/helpdata/en/6d/117c44d14811d2a97400a0c9449261/content.htm

Regards,

Amole

Regards

amole

Read only

Former Member
Read only

Former Member
0 Likes
787

Hello,

If group o´f fields acts as a key, then it is also called complex keys.

Regs,

Venkat Ramanan N

Read only

Former Member
0 Likes
787

Hi sireesha,

1. In any table, there can be many records.

2. To UNIQUELY AND DISTINCTIVELY

identify the FULL RECORD,

we need something unique indicator.

eg. In purchase order table,

the unique thing is purchaser order number.

3. The field (Or combination of fields)

which uniquely identify the records,

IS CALLED AS PRIMARY KEY.

regards,

amit m.

Read only

Former Member
0 Likes
787

hi,

A field which is used to identify a particular record in a table can be termed as a primary key. For some types of tables, in which transaction data is stored, it is not possible to identify a particular record using a single field. In these cases we have to use more than 1 field to identify the records, which can be termed as Complex Primary Key. All tables that contains master data, mostly have a singled field as Primary Key. All tables that contains transaction data, mostly have more than one field as Primary key.

Ex: EKKO - (PO Master Table) - - EBELN is the Primary Key

EBELN is used to identify records

EKPO - (PO Item Data)

- - EBELN, EBELP (complex primary key)

Both EBELN,EBELP are used to identify records

Regards,

Vinny