<?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 FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158385#M456278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Can i declare a global declaration for a standard FM:&lt;/P&gt;&lt;P&gt;For Ex:there is  a function ZFUNCTION in the function library.&lt;/P&gt;&lt;P&gt;for this can i declare constant in the global declaration..like&lt;/P&gt;&lt;P&gt;c_zfunction like Zfunction.If so how?&lt;/P&gt;&lt;P&gt;and can i call directly in my pgm like:&lt;/P&gt;&lt;P&gt;CALL FUNCTION c_zfunction?.Becoz...in one our requirements there is Z FM in the library.it hasbeen called using C_ZFM..while exicuting it is throwing error like&lt;/P&gt;&lt;P&gt;c_zfunction does not exist..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2007 06:19:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-20T06:19:49Z</dc:date>
    <item>
      <title>FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158385#M456278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Can i declare a global declaration for a standard FM:&lt;/P&gt;&lt;P&gt;For Ex:there is  a function ZFUNCTION in the function library.&lt;/P&gt;&lt;P&gt;for this can i declare constant in the global declaration..like&lt;/P&gt;&lt;P&gt;c_zfunction like Zfunction.If so how?&lt;/P&gt;&lt;P&gt;and can i call directly in my pgm like:&lt;/P&gt;&lt;P&gt;CALL FUNCTION c_zfunction?.Becoz...in one our requirements there is Z FM in the library.it hasbeen called using C_ZFM..while exicuting it is throwing error like&lt;/P&gt;&lt;P&gt;c_zfunction does not exist..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 06:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158385#M456278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T06:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158386#M456279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you be more clear with the query. it will help us to understand problem clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Navneeth.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 06:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158386#M456279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T06:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158387#M456280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : func type string,&lt;/P&gt;&lt;P&gt;       w-ans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;func = 'POPUP_TO_CONFIRM'.&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;   TITLEBAR                    = 'Test '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIAGNOSE_OBJECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TEXT_QUESTION               = 'Wanna Test'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TEXT_BUTTON_1               = 'Ja'(001)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ICON_BUTTON_1               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TEXT_BUTTON_2               = 'Nein'(002)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ICON_BUTTON_2               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEFAULT_BUTTON              = '1'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISPLAY_CANCEL_BUTTON       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USERDEFINED_F1_HELP         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  START_COLUMN                = 25&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  START_ROW                   = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POPUP_TYPE                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IV_QUICKINFO_BUTTON_1       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IV_QUICKINFO_BUTTON_2       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   ANSWER                      = W-ANS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETER                   =&lt;/P&gt;&lt;/LI&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;  TEXT_NOT_FOUND              = 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;Here, actually there is no use of using a variable for a FM bcoz anyways, u cant get the import export parameters for the function without callin it.&lt;/P&gt;&lt;P&gt;When u have to call that function, then there seems to be no use calling the function using  variable func.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 06:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158387#M456280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T06:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158388#M456281</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;Go to SE11.&lt;/P&gt;&lt;P&gt;In that create a type group say zzzzz.&lt;/P&gt;&lt;P&gt;Inside the type-pool, declare the constant which should be begin with zzzzz.say zzzzz_c1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the constants in your program to call function module.But you need to declare the type-pools in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOL ZZZZZ .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants zzzzz_c_1(11) value 'ZZZ_JAYTEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program:&lt;/P&gt;&lt;P&gt;type-pools zzzzz.&lt;/P&gt;&lt;P&gt;data result type i.&lt;/P&gt;&lt;P&gt;CALL FUNCTION zzzzz_c_1&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    a             = 5&lt;/P&gt;&lt;P&gt;    b             = 3&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   C             =  result.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;          write result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 06:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158388#M456281</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-04-20T06:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158389#M456282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U just declare a variable with type &amp;lt;b&amp;gt;RS38L-FNAM&amp;lt;/b&amp;gt; and pass the value to this field initially or assign it somewhere before calling the function module.&lt;/P&gt;&lt;P&gt;Using this variable u can the FM. &lt;/P&gt;&lt;P&gt;The same way we do while calling a FM created in &amp;lt;b&amp;gt;SMARTFORMS&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        santhosh ds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 06:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2158389#M456282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T06:53:14Z</dc:date>
    </item>
  </channel>
</rss>

