<?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 perform in script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-in-script/m-p/2336160#M514378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to display amount in words in medruck form i copied it to zpmedruck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am calling subroutine for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i developed code. wen i execute it is going to dump.tat w_fkwart is not correct number format and in this line move it_input_table-value to w_fkwrt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script editor&lt;/P&gt;&lt;P&gt;/: PERFORM AMT_WORDS IN PROGRAM ZFORMWORDS&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;KOMK-FKWRT&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING&amp;amp;WORD&amp;amp;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;WORD&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZFORMWORDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_input_table occurs 0.&lt;/P&gt;&lt;P&gt;       INCLUDE STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;data : end of it_input_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :begin of it_output_table occurs 0.&lt;/P&gt;&lt;P&gt;      INCLUDE STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;data :end of it_output_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : w_fkwrt like KOMK-FKWRT.&lt;/P&gt;&lt;P&gt;data : w_word(100) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM AMT_WORDS tables input output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_INPUT_TABLE[] = INPUT[].&lt;/P&gt;&lt;P&gt;IT_OUTPUT_TABLE[] = OUTPUT[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_input_table INDEX 1.&lt;/P&gt;&lt;P&gt;MOVE it_input_table-value to w_fkwrt.&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               = w_fkwrt&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   AMT_IN_WORDS             = w_word&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;  DATA_TYPE_MISMATCH       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                   = 2&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;it_output_table-name = 'WORD'.&lt;/P&gt;&lt;P&gt;MOVE w_word to it_output_table-value.&lt;/P&gt;&lt;P&gt;MODIFY it_output_table INDEX 1.&lt;/P&gt;&lt;P&gt;output[] = it_output_table[].&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;canany body help me in this regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 09:18:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T09:18:20Z</dc:date>
    <item>
      <title>perform in script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-in-script/m-p/2336160#M514378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to display amount in words in medruck form i copied it to zpmedruck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am calling subroutine for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i developed code. wen i execute it is going to dump.tat w_fkwart is not correct number format and in this line move it_input_table-value to w_fkwrt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script editor&lt;/P&gt;&lt;P&gt;/: PERFORM AMT_WORDS IN PROGRAM ZFORMWORDS&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;KOMK-FKWRT&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING&amp;amp;WORD&amp;amp;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;WORD&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZFORMWORDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_input_table occurs 0.&lt;/P&gt;&lt;P&gt;       INCLUDE STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;data : end of it_input_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :begin of it_output_table occurs 0.&lt;/P&gt;&lt;P&gt;      INCLUDE STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;data :end of it_output_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : w_fkwrt like KOMK-FKWRT.&lt;/P&gt;&lt;P&gt;data : w_word(100) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM AMT_WORDS tables input output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_INPUT_TABLE[] = INPUT[].&lt;/P&gt;&lt;P&gt;IT_OUTPUT_TABLE[] = OUTPUT[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_input_table INDEX 1.&lt;/P&gt;&lt;P&gt;MOVE it_input_table-value to w_fkwrt.&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               = w_fkwrt&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   AMT_IN_WORDS             = w_word&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;  DATA_TYPE_MISMATCH       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                   = 2&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;it_output_table-name = 'WORD'.&lt;/P&gt;&lt;P&gt;MOVE w_word to it_output_table-value.&lt;/P&gt;&lt;P&gt;MODIFY it_output_table INDEX 1.&lt;/P&gt;&lt;P&gt;output[] = it_output_table[].&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;canany body help me in this regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 09:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-in-script/m-p/2336160#M514378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T09:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: perform in script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-in-script/m-p/2336161#M514379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Field w_fkwrt is a Currency field but the input field u get from sapscript is string and hence convert this string to currency and pass it to the FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 09:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-in-script/m-p/2336161#M514379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T09:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: perform in script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-in-script/m-p/2336162#M514380</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;thanks for ur response. can u guide me how to conver that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 09:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-in-script/m-p/2336162#M514380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T09:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: perform in script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-in-script/m-p/2336163#M514381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use w_fkwrt = it_input_table-value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define w_fkwrt as character field 15 char&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 09:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-in-script/m-p/2336163#M514381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T09:27:07Z</dc:date>
    </item>
  </channel>
</rss>

