<?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: Validation while creating entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-while-creating-entries/m-p/7609700#M1569189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you establish a foreign key relationship in your table between zmm_co_cus_ven-vendor_id and lfa1-lifnr, the check should be done automatically and you won't need any logic here at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jan 2011 15:07:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-12T15:07:10Z</dc:date>
    <item>
      <title>Validation while creating entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-while-creating-entries/m-p/7609699#M1569188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a custom table with table maintenance generator and want to perform validations while creating new records using SM30.&lt;/P&gt;&lt;P&gt;For this I've created one event of type 05.&lt;/P&gt;&lt;P&gt;Now while creating new entries, it performs the validation and shows the error message in the status bar, but in that screen it is not allowing me to modify that data and save again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code snippet:&lt;/STRONG&gt;form validate_input .&lt;/P&gt;&lt;P&gt;  data: v_vendor type lifnr,&lt;/P&gt;&lt;P&gt;        v_cust type kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single lifnr&lt;/P&gt;&lt;P&gt;    from lfa1&lt;/P&gt;&lt;P&gt;    into v_vendor&lt;/P&gt;&lt;P&gt;    where lifnr = zmm_co_cus_ven-vendor_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message 'Vendor does not exist in LFA1.' type 'E'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single kunnr&lt;/P&gt;&lt;P&gt;    from kna1&lt;/P&gt;&lt;P&gt;    into v_cust&lt;/P&gt;&lt;P&gt;    where kunnr = zmm_co_cus_ven-cust_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message 'Customer does not exist in KNA1.' type 'E'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " VALIDATE_INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Anirban.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 12:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-while-creating-entries/m-p/7609699#M1569188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-12T12:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Validation while creating entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-while-creating-entries/m-p/7609700#M1569189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you establish a foreign key relationship in your table between zmm_co_cus_ven-vendor_id and lfa1-lifnr, the check should be done automatically and you won't need any logic here at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 15:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-while-creating-entries/m-p/7609700#M1569189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-12T15:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Validation while creating entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-while-creating-entries/m-p/7609701#M1569190</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;Put Check table for the 2 custom fields in the custom table.&lt;/P&gt;&lt;P&gt;This would avoid the Event coding also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kranthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 22:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-while-creating-entries/m-p/7609701#M1569190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-12T22:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Validation while creating entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-while-creating-entries/m-p/7609702#M1569191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;P&gt;Points given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anirban.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 10:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-while-creating-entries/m-p/7609702#M1569191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-13T10:21:27Z</dc:date>
    </item>
  </channel>
</rss>

