<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Check table............ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-table/m-p/929964#M60613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabrina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Check Table is the table used by system to check if a data exist or not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating a table if you want to be sure that a field can have some values and these are in a certain table, you can give IT this table as CHECK TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: I've created my Z-TABLE where is a field KUNNR (customer). Now I want only custemers which are in master data table KNA1 can be inserted in my Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I assign KNA1 as check table to field KUNNR in my Z-TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this control is active only in the screens:&lt;/P&gt;&lt;P&gt;nothing'll be able to prevent to insert a wrong value in my Z-TABLE in a program.&lt;/P&gt;&lt;P&gt;If I write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES Z-TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Z-TABLE-KUNNR = 'AAAAAAAAAAA'.&lt;/P&gt;&lt;P&gt;MODIFY Z-TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system'll update Z-TABLE even if the value 'AAAAAAAAAAA' isn't in KNA1. In this case the control can't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you use the field in a screen, if user insert 'AAAAAAAAAAA' and push enter, the system'll automatically give a error message. So you can avoid to check the existence in your program, it' useless to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM KNA1 WHERE KUNNR = &amp;lt;FIELD_DYNPRO&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    ........ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system'll do the control for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Sep 2005 19:59:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-10T19:59:27Z</dc:date>
    <item>
      <title>Check table............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-table/m-p/929962#M60611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone please tell me what a Check table is ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sabrina.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2005 17:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-table/m-p/929962#M60611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-10T17:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Check table............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-table/m-p/929963#M60612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check table is kind of a validation for entry on screens&lt;/P&gt;&lt;P&gt;and maintaining referential integrity of RDBMS.&lt;/P&gt;&lt;P&gt;These are for defining foreing keys on table fields.&lt;/P&gt;&lt;P&gt;For exmple EKKO-LIFNR has  a check table LFA1. This means that if you enter a vendor number which does not exist in LFA1 the system will throw an error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2005 18:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-table/m-p/929963#M60612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-10T18:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Check table............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-table/m-p/929964#M60613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabrina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Check Table is the table used by system to check if a data exist or not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating a table if you want to be sure that a field can have some values and these are in a certain table, you can give IT this table as CHECK TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: I've created my Z-TABLE where is a field KUNNR (customer). Now I want only custemers which are in master data table KNA1 can be inserted in my Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I assign KNA1 as check table to field KUNNR in my Z-TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this control is active only in the screens:&lt;/P&gt;&lt;P&gt;nothing'll be able to prevent to insert a wrong value in my Z-TABLE in a program.&lt;/P&gt;&lt;P&gt;If I write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES Z-TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Z-TABLE-KUNNR = 'AAAAAAAAAAA'.&lt;/P&gt;&lt;P&gt;MODIFY Z-TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system'll update Z-TABLE even if the value 'AAAAAAAAAAA' isn't in KNA1. In this case the control can't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you use the field in a screen, if user insert 'AAAAAAAAAAA' and push enter, the system'll automatically give a error message. So you can avoid to check the existence in your program, it' useless to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM KNA1 WHERE KUNNR = &amp;lt;FIELD_DYNPRO&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    ........ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system'll do the control for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2005 19:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-table/m-p/929964#M60613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-10T19:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Check table............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-table/m-p/929965#M60614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Sanjay and Max, your answers were very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sabrina.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2005 19:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-table/m-p/929965#M60614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-11T19:14:52Z</dc:date>
    </item>
  </channel>
</rss>

