Skip to Content
author's profile photo Former Member
Former Member

How the Validation works in Foreign Key table...

Hi

I have defined a Checktable for a field (F1) and used this field in Foreign Key Table, If i update the table with Value not in Checktable, I found that Foreign Key table work fine...

Please let me Know how the Foreign Validation works actively even there is no value in Checktable...?

Regards

Pallavi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2012 at 01:13 PM

    Hi

    When you define Check table for a field, Validation works when You enter value for that field...through Selection screen or Table Maintenance Generator and also provide Value help..

    But updating Field through ABAP command, you provide F4 help to the field and add Check in Selection Screen event.. (AT SELECTION SCREEN ON)...

    Regards

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 11, 2012 at 01:05 PM

    Those foreign keys don't generate "constraint" in the SQL database. They are mostly informative with one exception, when generating a dialog maintenance (via SE11 or SE54) the generated program will manage those constraints. But if you use Open SQL or Native SQL, there wont be any check.

    SAP will use those relations to provide search helps, but you have to code the checks/constaints in your programs.

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2012 at 01:24 PM

    Hi All

    Is this correct that, Even Checktable is different, and automatically updating table through any statement (ex;- modify, insert...) will not Implicit Check and will update Z table with any value of data..

    Can we assign F4 help on that field and User select appropriate value..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.