<?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: function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2876288#M675155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here in fm you are populating the local int table gt_zcrmtab_param  but i cant see any code to assign the value of this int table to your table parameter i.e. PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to write &lt;/P&gt;&lt;P&gt;*READ TABLE gt_zcrmtab_param INDEX 1.&lt;/P&gt;&lt;P&gt;PARAMETERS[] = gt_zcrmtab_param[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;now you can access table gt_zcrmtab_param in your program&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2007 10:24:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-08T10:24:32Z</dc:date>
    <item>
      <title>function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2876286#M675153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guyz..&lt;/P&gt;&lt;P&gt;can anybody please solve this one for me..&lt;/P&gt;&lt;P&gt;this is my function module....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZCRMFUN_PARAMETER'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      parentid   = 'ZBDREP_CANCELLATIONS'&lt;/P&gt;&lt;P&gt;      identifier = p_client&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     zparameter = lv_form&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      PARAMETERS = gt_zcrmtab_param.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code inside this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : gt_zcrmtab_param TYPE TABLE OF zcrmtab_param WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get all from ZPARAMETER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;  INTO TABLE gt_zcrmtab_param&lt;/P&gt;&lt;P&gt;  FROM zcrmtab_param&lt;/P&gt;&lt;P&gt;  WHERE parentid = parentid&lt;/P&gt;&lt;P&gt;  AND identifier = identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Addition to retrieve common parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  IF get_common = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT *&lt;/P&gt;&lt;P&gt;    APPENDING TABLE gt_zcrmtab_param&lt;/P&gt;&lt;P&gt;    FROM zcrmtab_param&lt;/P&gt;&lt;P&gt;    WHERE parentid = '*'&lt;/P&gt;&lt;P&gt;    AND identifier = '*'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Append entires to paramters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  READ TABLE gt_zcrmtab_param INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is when the control goes into function module internal table has values in it...when the control comes  out from the function module sourcecode  internal table is empty..why this is happening..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz advise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 10:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2876286#M675153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2876287#M675154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the parameters in "CHANGING" rather than using "TABLES" in the FM....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 10:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2876287#M675154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T10:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2876288#M675155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here in fm you are populating the local int table gt_zcrmtab_param  but i cant see any code to assign the value of this int table to your table parameter i.e. PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to write &lt;/P&gt;&lt;P&gt;*READ TABLE gt_zcrmtab_param INDEX 1.&lt;/P&gt;&lt;P&gt;PARAMETERS[] = gt_zcrmtab_param[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;now you can access table gt_zcrmtab_param in your program&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 10:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2876288#M675155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T10:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2876289#M675156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : gt_zcrmtab_param TYPE TABLE OF zcrmtab_param WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get all from ZPARAMETER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;INTO TABLE gt_zcrmtab_param&lt;/P&gt;&lt;P&gt;FROM zcrmtab_param&lt;/P&gt;&lt;P&gt;WHERE parentid = parentid&lt;/P&gt;&lt;P&gt;AND identifier = identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Addition to retrieve common parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;IF get_common = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;APPENDING TABLE gt_zcrmtab_param&lt;/P&gt;&lt;P&gt;FROM zcrmtab_param&lt;/P&gt;&lt;P&gt;WHERE parentid = '*'&lt;/P&gt;&lt;P&gt;AND identifier = '*'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Append entires to paramters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ TABLE gt_zcrmtab_param into PARAMETERS INDEX 1.&lt;/P&gt;&lt;P&gt;APPEND PARAMETERS.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&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&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 10:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2876289#M675156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T10:37:17Z</dc:date>
    </item>
  </channel>
</rss>

