<?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 type checking in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-checking/m-p/3134223#M744693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my flat file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;char numc currency&lt;/P&gt;&lt;P&gt;karthi 1233 123,000.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have check give feild give correct format or worg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;urgent .................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when ever u get the data from flat file to internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give a check if condition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if check is fine append or else put it into a error file.. or write out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write condition?sample code nned please urgent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2007 01:21:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-19T01:21:32Z</dc:date>
    <item>
      <title>type checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-checking/m-p/3134223#M744693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my flat file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;char numc currency&lt;/P&gt;&lt;P&gt;karthi 1233 123,000.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have check give feild give correct format or worg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;urgent .................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when ever u get the data from flat file to internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give a check if condition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if check is fine append or else put it into a error file.. or write out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write condition?sample code nned please urgent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 01:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-checking/m-p/3134223#M744693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T01:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: type checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-checking/m-p/3134224#M744694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
if char co sy-abcde
else.
   " Only character values in field char
endif. 

if numc co '0123456789'
else.
   " Only numeric values in field numc
endif. 

if currency &amp;gt;= 0
else.
   " Currency should be &amp;gt; 0
endif. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please give your queries in detail, so that other members understand easily&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 01:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-checking/m-p/3134224#M744694</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-12-19T01:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: type checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-checking/m-p/3134225#M744695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Types as Follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;DATA:lr_descrref TYPE REF TO cl_abap_typedescr.&lt;/P&gt;&lt;P&gt;&amp;gt;lr_descrref = cl_abap_typedescr=&amp;gt;describe_by_data( variable ). " this is the variable of &amp;gt;which you want to check the type of&lt;/P&gt;&lt;P&gt;&amp;gt;CASE lr_descrref-&amp;gt;type_kind.&lt;/P&gt;&lt;P&gt;&amp;gt;WHEN= 'P'.&lt;/P&gt;&lt;P&gt;&amp;gt; Packed Number&lt;/P&gt;&lt;P&gt;&amp;gt;WHEN 'C'.&lt;/P&gt;&lt;P&gt;&amp;gt; Character&lt;/P&gt;&lt;P&gt;&amp;gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;&amp;gt; And so on.&lt;/P&gt;&lt;P&gt;&amp;gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be the best way to check types dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 02:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-checking/m-p/3134225#M744695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T02:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: type checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-checking/m-p/3134226#M744696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the FM NUMERIC_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: ch(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ty type DD01V-DATATYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'NUMERIC_CHECK'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    STRING_IN        = ch&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   STRING_OUT       = ch&lt;/P&gt;&lt;P&gt;   HTYPE            = ty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case ty.&lt;/P&gt;&lt;P&gt;when 'NUMC'.&lt;/P&gt;&lt;P&gt;when 'CHAR'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 02:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-checking/m-p/3134226#M744696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T02:59:58Z</dc:date>
    </item>
  </channel>
</rss>

