<?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: How to call function module in SAPscript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562603#M254331</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;have a look at &amp;lt;b&amp;gt;READ TABLE&amp;lt;/b&amp;gt; statement. it must be &amp;lt;b&amp;gt;READ TABLE &amp;lt;ITAB&amp;gt; WITH KEY out_par-name = 'AMT_WORD'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;also look at the case sensitiveness.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2006 05:10:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-27T05:10:38Z</dc:date>
    <item>
      <title>How to call function module in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562601#M254329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experties,&lt;/P&gt;&lt;P&gt; I hav a function Module 'ZIN_SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt; to print amount in words that i want to call in   SAPscript.I hav written the code in follwing manner&lt;/P&gt;&lt;P&gt;IN SAPSCRIPT WINDOW&lt;/P&gt;&lt;P&gt;Perform sub_amt in program ztestscript&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;AMT&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;AMT_WORD&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IN ZTESTSCRIPT PROGRAM&lt;/P&gt;&lt;P&gt;REPORT  ZTESTSCRIPT.&lt;/P&gt;&lt;P&gt;FORM sub_amt&lt;/P&gt;&lt;P&gt;    TABLES in_par structure itcsy&lt;/P&gt;&lt;P&gt;    out_par structure itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : amt LIKE BSEG-WRBTR.&lt;/P&gt;&lt;P&gt;DATA : l_word TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table in_par with key 'regud-WAERS'.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    amt = in_par-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZIN_SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      P_NUMBER           = amt&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      AMTWORD            = l_word&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      AMOUNT_NOT_ENTERED = 1&lt;/P&gt;&lt;P&gt;      OTHERS             = 2.&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;&lt;/P&gt;&lt;P&gt;READ  table out_par with key 'amt_word'.&lt;/P&gt;&lt;P&gt;  out_par-value = l_word.&lt;/P&gt;&lt;P&gt;  MODIFY out_par INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "sub_amt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT ABOVE CODE IS NOT WORKING .&lt;/P&gt;&lt;P&gt;SO PLZ ANYONE GUIDE ME FOR THE SAME,&lt;/P&gt;&lt;P&gt;THANKSS &amp;amp; REGARDS,&lt;/P&gt;&lt;P&gt;SADIK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 04:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562601#M254329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T04:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function module in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562602#M254330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sadik,&lt;/P&gt;&lt;P&gt;          Use 'AMT' in place of 'regud-WAERS' in the statement below.&lt;/P&gt;&lt;P&gt;READ table in_par with key 'regud-WAERS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try out with above change. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table out_par with key name = 'amt_word'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table out_par with key 'amt_word'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay Kodali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 05:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562602#M254330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T05:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function module in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562603#M254331</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;have a look at &amp;lt;b&amp;gt;READ TABLE&amp;lt;/b&amp;gt; statement. it must be &amp;lt;b&amp;gt;READ TABLE &amp;lt;ITAB&amp;gt; WITH KEY out_par-name = 'AMT_WORD'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;also look at the case sensitiveness.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 05:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562603#M254331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T05:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function module in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562604#M254332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug the script and check wether &amp;amp;AMT&amp;amp; is getting populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next debug report  and see wether in the report the in_par-value value is getting populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next see the amt field is getting populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u are reading the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table out_par with key 'amt_word'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make this 'amt_word' caps&lt;/P&gt;&lt;P&gt;Please check and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 05:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562604#M254332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T05:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function module in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562605#M254333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI sadik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. CAPITAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. READ table out_par with key 'amt_word'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table out_par with key &amp;lt;b&amp;gt;'AMT_WORD'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 14:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562605#M254333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T14:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function module in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562606#M254334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;See the bold one ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform sub_amt in program ztestscript&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;AMT&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;AMT_WORD&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN ZTESTSCRIPT PROGRAM&lt;/P&gt;&lt;P&gt;REPORT ZTESTSCRIPT.&lt;/P&gt;&lt;P&gt;FORM sub_amt&lt;/P&gt;&lt;P&gt;TABLES in_par structure itcsy&lt;/P&gt;&lt;P&gt;out_par structure itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : amt LIKE BSEG-WRBTR.&lt;/P&gt;&lt;P&gt;DATA : l_word TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ table in_par with key 'AMT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;amt = in_par-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZIN_SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;P_NUMBER = amt&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;AMTWORD = l_word&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;AMOUNT_NOT_ENTERED = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&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;&lt;/P&gt;&lt;P&gt;READ table out_par with key 'amt_word'.&lt;/P&gt;&lt;P&gt;out_par-value = l_word.&lt;/P&gt;&lt;P&gt;MODIFY out_par INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "sub_amt&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;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 14:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562606#M254334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function module in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562607#M254335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.. If works mark it is answered..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTESTSCRIPT.&lt;/P&gt;&lt;P&gt;FORM sub_amt&lt;/P&gt;&lt;P&gt;TABLES in_par structure itcsy&lt;/P&gt;&lt;P&gt;out_par structure itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : amt LIKE BSEG-WRBTR.&lt;/P&gt;&lt;P&gt;DATA : l_word TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ table in_par INDEX 1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;amt = in_par-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZIN_SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;P_NUMBER = amt&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;AMTWORD = l_word&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;AMOUNT_NOT_ENTERED = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ table out_par with key 'AMT_WORD'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;out_par-value = l_word.&lt;/P&gt;&lt;P&gt;MODIFY out_par INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "sub_amt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 22:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-module-in-sapscript/m-p/1562607#M254335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T22:31:49Z</dc:date>
    </item>
  </channel>
</rss>

