<?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 Generic input validity check against table/field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-input-validity-check-against-table-field/m-p/3068812#M727303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Is there some function or something which would enable checking of a value against ANY table/field (or domain) combination? This is tricky because there are numerous criteria types. For example, date and currency fields have specific formats, many fields  have foreign key table, others have value table or fixed values list in domain...&lt;/P&gt;&lt;P&gt;I know that each of data types have specific functions. But I wonder is there something generic?&lt;/P&gt;&lt;P&gt;For example (note that this doesn't work):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: l_value TYPE char132.
l_value = '20071231'.
CALL FUNCTION 'CHECK_VALUE'
  EXPORTING tablename = 'BSEG'
            fieldname = 'BLDAT'
            value     = l_value
  EXCEPTIONS invalid = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2007 12:33:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-03T12:33:12Z</dc:date>
    <item>
      <title>Generic input validity check against table/field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-input-validity-check-against-table-field/m-p/3068812#M727303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Is there some function or something which would enable checking of a value against ANY table/field (or domain) combination? This is tricky because there are numerous criteria types. For example, date and currency fields have specific formats, many fields  have foreign key table, others have value table or fixed values list in domain...&lt;/P&gt;&lt;P&gt;I know that each of data types have specific functions. But I wonder is there something generic?&lt;/P&gt;&lt;P&gt;For example (note that this doesn't work):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: l_value TYPE char132.
l_value = '20071231'.
CALL FUNCTION 'CHECK_VALUE'
  EXPORTING tablename = 'BSEG'
            fieldname = 'BLDAT'
            value     = l_value
  EXCEPTIONS invalid = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 12:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-input-validity-check-against-table-field/m-p/3068812#M727303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T12:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Generic input validity check against table/field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-input-validity-check-against-table-field/m-p/3068813#M727304</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;the following function exists for domain controls : CHECK_DOMAIN_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also take a look in program /SAPDMC/SAP_LSMW_CONV_DATA_CHK to find some ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 13:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-input-validity-check-against-table-field/m-p/3068813#M727304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T13:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generic input validity check against table/field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-input-validity-check-against-table-field/m-p/3068814#M727305</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;This function looks promising, but doesn't work. Whatever combination I enter (good domain-good value, bad domain-bad value, good domain-bad value...), I get WRONG_VALUE exception.&lt;/P&gt;&lt;P&gt;Thanks for your input!&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 14:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-input-validity-check-against-table-field/m-p/3068814#M727305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T14:52:26Z</dc:date>
    </item>
  </channel>
</rss>

