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 Key Field Selection

Former Member
0 Likes
771

Hi,

I just want to ask if there is a way to get the key field/s of a specific SAP table.

Thanks in advance!!!

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
722

you can use FM

<b>GET_KEY_FIELDS_OF_TABLE</b>

to get the key fields of a table.

Regards

Raja

5 REPLIES 5
Read only

athavanraja
Active Contributor
0 Likes
723

you can use FM

<b>GET_KEY_FIELDS_OF_TABLE</b>

to get the key fields of a table.

Regards

Raja

Read only

0 Likes
722

Thanks so much duraraj!!!

You have solved my problem!!

Read only

0 Likes
722

Glad, it was helpful.

Regards

Raja

Read only

Former Member
0 Likes
722

Hi,

Check in Table<b> DD03L</b> , give the table name and

it will list all the fields, if you want to see the info of all key fields in the table just look for <b>KEYFLAG</b> field in DD03L.

regards

vijay

Read only

Former Member
0 Likes
722

Hi ,

Can you be more specific on your question.

If it is Primary key of a table then in transaction SE11 type the Table name and click on display button.

It will open a table, in that click on the Fields tab where you would be able to see Primary keys being checked under the column name 'key'.

If it is foreign key, you can find that in the same table in the entry help/check tab under column name 'Foreign key'checked and giving the table where it exists as primary key.

hope it helps.

Regards,

Vivek