<?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: Z table creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353601#M176830</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;value range is for getting values from the drop down list for the field.thats y insert is successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Priya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 May 2006 10:03:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-05T10:03:22Z</dc:date>
    <item>
      <title>Z table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353600#M176829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam creating a Ztable , for  filed1 in the table , i set the value range in the domain as 1, 2, 3 ,&lt;/P&gt;&lt;P&gt;now if iam  trying to manually enter the value ( eg: 4) other than 1,2,3 it is not allowing , up to this is good&lt;/P&gt;&lt;P&gt;but in the program when i trying to insert the value ( 4 , other than the given range )by using insert statement  . the result is the values is updated sucessfully and sy-subrc= 0.&lt;/P&gt;&lt;P&gt;could you please why the insert operation is suceesful? and is there any way to resrtict this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 09:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353600#M176829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T09:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Z table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353601#M176830</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;value range is for getting values from the drop down list for the field.thats y insert is successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Priya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 10:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353601#M176830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T10:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Z table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353602#M176831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;define your values thru value table and define the necessary foreign key check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 10:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353602#M176831</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-05-05T10:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Z table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353603#M176832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  even if you have restricted the value range in the domain (this is a control at application level), the INSERT statement bypass this control. In fact it is a DB statement and checks only the field type (for example it would give you an error if you try to insert a CHAR value into a field defined as NUMC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the domain allows you to restrict the value range for user input in a dynpro. You should make some checks in ABAP before the INSERT statement, or use a foreign key check using a control table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 10:08:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353603#M176832</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2006-05-05T10:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Z table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353604#M176833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u try and enter values manually then the associated domain check is applied as the program validates the data but when u use INSERT it is at database level and no validations are applied of domain or otherwise..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 10:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353604#M176833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T10:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Z table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353605#M176834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;   If you still want to validate it against the fixed values,&lt;/P&gt;&lt;P&gt; then use the FM&lt;/P&gt;&lt;P&gt;GET_DOMAIN_VALUES and then validate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GET_DOMAIN_VALUES'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            domname         = &amp;lt;Domain Name&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TEXT            = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FILL_DD07L_TAB  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;           values_tab       = t_domain_values&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        VALUES_DD07L    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         no_values_found = 1&lt;/P&gt;&lt;P&gt;         OTHERS          = 2&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;Check if the entered value is in t_domain_values before you insert into the table.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 10:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353605#M176834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T10:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Z table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353606#M176835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For insert statement, value check in domain is not considered.&lt;/P&gt;&lt;P&gt;U can do so by defining the value as foriegn key related to some master field value mainted in some other table..&lt;/P&gt;&lt;P&gt;Also u can use a dropdown box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 10:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353606#M176835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T10:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Z table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353607#M176836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya&lt;/P&gt;&lt;P&gt;if you enter the values in a table using screens.. then only all the value validations takes place coz users actions on the screen triggers various events in the program and subsequent validation takes place&lt;/P&gt;&lt;P&gt;but if you directly enter the values thorugh coding in ABAP edititor.. then no such validations takes place..and all the values get updated in the database without any input check and this may be the reason ..we use table maintenance generator for maintaining different tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 10:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353607#M176836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T10:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Z table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353608#M176837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Why the insert operation is successful ?&lt;/P&gt;&lt;P&gt;ans  : because even if you have restricted the value range in the domain (this is a control at application level), the INSERT statement bypass this control. In fact it is a DB statement and checks only the field type (for example it would give you an error if you try to insert a CHAR value into a field defined as int4.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How to restrict this ?&lt;/P&gt;&lt;P&gt;Ans : You can restrict this by making a foreign key check on that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way to do so is have a dropown listbox, whihc contains the values 1,2,3 . So the user will only be able to insert these values and no other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 10:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-creation/m-p/1353608#M176837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T10:37:33Z</dc:date>
    </item>
  </channel>
</rss>

