11-16-2011 3:20 PM
Hi,
I have a table (ZT1) like MANDT, ID, KUNNR, F1,F2.... and KUNNR field is defined as foreign key . FK Cardinality is set to 1:CN and "check required" box is checked.
And i have a itab like ZT1.
When i place this field into the dialog screen (Open screen painter's "Dictinary/Program Fields Windows", type ZT1-KUNNR and place into the screen), I can see and control the "foreign key check" property in the Attributes windows.
But if i place the itab-kunnr (Open screen painter's "Dictinary/Program Fields Windows", type ITAB-KUNNR and place into the screen), the "foreign key check" property is disabled.
How can i enable foreign check for itab-kunnr?
Thank you.
11-16-2011 4:18 PM
Hi,
That foreign key check attribute is only for DDIC field reference I guess... Why not using one of the many search help for KUNNR instead (e.g. C_KUNNR) and code a small select single for existence check in your PAI? That would do the trick...
Kr,
Manu.
11-17-2011 7:45 AM
I wonder if i can use this attribute for itab fields too. İf I can't, I will have to write "select check" in PAI as you said.
Thank you.
11-17-2011 8:10 AM
You can use Foreign Key check only if it is a dictionary reference field. Otehrwise you have to write code in PAI
11-17-2011 8:45 AM
11-17-2011 8:49 AM
Donot provide ITAB-KUNNR, instead WA-KUNNR . I think this should solve your problem.
Kesav
01-06-2016 8:20 AM
Hi,
Please check if you have provided Check table at all the places for your field, I had similar issue and i found out missing check table in my main structure.
Thanks and Regards
Naincy