<?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: Validate data when user enters data thru SM30 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435071#M207521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The primary key check is present in SM30 by default. Any other validations have to be written in the PAI module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my screen field name id FLD and I need to check that FLD should never be equal to A I will write the below code in the PAI module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field FLD module check_fld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on check_fld to create the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module write&lt;/P&gt;&lt;P&gt;if fld = 'A'.&lt;/P&gt;&lt;P&gt;message e000 with message&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2006 16:56:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-06T16:56:38Z</dc:date>
    <item>
      <title>Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435070#M207520</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;I have the following requirement i have to validate the data when user enters it at SM30. Actually the requirement is when the user enters data he has to accordingly set 2 custom flags. So what i have to do is i have to do validations on the primary key(to find out whether it is an existing entry or a new entry) and if he sets the flags wrongly i have to raise an error message. Is there any way this can be achieved..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 16:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435070#M207520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T16:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435071#M207521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The primary key check is present in SM30 by default. Any other validations have to be written in the PAI module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my screen field name id FLD and I need to check that FLD should never be equal to A I will write the below code in the PAI module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field FLD module check_fld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on check_fld to create the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module write&lt;/P&gt;&lt;P&gt;if fld = 'A'.&lt;/P&gt;&lt;P&gt;message e000 with message&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 16:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435071#M207521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T16:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435072#M207522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it a standard table or custom table ? if it is standard you can see the user exit SUSR0001 or if its custom table , then you can program it in flow logic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI &lt;/P&gt;&lt;P&gt;primary key check  is there by defualt in SM30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you idea!!&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Pl... award the points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Good luck &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saquib Khan&lt;/P&gt;&lt;P&gt;"Some are wise and some are otherwise"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 16:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435072#M207522</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-07-06T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435073#M207523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can achive that through events of table maintenance. Go to SE54, enter your table name and in the menu 'Environment--&amp;gt; Events'. Click through the pop-up message and in the next screen, click on 'New Entries'. Enter '01' as the event, some name for the routine and enter. A source code icon will appear. Click on that to create the routine in an include. In that source code, you can enter your validations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 16:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435073#M207523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T16:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435074#M207524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="158220"&gt;&lt;/A&gt; for sample code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 17:01:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435074#M207524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T17:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435075#M207525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi david,&lt;/P&gt;&lt;P&gt;For doing validations you need to make use of modification event &lt;/P&gt;&lt;P&gt;01 Before saving the data in the database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to link for list of events available&lt;/P&gt;&lt;P&gt;Extended Table Maintenance Events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To control with authorization please refer to the link below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maintain authorization groups&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this blog for event creations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how&lt;/A&gt; to implement events in table maintenance.doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 17:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435075#M207525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T17:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435076#M207526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;I am doing the following for my requirement..Is it the right way to do it..I am creating this routine within the include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE extract WITH KEY l_total.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        f_index = sy-tabix.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        CLEAR f_index.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING s_record TO l_total.&lt;/P&gt;&lt;P&gt;      MODIFY total FROM l_total.&lt;/P&gt;&lt;P&gt;      CHECK f_index GT 0.&lt;/P&gt;&lt;P&gt;      MODIFY extract INDEX f_index FROM l_total.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 18:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435076#M207526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T18:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435077#M207527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be OK, also you need to do validation here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not working as u expected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 18:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435077#M207527</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-06T18:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435078#M207528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Actually i am doing the following is it the right way??..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form validate_data.&lt;/P&gt;&lt;P&gt;DATA: f_index LIKE sy-tabix. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF l_total.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE ztable,&lt;/P&gt;&lt;P&gt;          INCLUDE  STRUCTURE vimtbflags,&lt;/P&gt;&lt;P&gt;       END OF l_total.&lt;/P&gt;&lt;P&gt;DATA: s_record TYPE ztable.&lt;/P&gt;&lt;P&gt;LOOP AT total INTO l_total.&lt;/P&gt;&lt;P&gt;IF l_total-vim_action = aendern OR&lt;/P&gt;&lt;P&gt;   l_total-vim_action = neuer_eintrag.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING l_total TO s_record.&lt;/P&gt;&lt;P&gt;if s_record-zzgeoloc = ztable-zzprimary and zgeoloc-zzflag2 = 'X'.&lt;/P&gt;&lt;P&gt;Message e001(z_msg).&lt;/P&gt;&lt;P&gt;elseif s_record-zzprimary = zgeoloc-zzprimary and zgeoloc-zzflag1 ne 'X'.&lt;/P&gt;&lt;P&gt;Message e002(z_msg).&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_record-primary ne ztable-zzprimary.&lt;/P&gt;&lt;P&gt;s_record-zzflag1 = 'X'.&lt;/P&gt;&lt;P&gt;s_record-zzflag2 = ''.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;READ TABLE extract WITH KEY l_total.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        f_index = sy-tabix.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        CLEAR f_index.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING s_record TO l_total.&lt;/P&gt;&lt;P&gt;      MODIFY total FROM l_total.&lt;/P&gt;&lt;P&gt;      CHECK f_index GT 0.&lt;/P&gt;&lt;P&gt;      MODIFY extract INDEX f_index FROM l_total.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 18:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435078#M207528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T18:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435079#M207529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a small example where I check for blank values in the key fields. May be this is much simpler to understand.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*---------------------------------------------------------------------*
