<?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: check..numeric and charcter fields. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-numeric-and-charcter-fields/m-p/1898953#M375601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use code like this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if input CN '0123456789'  . " (not numc field)&lt;/P&gt;&lt;P&gt;**right justify.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;*left justify.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2007 07:14:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-15T07:14:30Z</dc:date>
    <item>
      <title>check..numeric and charcter fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-numeric-and-charcter-fields/m-p/1898950#M375598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        iam checking the conditions for numeric and character.if the output is numeric then it can shift to right justify,else if it is charcter left justify.but the following code is not checking for charcter fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:p_input type c.&lt;/P&gt;&lt;P&gt;  data: pout type string.&lt;/P&gt;&lt;P&gt;  data: htype like DD01V-DATATYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if htype = 'CHAR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    shift htype LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&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  = P_INPUT&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      STRING_OUT = POUT&lt;/P&gt;&lt;P&gt;      HTYPE      = HTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SHIFT htype RIGHT DELETING TRAILING space.&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;plz help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 06:26:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-numeric-and-charcter-fields/m-p/1898950#M375598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T06:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: check..numeric and charcter fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-numeric-and-charcter-fields/m-p/1898951#M375599</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;Please initialise htype to 'CHAR'. Also, Populate pout and use shift pout LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: Move 'CHAR' TO HTYPE.&lt;/P&gt;&lt;P&gt;      Move '   SKK' TO POUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then, use          shift pout LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;and not                    shift htype LEFT DELETING LEADING space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 06:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-numeric-and-charcter-fields/m-p/1898951#M375599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T06:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: check..numeric and charcter fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-numeric-and-charcter-fields/m-p/1898952#M375600</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;try sth like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters p_input(50).
DATA: pout TYPE string.
DATA: htype LIKE dd01v-datatype.

CALL FUNCTION 'NUMERIC_CHECK'
     EXPORTING
          string_in  = p_input
     IMPORTING
          string_out = pout
          htype      = htype.


IF htype = 'CHAR'.
  SHIFT pout LEFT DELETING LEADING space.
ELSE.
  SHIFT pout RIGHT DELETING TRAILING space.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 07:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-numeric-and-charcter-fields/m-p/1898952#M375600</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2007-01-15T07:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: check..numeric and charcter fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-numeric-and-charcter-fields/m-p/1898953#M375601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use code like this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if input CN '0123456789'  . " (not numc field)&lt;/P&gt;&lt;P&gt;**right justify.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;*left justify.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 07:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-numeric-and-charcter-fields/m-p/1898953#M375601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T07:14:30Z</dc:date>
    </item>
  </channel>
</rss>

