<?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: Configure Data Type to avoid wrong Entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/configure-data-type-to-avoid-wrong-entries/m-p/1150545#M117391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to configure such a data type in dictionay then you can attach conversion routine to that field in domain. Sample code provided by rich may help you in writing routine. You can flash messages when there is any error in input to that filed through conversion routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2006 16:19:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-02T16:19:04Z</dc:date>
    <item>
      <title>Configure Data Type to avoid wrong Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/configure-data-type-to-avoid-wrong-entries/m-p/1150542#M117388</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;is it possible to configure a data type to avoid non corresponding entries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example a field like CCNN.NNNN-NN.NNNN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C should be a Character, N a number. All differences should be rejected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 13:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/configure-data-type-to-avoid-wrong-entries/m-p/1150542#M117388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T13:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Data Type to avoid wrong Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/configure-data-type-to-avoid-wrong-entries/m-p/1150543#M117389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't set up a datatype like that, but you can do this with a little coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0002 .

data: s type string.
data: length type i.

s = 'A11234A6789'.
length = strlen( s ).

if s+0(2) ca '1234567890'.
  write:/ 'first two characters are not characters'.
endif.

length = length - 2.
if  s+2(length) ca sy-abcde.
  write:/ 'other characters are not numbers'.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 14:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/configure-data-type-to-avoid-wrong-entries/m-p/1150543#M117389</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-02T14:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Data Type to avoid wrong Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/configure-data-type-to-avoid-wrong-entries/m-p/1150544#M117390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Create a  number range object using SNRO transaction&lt;/P&gt;&lt;P&gt;    for table field.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 14:18:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/configure-data-type-to-avoid-wrong-entries/m-p/1150544#M117390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Data Type to avoid wrong Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/configure-data-type-to-avoid-wrong-entries/m-p/1150545#M117391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to configure such a data type in dictionay then you can attach conversion routine to that field in domain. Sample code provided by rich may help you in writing routine. You can flash messages when there is any error in input to that filed through conversion routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 16:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/configure-data-type-to-avoid-wrong-entries/m-p/1150545#M117391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T16:19:04Z</dc:date>
    </item>
  </channel>
</rss>

