<?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: convert? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304637#M791383</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 this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHECK_AND_CONVERT_NUMERICS' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;dmzei = ',' &lt;/P&gt;&lt;P&gt;dtype = 'CURR' &lt;/P&gt;&lt;P&gt;efeld = input &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;error = error &lt;/P&gt;&lt;P&gt;ifeld = output &lt;/P&gt;&lt;P&gt;messg = messg &lt;/P&gt;&lt;P&gt;msgln = msgln. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use this FM&lt;/P&gt;&lt;P&gt;/CWM/CONVERT_CHAR_TO_PACK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2008 11:58:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-25T11:58:44Z</dc:date>
    <item>
      <title>convert?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304633#M791379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;How can I convert char -&amp;gt; integer?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 11:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304633#M791379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T11:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: convert?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304634#M791380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_STRING_TO_INTEGER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 11:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304634#M791380</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-25T11:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: convert?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304635#M791381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PARAMETERS: INT TYPE I.
DATA: CHAR(10).
WRITE INT TO CHAR.
WRITE: CHAR.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 11:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304635#M791381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T11:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: convert?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304636#M791382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I convert a number to a string?&lt;/P&gt;&lt;P&gt;By admin on Jan 17, 2007 in C Interview Questions, Technical&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard C library provides several functions for converting numbers of all formats (integers, longs, floats, and so on) to strings and vice versa The following functions can be used to convert integers to strings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Name Purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itoa() Converts an integer value to a string.&lt;/P&gt;&lt;P&gt;ltoa() Converts a long integer value to a string.&lt;/P&gt;&lt;P&gt;ultoa() Converts an unsigned long integer value to a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following functions can be used to convert floating-point values to strings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Name Purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ecvt() Converts a double-precision floating-point value to a string without an embedded decimal point.&lt;/P&gt;&lt;P&gt;fcvt() Same as ecvt(), but forces the precision to a specified number of digits.&lt;/P&gt;&lt;P&gt;gcvt() Converts a double-precision floating-point value to a string with an embedded decimal point.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Processing Strings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String processing statements, whose arguments were all interpreted as fields of type C until now, are now divided into statements with character arguments and those with byte arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String processing statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ... WITH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT TEXT ... INTO SORTABLE CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OVERLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... TO UPPER/LOWER CASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... USING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The arguments of these instructions must be single fields of type C, N, D, T or STRING or structures of character-type only. There is a syntax or runtime error if arguments of a different type are passed. A subset of this function is provided with the addition IN BYTE MODE for processing byte strings &amp;#150; that is, operands of type X or XSTRING. A statement such as CONCATENATE a x b INTO c is thus no longer possible when a,b, and c are all character-type, but x is of type X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... CODEPAGE ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... NUMBER FORMAT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statements are not allowed in Unicode programs. Instead, you can use the new conversion classes, which are described in more detail in Converting Data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparison operators for string processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CO &lt;/P&gt;&lt;P&gt;CN &lt;/P&gt;&lt;P&gt;CA &lt;/P&gt;&lt;P&gt;NA &lt;/P&gt;&lt;P&gt;CS &lt;/P&gt;&lt;P&gt;NS &lt;/P&gt;&lt;P&gt;CP &lt;/P&gt;&lt;P&gt;NP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As with the string processing statements, these operators need single fields of type C, N, D, T or STRING as arguments and again structures of character-type only are allowed. Special compare operators defined with the prefix BYTE- are provided for byte strings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions for string processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function STRLEN only works with character-type fields and returns the length in characters. The new function XSTRLEN finds the length of byte strings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until now, function CHARLEN returned the value1 for a text field beginning with a single byte character under an NUS. The value 2 is returned for text fields beginning with a double byte character. Under a US, CHARLEN returns the value 1 if text begins with a single Unicode character. If text begins with a Unicode double character from the surrogate area, the value 2 is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function NUMOFCHAR returns the number of characters in a string or a character-type field. In single byte code pages, the function behaves like STRLEN. In multi-byte code pages, characters filling more than 1 byte are nevertheless considered to have length 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output in fields and lists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In WRITE ...TO, any flat data types that were handled like C fields were allowed as the target field. A UP now requires that the target field be of character-type in a WRITE ... TO ... statement. The line type of the table must be of character-type for the table variant WRITE ... TO itab INDEX idx. The offset and length are counted in characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until now, any flat structures could be output with WRITE. If the source field is a flat structure in a WRITE, it must have character-type only, in a UP. This affects the following statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE f TO g[+off][(len)].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE (name) TO g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE f TO itab[+off][(len)] INDEX idx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE (name) TO itab[+off][(len)] INDEX idx. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Use the categories used in the Dictionary when using these types with Structure Enhancements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; check the links.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/functions.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb341a358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb341a358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Sowjanya.B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 11:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304636#M791382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T11:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: convert?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304637#M791383</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 this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHECK_AND_CONVERT_NUMERICS' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;dmzei = ',' &lt;/P&gt;&lt;P&gt;dtype = 'CURR' &lt;/P&gt;&lt;P&gt;efeld = input &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;error = error &lt;/P&gt;&lt;P&gt;ifeld = output &lt;/P&gt;&lt;P&gt;messg = messg &lt;/P&gt;&lt;P&gt;msgln = msgln. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use this FM&lt;/P&gt;&lt;P&gt;/CWM/CONVERT_CHAR_TO_PACK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 11:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304637#M791383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T11:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: convert?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304638#M791384</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;Use the Function module MOVE_CHAR_TO_NUM to convert char to a variable of type  P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 12:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert/m-p/3304638#M791384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T12:06:43Z</dc:date>
    </item>
  </channel>
</rss>

