How does Function Module SPELL_AMOUNT converts number to string variables?












0















I am trying to understand the source code of function module SPELL_AMOUNT in SAP, which converts number, amount, or currency representation into letters. For example, '568' will be converted to FIVE HUNDRED AND SIXTY EIGHT.



However, when I use SE37 to read the source code of the FM, I could not find the piece of code which indicates that the number is converted to string. For instance, IF int_decimal = 10. APPEND "TEN" INTO in_word.



Please explain if you have access to ABAP source code



thanks.










share|improve this question





























    0















    I am trying to understand the source code of function module SPELL_AMOUNT in SAP, which converts number, amount, or currency representation into letters. For example, '568' will be converted to FIVE HUNDRED AND SIXTY EIGHT.



    However, when I use SE37 to read the source code of the FM, I could not find the piece of code which indicates that the number is converted to string. For instance, IF int_decimal = 10. APPEND "TEN" INTO in_word.



    Please explain if you have access to ABAP source code



    thanks.










    share|improve this question



























      0












      0








      0








      I am trying to understand the source code of function module SPELL_AMOUNT in SAP, which converts number, amount, or currency representation into letters. For example, '568' will be converted to FIVE HUNDRED AND SIXTY EIGHT.



      However, when I use SE37 to read the source code of the FM, I could not find the piece of code which indicates that the number is converted to string. For instance, IF int_decimal = 10. APPEND "TEN" INTO in_word.



      Please explain if you have access to ABAP source code



      thanks.










      share|improve this question
















      I am trying to understand the source code of function module SPELL_AMOUNT in SAP, which converts number, amount, or currency representation into letters. For example, '568' will be converted to FIVE HUNDRED AND SIXTY EIGHT.



      However, when I use SE37 to read the source code of the FM, I could not find the piece of code which indicates that the number is converted to string. For instance, IF int_decimal = 10. APPEND "TEN" INTO in_word.



      Please explain if you have access to ABAP source code



      thanks.







      sap abap






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 1 at 19:21









      Sandra Rossi

      3,2321421




      3,2321421










      asked Dec 28 '18 at 22:04









      Dung LemanhDung Lemanh

      498




      498
























          1 Answer
          1






          active

          oldest

          votes


















          4














          The function module uses values stored in database table T015Z ('Digits and numbers in words').

          There, numbers in different units are mapped to words in different languages.
          enter image description here



          See include LF017F01, form ziffern_in_worten (German for 'numbers in words').

          The table is read in FORM t015z_lesen into the internal table of the same name (t015z).

          After fetching this data it is processed to get the text for the complete number/amount.
          See these three subroutine calls:



            PERFORM ziffern_in_worten.   "Get data from the database, convert numbers to words
          PERFORM betrag_in_worten. "Get amount in words
          PERFORM nachkomma_in_worten. "Get decimal part in words


          enter image description here






          share|improve this answer



















          • 1





            There are also some technical information in the note 939145 - SPELL_AMOUNT: What it can do and what it can't, including the description of the table T015Z.

            – Sandra Rossi
            Dec 29 '18 at 10:22











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53964751%2fhow-does-function-module-spell-amount-converts-number-to-string-variables%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          The function module uses values stored in database table T015Z ('Digits and numbers in words').

          There, numbers in different units are mapped to words in different languages.
          enter image description here



          See include LF017F01, form ziffern_in_worten (German for 'numbers in words').

          The table is read in FORM t015z_lesen into the internal table of the same name (t015z).

          After fetching this data it is processed to get the text for the complete number/amount.
          See these three subroutine calls:



            PERFORM ziffern_in_worten.   "Get data from the database, convert numbers to words
          PERFORM betrag_in_worten. "Get amount in words
          PERFORM nachkomma_in_worten. "Get decimal part in words


          enter image description here






          share|improve this answer



















          • 1





            There are also some technical information in the note 939145 - SPELL_AMOUNT: What it can do and what it can't, including the description of the table T015Z.

            – Sandra Rossi
            Dec 29 '18 at 10:22
















          4














          The function module uses values stored in database table T015Z ('Digits and numbers in words').

          There, numbers in different units are mapped to words in different languages.
          enter image description here



          See include LF017F01, form ziffern_in_worten (German for 'numbers in words').

          The table is read in FORM t015z_lesen into the internal table of the same name (t015z).

          After fetching this data it is processed to get the text for the complete number/amount.
          See these three subroutine calls:



            PERFORM ziffern_in_worten.   "Get data from the database, convert numbers to words
          PERFORM betrag_in_worten. "Get amount in words
          PERFORM nachkomma_in_worten. "Get decimal part in words


          enter image description here






          share|improve this answer



















          • 1





            There are also some technical information in the note 939145 - SPELL_AMOUNT: What it can do and what it can't, including the description of the table T015Z.

            – Sandra Rossi
            Dec 29 '18 at 10:22














          4












          4








          4







          The function module uses values stored in database table T015Z ('Digits and numbers in words').

          There, numbers in different units are mapped to words in different languages.
          enter image description here



          See include LF017F01, form ziffern_in_worten (German for 'numbers in words').

          The table is read in FORM t015z_lesen into the internal table of the same name (t015z).

          After fetching this data it is processed to get the text for the complete number/amount.
          See these three subroutine calls:



            PERFORM ziffern_in_worten.   "Get data from the database, convert numbers to words
          PERFORM betrag_in_worten. "Get amount in words
          PERFORM nachkomma_in_worten. "Get decimal part in words


          enter image description here






          share|improve this answer













          The function module uses values stored in database table T015Z ('Digits and numbers in words').

          There, numbers in different units are mapped to words in different languages.
          enter image description here



          See include LF017F01, form ziffern_in_worten (German for 'numbers in words').

          The table is read in FORM t015z_lesen into the internal table of the same name (t015z).

          After fetching this data it is processed to get the text for the complete number/amount.
          See these three subroutine calls:



            PERFORM ziffern_in_worten.   "Get data from the database, convert numbers to words
          PERFORM betrag_in_worten. "Get amount in words
          PERFORM nachkomma_in_worten. "Get decimal part in words


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 28 '18 at 22:59









          Laurens DeprostLaurens Deprost

          968114




          968114








          • 1





            There are also some technical information in the note 939145 - SPELL_AMOUNT: What it can do and what it can't, including the description of the table T015Z.

            – Sandra Rossi
            Dec 29 '18 at 10:22














          • 1





            There are also some technical information in the note 939145 - SPELL_AMOUNT: What it can do and what it can't, including the description of the table T015Z.

            – Sandra Rossi
            Dec 29 '18 at 10:22








          1




          1





          There are also some technical information in the note 939145 - SPELL_AMOUNT: What it can do and what it can't, including the description of the table T015Z.

          – Sandra Rossi
          Dec 29 '18 at 10:22





          There are also some technical information in the note 939145 - SPELL_AMOUNT: What it can do and what it can't, including the description of the table T015Z.

          – Sandra Rossi
          Dec 29 '18 at 10:22




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53964751%2fhow-does-function-module-spell-amount-converts-number-to-string-variables%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          'app-layout' is not a known element: how to share Component with different Modules

          android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

          WPF add header to Image with URL pettitions [duplicate]