<?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: Convertion rule. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2841001#M665388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;u can move if u specify the legth of the character in character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: k type i value 17,&lt;/P&gt;&lt;P&gt;n(2) type c. --&amp;gt;spcify the length of the character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regars&lt;/P&gt;&lt;P&gt;baskaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2007 12:32:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-06T12:32:35Z</dc:date>
    <item>
      <title>Convertion rule.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2840997#M665384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; i hv doubt in this code lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: k type i value  17,&lt;/P&gt;&lt;P&gt;n type c value 'a'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move k to n.&lt;/P&gt;&lt;P&gt;*move n to k.&lt;/P&gt;&lt;P&gt;write k&lt;/P&gt;&lt;P&gt;write n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i m using "move k to n". i m getting output 17    *, but if i use "move n to k"&lt;/P&gt;&lt;P&gt;i m getting runtimeerror.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anybody tell me abt this conversion rules. and why i m getting * and runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points for sure:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 12:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2840997#M665384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T12:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convertion rule.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2840998#M665385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conversion table for source type C&lt;/P&gt;&lt;P&gt;Target Conversion&lt;/P&gt;&lt;P&gt;C The target field is filled from left to right. If it is too long, it is filled with blanks from the&lt;/P&gt;&lt;P&gt;right. If it is too short, the contents are truncated at the right-hand end.&lt;/P&gt;&lt;P&gt;D The character field should contain an 8-character date in the format YYYYMMDD .&lt;/P&gt;&lt;P&gt;F The contents of the source field must be a valid representation of a type F field as&lt;/P&gt;&lt;P&gt;described in Literals .&lt;/P&gt;&lt;P&gt;N Only the digits in the source field are copied. The field is right-justified and filled with&lt;/P&gt;&lt;P&gt;trailing zeros.&lt;/P&gt;&lt;P&gt;I or P&lt;/P&gt;&lt;P&gt;The source field must contain the representation of a decimal number, that is, a&lt;/P&gt;&lt;P&gt;sequence of digits with an optional sign and no more than one decimal point. The&lt;/P&gt;&lt;P&gt;source field can contain blanks. If the target field is too short, an overflow may occur.&lt;/P&gt;&lt;P&gt;This may cause the system to terminate the program.&lt;/P&gt;&lt;P&gt;T The character field should contain a 6-character time in HHMMSS format.&lt;/P&gt;&lt;P&gt;X Since the character field should contain a hexadecimal-character string, the only valid&lt;/P&gt;&lt;P&gt;characters are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. This character string is packed as a&lt;/P&gt;&lt;P&gt;hexadecimal number, transported left-justified, and padded with zeros or truncated on&lt;/P&gt;&lt;P&gt;the right.&lt;/P&gt;&lt;P&gt;Source Type Date&lt;/P&gt;&lt;P&gt;Conversion table for source type D&lt;/P&gt;&lt;P&gt;Target Conversion&lt;/P&gt;&lt;P&gt;C The date is transported left-justified without conversion.&lt;/P&gt;&lt;P&gt;D Transport without conversion.&lt;/P&gt;&lt;P&gt;F The date is converted into a packed number. The packed number is then converted&lt;/P&gt;&lt;P&gt;into a floating point number (see corresponding table).&lt;/P&gt;&lt;P&gt;N The date is converted into a character field. The character field is then converted into&lt;/P&gt;&lt;P&gt;a numeric text field (see corresponding table).&lt;/P&gt;&lt;P&gt;I or P&lt;/P&gt;&lt;P&gt;The date is converted to the number of days since 01.01.0001.&lt;/P&gt;&lt;P&gt;T Not supported. Results in an error message during the syntax check or in a runtime&lt;/P&gt;&lt;P&gt;error.&lt;/P&gt;&lt;P&gt;X The date is converted to the number of days since 01.01.0001 in hexadecimal format.&lt;/P&gt;&lt;P&gt;BC - ABAP Programming SAP AG&lt;/P&gt;&lt;P&gt;Conversion Rules for Elementary Data Types&lt;/P&gt;&lt;P&gt;188 April 2001&lt;/P&gt;&lt;P&gt;Source Type Floating Point Number&lt;/P&gt;&lt;P&gt;Conversion table for source type F&lt;/P&gt;&lt;P&gt;Target Conversion&lt;/P&gt;&lt;P&gt;C The floating point number is converted to the &amp;lt;mantissa&amp;gt;E&amp;lt;exponent&amp;gt; format and&lt;/P&gt;&lt;P&gt;transported to the character field. The value of the mantissa lies between 1 and 10&lt;/P&gt;&lt;P&gt;unless the number is zero. The exponent is always signed. If the target field is too&lt;/P&gt;&lt;P&gt;short, the mantissa is rounded. The length of the character field should be at least 6&lt;/P&gt;&lt;P&gt;bytes.&lt;/P&gt;&lt;P&gt;D The source field is converted into a packed number. The packed number is then&lt;/P&gt;&lt;P&gt;converted into a date field (see corresponding table).&lt;/P&gt;&lt;P&gt;F Transport without conversion.&lt;/P&gt;&lt;P&gt;N The source field is converted into a packed number. The packed number is then&lt;/P&gt;&lt;P&gt;converted into a numeric text field (see corresponding table).&lt;/P&gt;&lt;P&gt;I or P&lt;/P&gt;&lt;P&gt;The floating point number is converted to an integer or fixed point value and, if&lt;/P&gt;&lt;P&gt;necessary, rounded.&lt;/P&gt;&lt;P&gt;T The source field is converted into a packed number. The packed number is then&lt;/P&gt;&lt;P&gt;converted into a time field (see corresponding table).&lt;/P&gt;&lt;P&gt;X The source field is converted into a packed number. The packed number is then&lt;/P&gt;&lt;P&gt;converted into a hexadecimal number (see corresponding table).&lt;/P&gt;&lt;P&gt;Source Type Integer&lt;/P&gt;&lt;P&gt;Type I is always treated in the same way as type P without decimal places. Wherever type P is&lt;/P&gt;&lt;P&gt;mentioned, the same applies to type I fields.&lt;/P&gt;&lt;P&gt;Source Type Numeric Text&lt;/P&gt;&lt;P&gt;Conversion table for source type N&lt;/P&gt;&lt;P&gt;Target Conversion&lt;/P&gt;&lt;P&gt;C The numeric field is treated like a character field. Leading zeros are retained.&lt;/P&gt;&lt;P&gt;D The numeric field is converted into a character field. The character field is then&lt;/P&gt;&lt;P&gt;converted into a date field (see corresponding table).&lt;/P&gt;&lt;P&gt;F The numeric field is converted into a packed number. The packed number is then&lt;/P&gt;&lt;P&gt;converted into a floating point number (see corresponding table).&lt;/P&gt;&lt;P&gt;N The numeric field is transported right-justified and padded with zeros or truncated on&lt;/P&gt;&lt;P&gt;the left.&lt;/P&gt;&lt;P&gt;I and P&lt;/P&gt;&lt;P&gt;The numeric field is interpreted as a number, and transferred to the target field, where&lt;/P&gt;&lt;P&gt;it is right-justified, and adopts a plus sign. If the target field is too short, the program&lt;/P&gt;&lt;P&gt;may be terminated.&lt;/P&gt;&lt;P&gt;T The numeric field is converted into a character field. The character field is then&lt;/P&gt;&lt;P&gt;converted into a time field (see corresponding table).&lt;/P&gt;&lt;P&gt;X The numeric field is converted into a packed number. The packed number is then&lt;/P&gt;&lt;P&gt;converted into a hexadecimal number (see corresponding table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source Type Packed Number&lt;/P&gt;&lt;P&gt;If the program attribute Fixed point arithmetic is set, the system rounds type P fields according to&lt;/P&gt;&lt;P&gt;the number of decimal places or fills them out with zeros.&lt;/P&gt;&lt;P&gt;Conversion table for source type P&lt;/P&gt;&lt;P&gt;Target Conversion&lt;/P&gt;&lt;P&gt;C The packed field is transported right-justified to the character field, if required with a&lt;/P&gt;&lt;P&gt;decimal point. The first position is reserved for the sign. Leading zeros appear as&lt;/P&gt;&lt;P&gt;blanks. If the target field is too short, the sign is omitted for positive numbers. If this is&lt;/P&gt;&lt;P&gt;still not sufficient, the field is truncated on the left. ABAP indicates the truncation with&lt;/P&gt;&lt;P&gt;an asterisk (*). If you want the leading zeros to appear in the character field, use&lt;/P&gt;&lt;P&gt;UNPACK instead of MOVE.&lt;/P&gt;&lt;P&gt;D The packed field value represents the number of days since 01.01.0001 and is&lt;/P&gt;&lt;P&gt;converted to a date in YYYYMMDD format.&lt;/P&gt;&lt;P&gt;F The packed field is accepted and transported as a floating point number.&lt;/P&gt;&lt;P&gt;N The packed field is rounded if necessary, unpacked, and then transported rightjustified.&lt;/P&gt;&lt;P&gt;The sign is omitted. If required, the target field is padded with zeros on the&lt;/P&gt;&lt;P&gt;left.&lt;/P&gt;&lt;P&gt;I and P&lt;/P&gt;&lt;P&gt;The packed field is transported right-justified. If the target field is too short, an&lt;/P&gt;&lt;P&gt;overflow occurs.&lt;/P&gt;&lt;P&gt;T The packed field value represents the number of seconds since midnight and is&lt;/P&gt;&lt;P&gt;converted to a time in HHMMSS format.&lt;/P&gt;&lt;P&gt;X The packed field is rounded if necessary and then converted to a hexadecimal&lt;/P&gt;&lt;P&gt;number. Negative numbers are represented by the two's complement. If the target&lt;/P&gt;&lt;P&gt;field is too short, the number is truncated on the left.&lt;/P&gt;&lt;P&gt;Source Type Time&lt;/P&gt;&lt;P&gt;Conversion table for source type T&lt;/P&gt;&lt;P&gt;Target Conversion&lt;/P&gt;&lt;P&gt;C The source field is transported left-justified without conversion.&lt;/P&gt;&lt;P&gt;D Not supported. Results in an error message during the syntax check or in a runtime&lt;/P&gt;&lt;P&gt;error.&lt;/P&gt;&lt;P&gt;F The source field is converted into a packed number. The packed number is then&lt;/P&gt;&lt;P&gt;converted into a floating point number (see corresponding table).&lt;/P&gt;&lt;P&gt;N The date is converted into a character field. The character field is then converted into&lt;/P&gt;&lt;P&gt;a numeric text field (see corresponding table).&lt;/P&gt;&lt;P&gt;I and P&lt;/P&gt;&lt;P&gt;The date is converted to the number of seconds since midnight.&lt;/P&gt;&lt;P&gt;T Transport without conversion.&lt;/P&gt;&lt;P&gt;X The date is converted to the number of seconds since midnight in hexadecimal&lt;/P&gt;&lt;P&gt;format.&lt;/P&gt;&lt;P&gt;Source Type Hexadecimal&lt;/P&gt;&lt;P&gt;Conversion table for source type X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Target Conversion&lt;/P&gt;&lt;P&gt;C The value in the hexadecimal field is converted to a hexadecimal character string,&lt;/P&gt;&lt;P&gt;transported left-justified to the target field, and padded with zeros.&lt;/P&gt;&lt;P&gt;D The source field value represents the number of days since 01.01.0001 and is&lt;/P&gt;&lt;P&gt;converted to a date in YYYYMMDD format.&lt;/P&gt;&lt;P&gt;F The source field is converted into a packed number. The packed number is then&lt;/P&gt;&lt;P&gt;converted into a floating point number (see corresponding table).&lt;/P&gt;&lt;P&gt;N The source field is converted into a packed number. The packed number is then&lt;/P&gt;&lt;P&gt;converted into a numeric text field (see corresponding table).&lt;/P&gt;&lt;P&gt;I and P&lt;/P&gt;&lt;P&gt;The value of the source field is interpreted as a hexadecimal number. It is converted&lt;/P&gt;&lt;P&gt;to a packed decimal number and transported right-justified to the target field. If the&lt;/P&gt;&lt;P&gt;hexadecimal field is longer than 4 bytes, only the last four bytes are converted. If it is&lt;/P&gt;&lt;P&gt;too short, a runtime error may occur.&lt;/P&gt;&lt;P&gt;T The source field value represents the number of seconds since midnight and is&lt;/P&gt;&lt;P&gt;converted to a time in HHMMSS format.&lt;/P&gt;&lt;P&gt;X The value is transported left-justified and filled with X'00' on the right, if necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Raghu Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 12:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2840998#M665385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T12:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convertion rule.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2840999#M665386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;data: k type i value 17,&lt;/P&gt;&lt;P&gt;n(3) type c value 'a'.   --&amp;gt; try it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move k to n.&lt;/P&gt;&lt;P&gt;*move n to k.&lt;/P&gt;&lt;P&gt;write k&lt;/P&gt;&lt;P&gt;write n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y your getting error menas.&lt;/P&gt;&lt;P&gt;1. u can move one integer variable to character but not to move character to integer.&lt;/P&gt;&lt;P&gt;2. y '*' sympol is comming na u didn't declare the length of the character.&lt;/P&gt;&lt;P&gt;3.if u specify the length of the character na u can move .&lt;/P&gt;&lt;P&gt;4. u can't get 17* . u should get only *. i think so..&lt;/P&gt;&lt;P&gt;5. type concersion error will be occur if u 'move character to integer'.&lt;/P&gt;&lt;P&gt;6. y u r getting menas the default character value is '&lt;STRONG&gt;',so u can't move '&lt;/STRONG&gt;' to any integer value.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;baskaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        baskaran nagamanickam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        baskaran nagamanickam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 12:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2840999#M665386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T12:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convertion rule.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2841000#M665387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for thee reply..but why cant we move character to integer vartiable but can mone viaversa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 12:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2841000#M665387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T12:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convertion rule.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2841001#M665388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;u can move if u specify the legth of the character in character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: k type i value 17,&lt;/P&gt;&lt;P&gt;n(2) type c. --&amp;gt;spcify the length of the character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regars&lt;/P&gt;&lt;P&gt;baskaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 12:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2841001#M665388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T12:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convertion rule.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2841002#M665389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if we specify the lenght we can move  integer to character but not char to int&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 12:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2841002#M665389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T12:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convertion rule.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2841003#M665390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;U can move TYPE c filds to TYPE i until the TYPE c variable( in ur case n)&lt;/P&gt;&lt;P&gt;contains a numerical value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE c- '23'  -&amp;gt; i :  YES.&lt;/P&gt;&lt;P&gt;TYPE c- 'r1' -&amp;gt; i : not possible ,gives runtimedump as 'r1' is not convertable to TYPE i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 20:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convertion-rule/m-p/2841003#M665390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T20:12:19Z</dc:date>
    </item>
  </channel>
</rss>

