<?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: How do I validate against a Data Element within ABAP? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956088#M66331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers but they don't quite answer my question.  My CSV input file will have something like this:&lt;/P&gt;&lt;P&gt;Company Code, BUKRS, 800&lt;/P&gt;&lt;P&gt;Business Area, GSBER, 400&lt;/P&gt;&lt;P&gt;Account Type, KOART, 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For BUKRS and GSBER I now see that I can check the Data Elements "Value table" and validate against it but some of my fields don't have a value table, eg KOART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I read the CSV I need to check that "5" is a valid value for KOART.  For example, if the CSV contained:&lt;/P&gt;&lt;P&gt;Account Type, KOART, wumpus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to detect that "wumpus" is not a valid value for KOART.  Is there a SAP function I can call to check if a value is a valid value for any given Data Element?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Malc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2005 16:22:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-08T16:22:51Z</dc:date>
    <item>
      <title>How do I validate against a Data Element within ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956085#M66328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on an ABAP that will upload a CSV file into SAP and create Activity Group Authorisations based on the contents of the CSV.  One of the requirements is that the CSV is validated before processing.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I validate a value against a Data Element specification?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For info, I'm trying to validate Activity Group Org Level values.  For example, is the value read from the CSV a valid BUKRS value?  I need to confirm to the user that all the data is good the actual creating of the auth's starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Malc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2005 14:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956085#M66328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-08T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I validate against a Data Element within ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956086#M66329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to find out the corresponding database table and validate against that. One way to find out the table is to go to the domain and look for the value table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2005 14:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956086#M66329</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-07-08T14:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I validate against a Data Element within ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956087#M66330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to validate against table T001 for BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select Single * from t001w
           where bukrs = itab-bukrs.
If sy-subrc &amp;lt;&amp;gt; 0.
Messsage E001(00) with 'Company Code not found'.
Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Fri, 08 Jul 2005 15:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956087#M66330</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-08T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I validate against a Data Element within ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956088#M66331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers but they don't quite answer my question.  My CSV input file will have something like this:&lt;/P&gt;&lt;P&gt;Company Code, BUKRS, 800&lt;/P&gt;&lt;P&gt;Business Area, GSBER, 400&lt;/P&gt;&lt;P&gt;Account Type, KOART, 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For BUKRS and GSBER I now see that I can check the Data Elements "Value table" and validate against it but some of my fields don't have a value table, eg KOART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I read the CSV I need to check that "5" is a valid value for KOART.  For example, if the CSV contained:&lt;/P&gt;&lt;P&gt;Account Type, KOART, wumpus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to detect that "wumpus" is not a valid value for KOART.  Is there a SAP function I can call to check if a value is a valid value for any given Data Element?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Malc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2005 16:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956088#M66331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-08T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I validate against a Data Element within ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956089#M66332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the function module DDIF_FIELDINFO_GET which will return the possible values of a field. Then you can check the value from the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2005 16:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956089#M66332</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-07-08T16:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I validate against a Data Element within ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956090#M66333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: dbdiff_values type ddfixvalues, "Festwerttexte zu dbdiffkind
      dbdiff_val    type ddfixvalue.

parameters: p_koart type koart.

at selection-screen.

  call function 'DDIF_FIELDINFO_GET'
       exporting
            tabname      = 'BSEG'
            fieldname    = 'KOART'
            lfieldname   = 'KOART'
       tables
            fixed_values = dbdiff_values.

  read table dbdiff_values into   dbdiff_val
                   with key low = p_koart.

  if sy-subrc &amp;lt;&amp;gt; 0.
    message e001(00) with 'Entry not found'.

  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>Fri, 08 Jul 2005 17:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-validate-against-a-data-element-within-abap/m-p/956090#M66333</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-08T17:16:11Z</dc:date>
    </item>
  </channel>
</rss>