*       FORM CHECK_FOR_BLANK_KEYFIELDS                                *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
form check_for_blank_keyfields.

  data: l_field_is_blank.
  data: begin of s_table.
          include structure ztable.
          include structure vimtbflags.
  data: end of s_ztable.

  loop at total.
    clear s_ztable.
    move total to s_ztable.
    check s_ztable-vim_action &amp;lt;&amp;gt; neuer_geloescht
      and s_ztable-vim_action &amp;lt;&amp;gt; update_geloescht
      and s_ztable-vim_action &amp;lt;&amp;gt; dummy_geloescht.
    if s_ztable-keyfield1 is initial or
       s_ztable-keyfield2 is initial.
      l_field_is_blank = 'X'.
      exit.
    endif.
  endloop.

  if l_field_is_blank = 'X'.
    message i000 with 'Both values should be filled in.'.
    sy-subrc = 4. &amp;lt;-- this is important
  else.
    sy-subrc = 0.
  endif.
  clear l_field_is_blank.

endform.                             " CHECK_FOR_BLANK_KEYFIELDS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 19:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435079#M207529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T19:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435080#M207530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;I created the routine like this but when its not working. I put a breakpoint and its not even triggering when i am adding some data using SM30. Any idea what went wrong here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form validate_data.&lt;/P&gt;&lt;P&gt;DATA: f_index LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF s_ztable.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE zgeoloc.&lt;/P&gt;&lt;P&gt;          INCLUDE  STRUCTURE vimtbflags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: end of s_ztable.&lt;/P&gt;&lt;P&gt;DATA: l_field_is_blank.&lt;/P&gt;&lt;P&gt;loop at total.&lt;/P&gt;&lt;P&gt;    clear s_ztable.&lt;/P&gt;&lt;P&gt;    move total to s_ztable.&lt;/P&gt;&lt;P&gt;    check s_ztable-vim_action &amp;lt;&amp;gt; neuer_geloescht&lt;/P&gt;&lt;P&gt;      and s_ztable-vim_action &amp;lt;&amp;gt; update_geloescht&lt;/P&gt;&lt;P&gt;      and s_ztable-vim_action &amp;lt;&amp;gt; dummy_geloescht.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_ztable-zzenabled_flag eq ''.&lt;/P&gt;&lt;P&gt;      l_field_is_blank = 'X'.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if l_field_is_blank = 'X'.&lt;/P&gt;&lt;P&gt;    message i001 with 'Both values should be filled in.'.&lt;/P&gt;&lt;P&gt;    sy-subrc = 4.  "this is important&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  clear l_field_is_blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                             " CHECK_FOR_BLANK_KEYFIELDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:22:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435080#M207530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T20:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435081#M207531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which event are you using? I used 01 for the second code I gave you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435081#M207531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T20:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435082#M207532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also check whether your Function group is active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435082#M207532</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-06T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435083#M207533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your previous event 25 will trigger only if you press SAVE. That is why changing the SY-SUBRC is so important.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435083#M207533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T20:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435084#M207534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;I am using the event 01 and the code as i pasted in my earlier reply. Its now trigerring when i am saving in SM30 but when i am debugging i see that what i am entering thru SM30 is not shown in the structure s_ztable contents. Do i need to refresh something here, also when it goes to the Message thing it gives me the popup that information function is not supported..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for all ur help so far i would definitely reward you with necessary points..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435084#M207534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T20:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435085#M207535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure why you are getting this. I don't have get it for my table. Event 01 is triggered when you press SAVE. With regards to your popup, can you please give me the exact text of the message and the number and id?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of looking at the entire structure of s_ztable, try to look for individual field values in debugging to see if they are what you entered in the initial screen. Also, please check if you need all the checks for VIM_ACTION field. You can double click on those constants and see what they mean. Also, there is very good documentation in that screen. You can read it by clicking on the blue 'I' icon. That will give you an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435085#M207535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T20:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435086#M207536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;Actually the only problem now what i saw is it is always taking the first entry in SM30 only even though if it is previously saved one. So do i have to refresh total or something like that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 21:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435086#M207536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T21:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435087#M207537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;Hurray that seems to be working now its giving me the appropiate message i guess i will have to use some popup function module instead as it is kicking me out with the error message. But i have one more question for you for instance i have to change some of the non-primary fields for a record manually how can we do that in SM30??..when i enter the primary key and alter the non-primary fields it doesnt allow me to save it and gives error that "a key already exists"..Do you have any idea??..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot in advance and i have rewarded you with points so far once we are done with this i will mark it complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 21:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435087#M207537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T21:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Validate data when user enters data thru SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435088#M207538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm! that is interesting. Do you have two screen maintenance or single screen maintenance? Either way, it should not restrict you from changing the values of an existing record. Did you, by any chance, click on 'copy' and changed only the non-key fields? For changing non-key fields, all you have to do is change them where they are displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 20:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-when-user-enters-data-thru-sm30/m-p/1435088#M207538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T20:51:14Z</dc:date>
    </item>
  </channel>
</rss>

