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

Finding tables with specific primary key

Former Member
0 Likes
2,560

Dear all:

Is there any way to identify tables, that have a certain attribute as a primary key? To be more precise, I would like to have a list of tables with VORNR as primary key. Thanks in advance.

Regards,

Jan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,058

SE11 -> Data Type -> Where Used List (Select Table Fields only) - Ok -> Click Limit Hits in Toolbar -> Expand Selection -> Select Only Unique Key Fields

Dear all:

Is there any way to identify tables, that have a certain attribute as a primary key? To be more precise, I would like to have a list of tables with VORNR as primary key. Thanks in advance.

Regards,

Jan

6 REPLIES 6
Read only

Former Member
0 Likes
2,058

The easiest way would be to have a look at table that has this field as the primary key, then look at the various DD0* tables to see which one would help.

It aint rocket science.

Read only

Former Member
0 Likes
2,059

SE11 -> Data Type -> Where Used List (Select Table Fields only) - Ok -> Click Limit Hits in Toolbar -> Expand Selection -> Select Only Unique Key Fields

Read only

matt
Active Contributor
0 Likes
2,058

Yay. I've learned something today!

Read only

0 Likes
2,058

I'd prefer the Repository Info System (SE80, SE84, SE90) -> ABAP Dictionary -> Fields -> Table Fields, there one can set the "only unique key fields" box before the search is started.

Thomas

Read only

Former Member
0 Likes
2,058

Thanks Martin and Elzkie for your immediate reply!

Read only

Shubham_Srivastava1
Product and Topic Expert
Product and Topic Expert
0 Likes
2,058

Hello

There are multiple tables where you will find operational numbers field VORNR.

In purchase orders also this field is available.

The function module for finding which are the primary keys in table is BDL_DDIF_TABL_GET.

Some tables are PLPO , AFVC , MEACCT1000.

Above thread will be useful for you.

Can you please share exact requirements.

Shubham