<?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: issue with spell_amount in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798252#M2024749</link>
    <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;christian.guenter&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;as it cannot derive the type statically.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It could try! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 06:39:46 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2023-10-11T06:39:46Z</dc:date>
    <item>
      <title>issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798241#M2024738</link>
      <description>&lt;P&gt;Hi, gurus&lt;/P&gt;
  &lt;P&gt;I have requirement where till now the business is using 'HR_IN_CHG_INR_WRDS' to convert amount into text which is displaying&lt;/P&gt;
  &lt;P&gt;in rupees. However, now it has to be used for other currencies also&lt;/P&gt;
  &lt;P&gt;I have tried &lt;STRONG&gt;'SPELL_AMOUNT' &lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2216539-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;but it is throwing dump as it is sayin&lt;STRONG&gt;g wa_head-currency&lt;/STRONG&gt; is having different field type than expected.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2216538-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;when I double clicked on it it is of type char20 in custom structure.&lt;/P&gt;
  &lt;P&gt;But the function module parameter is of SY-WAERS following type for currency.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2216540-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;What can I do so that the fm spell check will give me the amount in words.&lt;/P&gt;Thanks in advance.</description>
      <pubDate>Mon, 09 Oct 2023 11:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798241#M2024738</guid>
      <dc:creator>pashasapcha</dc:creator>
      <dc:date>2023-10-09T11:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798242#M2024739</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;pashasapcha&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It looks like the CURRENCY field in your structure is incorrectly defined. It shouldn't be of CHAR20 type, but of WAERS which is dedicated for currency fields. &lt;/P&gt;&lt;P&gt;Why don't you declare a local variable like sy-waers, assign the currency from your structure and call SPELL_AMOUNT with that local variable - code snippet:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
lv_waers LIKE sy-waers.

lv_waers = wa_head-currency.

CALL FUNCTION 'SPELL_AMOUNT'
  EXPORTING
    amount    = amt_num
    currency  = lv_waers
    filler    = ' '
    language  = sy-langu
  IMPORTING
    in_words  = wa_head-amt_in_wrds
  EXCEPTIONS
    not_found = 1
    too_large = 2
    OTHERS    = 3.

IF sy-subrc &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 12:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798242#M2024739</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2023-10-09T12:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798243#M2024740</link>
      <description>&lt;P&gt;Or&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SPELL_AMOUNT'
  EXPORTING
    amount    = amt_num
    currency  = CONV syst_waers( wa_head-currency )
    filler    = ' '
    language  = sy-langu
  IMPORTING
    in_words  = wa_head-amt_in_wrds
  EXCEPTIONS
    not_found = 1
    too_large = 2
    OTHERS    = 3.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Oct 2023 12:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798243#M2024740</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-10-09T12:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798244#M2024741</link>
      <description>&lt;P&gt;I have tried the same way, now the dump is due to length of amt_in_wrds.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2216547-image.png" /&gt;&lt;/P&gt;&lt;P&gt;I have checked the fm  import parameter 'IN_WORDS' &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2216550-image.png" /&gt;&lt;/P&gt;&lt;P&gt;but here&lt;STRONG&gt; SPELL&lt;/STRONG&gt; is a structure with &lt;STRONG&gt;35 fields.&lt;/STRONG&gt;  how can I fix the length issue so that I can avoid dump.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 13:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798244#M2024741</guid>
      <dc:creator>pashasapcha</dc:creator>
      <dc:date>2023-10-09T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798245#M2024742</link>
      <description>&lt;P&gt;The question title doesn't deserve this misleading title "issue with spell_amount", because it's just a dump because of different parameter/argument type, which has been asked many many times in the forum.&lt;/P&gt;&lt;P&gt;You must pass the same type.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 13:35:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798245#M2024742</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-10-09T13:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798246#M2024743</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;matthew.billingham&lt;/SPAN&gt; that will work too of course - I'm just an old dog.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 13:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798246#M2024743</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2023-10-09T13:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798247#M2024744</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;pashasapcha&lt;/SPAN&gt; You need to get the output of the function into a variable of the SPEEL type, then get the spelled amount out of the WORD field. Check the documentation of the function. It points to the RF_SPELL report that contains a sample call to the function.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 14:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798247#M2024744</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2023-10-09T14:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798248#M2024745</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;matthew.billingham&lt;/SPAN&gt; I think constructor expressions are invalid with function module parameters. I guess SAP doesn't want to invest on the old function module concept.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 16:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798248#M2024745</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-10-09T16:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798249#M2024746</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; I've used CONV many times with FM. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 08:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798249#M2024746</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-10-10T08:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798250#M2024747</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;matthew.billingham&lt;/SPAN&gt; Thanks. I confirm (test in ABAP 7.57). Well, still learning :D. I'll test in other ABAP releases to see why I had this in mind.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 13:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798250#M2024747</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-10-10T13:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798251#M2024748</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; I guess you meant CONV #( ) which is not possible with FMs as it cannot derive the type statically.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 06:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798251#M2024748</guid>
      <dc:creator>ChristianGnter</dc:creator>
      <dc:date>2023-10-11T06:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: issue with spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798252#M2024749</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;christian.guenter&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;as it cannot derive the type statically.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It could try! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 06:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-spell-amount/m-p/12798252#M2024749</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-10-11T06:39:46Z</dc:date>
    </item>
  </channel>
</rss>

