<?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: Generate Function But Can't Call It? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499887#M1558282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you are calling the FM with single quotes (') instead of double quotes (").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2010 14:40:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-24T14:40:36Z</dc:date>
    <item>
      <title>Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499883#M1558278</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;I use the function module "rs_functionmodule_insert" to generate function module dynamic. And my code looks like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO 10 TIMES.
CALL FUNCTION "RS_FUNCTIONMODULE_INSERT"
EXPORTING
    funcname = lv_fname
.....
.....
CALL FUNCTION lv_fname
....
....
   
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the system tell me &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;"Function module not found or not active"&lt;/SPAN&gt;(a very red exception) at twice (call function lv_fname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to deal it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 10:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499883#M1558278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T10:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499884#M1558279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check this include as refernce LBDBGF04 as how this FM should be used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 10:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499884#M1558279</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-11-24T10:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499885#M1558280</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;  This function would generate a function module based on the inputs, and what you need to provide to this function is the function module name, the function group, the input parameters,output parameters,tables parameters,exceptions and the code for the FM that you want to generate once you provide all this then the function module should generated . In order to check whats not working add the exceptions to the function module call and then check the subrc that should give youo some idea on what the issue is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reagrds,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 11:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499885#M1558280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T11:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499886#M1558281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For excample, the lv_fname='z_one' at first time, and the lv_fname='z_two' at twice. Actuallty, I have seen them in SE80 when I debug it, but the system still tell me "not found or inactive"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 11:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499886#M1558281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T11:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499887#M1558282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you are calling the FM with single quotes (') instead of double quotes (").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 14:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499887#M1558282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T14:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499888#M1558283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rob,&lt;/P&gt;&lt;P&gt;that's a mistake when I edit the post, don't care it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 03:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499888#M1558283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-25T03:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499889#M1558284</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 file is difficult to read.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 03:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499889#M1558284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-25T03:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499890#M1558285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please excute this statement and select all the function module place in one internal table.&lt;/P&gt;&lt;P&gt;OTHER WISE  all the function module are stored in THIS table TFDIR.&lt;/P&gt;&lt;P&gt;do 10 times.&lt;/P&gt;&lt;P&gt;READ TABLE ITAB INTO WA INDEX LV_COUNT.&lt;/P&gt;&lt;P&gt; SELECT SINGLE funcname FROM tfdir INTO func WHERE funcname = wa-srname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                CALL FUNCTION func &lt;/P&gt;&lt;P&gt;                  EXPORTING&lt;/P&gt;&lt;P&gt;                    in_string  = lv_in_str&lt;/P&gt;&lt;P&gt;                  IMPORTING&lt;/P&gt;&lt;P&gt;                    out_string = lv_out_str.&lt;/P&gt;&lt;P&gt;LV_COUNT = LV_COUNT + 1.&lt;/P&gt;&lt;P&gt;CLEAR:FUNC.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function will call dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;muralii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 04:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499890#M1558285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-25T04:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499891#M1558286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi muralii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your codes similar to mine. but in my program, it need to generate a new function by another function "RS_FUNCTIONMODULE_INSERT", and then call the new function. and the system can't discover the second new function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 06:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499891#M1558286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-25T06:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499892#M1558287</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;   I created as below and I was able to create the FM ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;Call the function 'SBUF_SYNCHRONIZE' before calling 'RS_FUNCTIONMODULE_INSERT' ...&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : funcname type RS38L_FNAM value 'ZTEST_CREATE_001',  " &lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;function_pool type AREA value 'ZFG_GENERIC',      &amp;lt;--  ensure that the function group is active&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       short_text type RS38L_FTXT value 'Test FM',&lt;/P&gt;&lt;P&gt;       l_active type c value 'X',&lt;/P&gt;&lt;P&gt;       new_include like trdir-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;call function 'SBUF_SYNCHRONIZE'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RS_FUNCTIONMODULE_INSERT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    funcname                      = funcname&lt;/P&gt;&lt;P&gt;    function_pool                 = function_pool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    short_text                    = short_text&lt;/P&gt;&lt;P&gt;    SAVE_ACTIVE                   = l_active&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FUNCTION_INCLUDE              = new_include&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   DOUBLE_TASK                   = 1&lt;/P&gt;&lt;P&gt;   ERROR_MESSAGE                 = 2&lt;/P&gt;&lt;P&gt;   FUNCTION_ALREADY_EXISTS       = 3&lt;/P&gt;&lt;P&gt;   INVALID_FUNCTION_POOL         = 4&lt;/P&gt;&lt;P&gt;   INVALID_NAME                  = 5&lt;/P&gt;&lt;P&gt;   TOO_MANY_FUNCTIONS            = 6&lt;/P&gt;&lt;P&gt;   NO_MODIFY_PERMISSION          = 7&lt;/P&gt;&lt;P&gt;   NO_SHOW_PERMISSION            = 8&lt;/P&gt;&lt;P&gt;   ENQUEUE_SYSTEM_FAILURE        = 9&lt;/P&gt;&lt;P&gt;   CANCELED_IN_CORR              = 10&lt;/P&gt;&lt;P&gt;   OTHERS                        = 11&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION funcname .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 07:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499892#M1558287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-25T07:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499893#M1558288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Srini,&lt;/P&gt;&lt;P&gt;thanks for you. i'll try it tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 08:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499893#M1558288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-25T08:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Function But Can't Call It?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499894#M1558289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;问题描述不清楚，重发一个&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2010 06:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-function-but-can-t-call-it/m-p/7499894#M1558289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-26T06:11:53Z</dc:date>
    </item>
  </channel>
</rss>

