<?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: User Exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/1886135#M371678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please someone help with completing this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2007 14:15:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-30T14:15:01Z</dc:date>
    <item>
      <title>User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/1886134#M371677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am tryin to create a userexit. when for a particular transaction when user enter serial number I have to make it doesn't exist and is in the specified format ( 1st digit should be 7 5,8 last four digits should be between 0000-9999).For all other transaction I have to make the serial number is present and specify error message if non-existent number is entered. I was able to come up with the following code. Please let me know to how to validate the format of the code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-tcode = 'xxxx'.&lt;/P&gt;&lt;P&gt;   SELECT SINGLE * FROM  equi INTO i_equi&lt;/P&gt;&lt;P&gt;                   WHERE eqtyp = 'S'&lt;/P&gt;&lt;P&gt;                   AND   matnr = matnr&lt;/P&gt;&lt;P&gt;                   AND   sernr = sernr.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      MESSAGE E398(00) WITH 'serial number already exists'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check validation like sernr+0(1) = first digit&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sernr&lt;EM&gt;1(2) = sy-datum&lt;/EM&gt;2(2).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sernr&lt;EM&gt;3(2) = sy-datum&lt;/EM&gt;0(2).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sernr+5(4) = last four digits.      &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM  equi INTO i_equi&lt;/P&gt;&lt;P&gt;                   WHERE eqtyp = 'S'&lt;/P&gt;&lt;P&gt;                   AND   matnr = matnr&lt;/P&gt;&lt;P&gt;                   AND   sernr = sernr.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;       MESSAGE E398(00) WITH 'Please enter a valid serial number'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 13:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/1886134#M371677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T13:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/1886135#M371678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please someone help with completing this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 14:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/1886135#M371678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T14:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/1886136#M371679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didnt really get your question - i mean, what do you want help with? &lt;/P&gt;&lt;P&gt;1. What's the transaction code(s) you're using?&lt;/P&gt;&lt;P&gt;2. Have you already identified the user-exit, or is that what you are asking here?&lt;/P&gt;&lt;P&gt;3. Having an error-message in a UE? Please check a few things first  - is that the expected/required behaviour? Also, will it work? Just insert a single e-message in the UE, with no other code, and see if your transaction actually errors out, or throws up a runtime error, or simply doesnt do anything!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plz award points if answers are useful!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 14:51:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/1886136#M371679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T14:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/1886137#M371680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have identified the User Exit....Now I have to code it properly...I want anyone to go through the code...and help in writing correct code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 14:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/1886137#M371680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T14:58:39Z</dc:date>
    </item>
  </channel>
</rss>

