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

FOREIGN KEY

Former Member
0 Likes
448

HELLO ABAP MASTERS

I HAVE A PROBLEM CREATING FOREIGN KEY

I CREATED A FOREIGN KEY IN ECC6

I SELECT THE FIELD

I HAVE ASSIGNED SAME DOMAIN TO FIELD IN BOTH CHECK TABLE AS WELL AS FOREIGN KEY TABLE

ACTIVATE

ITS WORKING

BUT WHEN I FOLLOW SAME PROCEDURE IN 4.7

IT CREATES THE FOREIGN KEY

BUT IT ACCEPTS THE DATA WHICH IS NOT THERE IN CHECK TABLE

PLEASE HELP

THANKS IN ADVANCE

REGARDS,

ANIRUDDH

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
414

Hi,

How r u inserting data into table?

If it is through INSERT/UPDATE statements from program then it will not check foreign key relation.

If u try through SM30 it will check the entry in existance in Check table.

Hope it is clear.

Thanks,

Vinod.

2 REPLIES 2
Read only

Former Member
0 Likes
414

Hello anirudh,

Check the name of your check table because foreign key works properly if the right check table is given.

Regards,

Bhumika

Read only

vinod_vemuru2
Active Contributor
0 Likes
415

Hi,

How r u inserting data into table?

If it is through INSERT/UPDATE statements from program then it will not check foreign key relation.

If u try through SM30 it will check the entry in existance in Check table.

Hope it is clear.

Thanks,

Vinod.