<?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 quantiy in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441875#M546664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass it to character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Char = 12.12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split char at . into char1 char2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM SPELL AMOUNT, pass char1 first and then char2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess from here you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2007 09:37:34 GMT</pubDate>
    <dc:creator>former_member196280</dc:creator>
    <dc:date>2007-06-27T09:37:34Z</dc:date>
    <item>
      <title>convert quantiy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441869#M546658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to convert the quantity field value into words. For example let my quantity field value is 12.12 I need to convert this to twelve point twelve. .How to do this. Can I use the function module spell amount for quantity? I tried but I didn&amp;#146;t get proper result. Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 08:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441869#M546658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T08:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: convert quantiy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441870#M546659</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;Pass the amount after Decimal to the Spell amount seperately and then concatenate the two parts of the amount. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example : 130.60 Rs &lt;/P&gt;&lt;P&gt;Store the amount in a character string. Split the string at decimal point using a SPLIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: amount_total(10),&lt;/P&gt;&lt;P&gt;round(7),&lt;/P&gt;&lt;P&gt;dec_part(3).&lt;/P&gt;&lt;P&gt;DATA: dec(1) TYPE c VALUE '.',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;amount_total = '130.60'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT amount_total AT dec INTO round dec_part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First pass variable 'round' to Spell_amount and then in the second call pass variable 'DEC_PART' and concatenate the two results.&lt;/P&gt;&lt;P&gt;then concatenate the results. and the resulting string will be 130 Rs 60 paise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 09:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441870#M546659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T09:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: convert quantiy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441871#M546660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try with the table &amp;lt;b&amp;gt;T015Z&amp;lt;/b&amp;gt;but you have to pass each digit to it and concatenate that result&lt;/P&gt;&lt;P&gt;or see the fun module SPELL_AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 09:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441871#M546660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T09:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: convert quantiy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441872#M546661</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;check this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM HR_IN_CHG_INR_WRDS or SPELL_AMOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA AMT_IN_NUM LIKE PC207-BETRG.&lt;/P&gt;&lt;P&gt;DATA AMT_IN_WORDS(100) TYPE c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: AMOUNT LIKE AMT_IN_NUM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_IN_CHG_INR_WRDS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;amt_in_num = AMOUNT&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;AMT_IN_WORDS = AMT_IN_WORDS&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;DATA_TYPE_MISMATCH = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;WRITE AMT_IN_WORDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 09:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441872#M546661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T09:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: convert quantiy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441873#M546662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;THIS MIGHT HEALP YOU OUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN SE71&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GETWORD IN PROGRAM ZSUB&lt;/P&gt;&lt;P&gt;USING &amp;amp;KOMK-FKNIT(&amp;amp;I13)&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_WORDS&amp;amp;&lt;/P&gt;&lt;P&gt;ENDPERFORM.&lt;/P&gt;&lt;P&gt;&amp;amp;V_WORDS&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN SE38&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA VAR LIKE SPELL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GETWORD TABLES IN_TABLES.&lt;/P&gt;&lt;P&gt;RAD TABLE IN_TABLE INDEX1.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;AMOUNT = IN_TABLE-VALUE.&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;IN_WORDS = VAR&lt;/P&gt;&lt;P&gt;READ TABLE OUT_TABLE INDEX1.&lt;/P&gt;&lt;P&gt;MOVE VAR-WORD TO OUT-TABLE-VALUE.&lt;/P&gt;&lt;P&gt;MODIFY OUT_TABLE INDEX1.&lt;/P&gt;&lt;P&gt;ENDPERFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 09:06:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441873#M546662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: convert quantiy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441874#M546663</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 Code,U will get tha Answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: QUANTITY TYPE SPELL-NUMBER VALUE '12.12',&lt;/P&gt;&lt;P&gt;      WORDS LIKE SPELL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;    AMOUNT          = QUANTITY&lt;/P&gt;&lt;P&gt;    CURRENCY        = 'IND'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILLER          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE        = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;    IN_WORDS        = WORDS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_FOUND       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TOO_LARGE       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS          = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : /'Rounded Value' , WORDS-WORD,'Decimal Value',WORDS-DECWORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 09:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441874#M546663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T09:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: convert quantiy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441875#M546664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass it to character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Char = 12.12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split char at . into char1 char2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM SPELL AMOUNT, pass char1 first and then char2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess from here you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 09:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-quantiy/m-p/2441875#M546664</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-06-27T09:37:34Z</dc:date>
    </item>
  </channel>
</rss>

