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

required program

Former Member
0 Likes
532

hi

i wanted the program to display the table names when ever i enter a field name as a parameter....

for example

when ever i enter a parameter as carrid it should display all the table names to which it belongs and also should tell the relationship in that table....

that is ...... its a primary key or a foreign key in that particular table.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
510
data : p_field like dd03l-fieldname.

data : begin of it_tables occurs 0,
         tabname like dd03l-tabname,
         keyflag like dd03l-keyflag,
       end of it_tables.

select tabname keyflag from dd03l into table it_tables where fieldname eq p_field.

keyflag determines if it is key field or not

Message was edited by:

Chandrasekhar Jagarlamudi

3 REPLIES 3
Read only

Former Member
0 Likes
511
data : p_field like dd03l-fieldname.

data : begin of it_tables occurs 0,
         tabname like dd03l-tabname,
         keyflag like dd03l-keyflag,
       end of it_tables.

select tabname keyflag from dd03l into table it_tables where fieldname eq p_field.

keyflag determines if it is key field or not

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
510

Hi,

Check the tables:

DD03L - for table fields

DD03t - for table field descriptions

DD02L - for tables

DD02T - for tables descriptions

and other tables starting with DD0*..

regards,

Anji

Read only

Former Member
0 Likes
510

u can go for where used list.

enter dataelement in se11, then press where used list icon,

it wil give the table name and relationship also.

regards,

sujatha.