<?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: mapping function module paramters dynamically with a selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-function-module-paramters-dynamically-with-a-selection-screen/m-p/8417113#M1646226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your situation, you would be able to use the option PARAMETER-TABLE of the CALL FUNCTION. In this table, you need to pass the parameter name and corresponding values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the help - [CALL FUNCTION - parameter_tables |http://help.sap.com/abapdocu_702/en/abapcall_function_dynamic.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2011 15:02:43 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2011-12-15T15:02:43Z</dc:date>
    <item>
      <title>mapping function module paramters dynamically with a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-function-module-paramters-dynamically-with-a-selection-screen/m-p/8417112#M1646225</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;&lt;/P&gt;&lt;P&gt;I got a situation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am maintaining data of a function module paramters in a dictionary table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the screen pbo i will fetch the the fm data from that table into the internal table(ITAB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my report screen i am having the selection screen and the selection screen parameters are also mentioned in the FM Dictionary Table, we are having the those details in our internal table (ITAB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the issue is how to call the FM by using the ITAB values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example: ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fmname          parametr          type        str_name           ss_field&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;         -&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;         -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;       -&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;        -&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;get_notif        im_notif            import     qmnum                 s_notif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here s_notif[ ] is having the values in it which is nothing but selection screen parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and we are having S_NOTIF as a string values in the ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now how can i link this S_notif(type string) to s_notif(value of notification) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i have done is ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          loop at itab into wa_itab where type = 'import'.&lt;/P&gt;&lt;P&gt;              case wa_itab-parameter.&lt;/P&gt;&lt;P&gt;                  when 'IM_NOTIF'.                                             " for example im dealing with only one parameter this can have  many&lt;/P&gt;&lt;P&gt;                          get reference of S_NOTIF[ ] to v_notif.&lt;/P&gt;&lt;P&gt;                   endcase.&lt;/P&gt;&lt;P&gt;          endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i dont wanmt hard code the parameter name , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to do it dynamically... ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;experts please help me on this ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 11:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-function-module-paramters-dynamically-with-a-selection-screen/m-p/8417112#M1646225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-15T11:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: mapping function module paramters dynamically with a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-function-module-paramters-dynamically-with-a-selection-screen/m-p/8417113#M1646226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your situation, you would be able to use the option PARAMETER-TABLE of the CALL FUNCTION. In this table, you need to pass the parameter name and corresponding values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the help - [CALL FUNCTION - parameter_tables |http://help.sap.com/abapdocu_702/en/abapcall_function_dynamic.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-function-module-paramters-dynamically-with-a-selection-screen/m-p/8417113#M1646226</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2011-12-15T15:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: mapping function module paramters dynamically with a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-function-module-paramters-dynamically-with-a-selection-screen/m-p/8417114#M1646227</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 sample will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lv_fname TYPE string,
        lt_ptab TYPE abap_func_parmbind_tab,
        ls_ptab TYPE abap_func_parmbind,
        lt_etab TYPE abap_func_excpbind_tab,
        ls_etab TYPE abap_func_excpbind.

*** Table
  ls_ptab-name = 'IT_TABLE'.
  ls_ptab-kind = abap_func_tables.
  GET REFERENCE OF &amp;lt;itab&amp;gt; INTO ls_ptab-value.
  INSERT ls_ptab INTO TABLE lt_ptab.

*** Exceptions
  ls_etab-name = 'DATA_NOT_FOUND'.
  ls_etab-value = 1.
  INSERT ls_etab INTO TABLE lt_etab.

  lv_fname = 'GET_MY_DATA'." Function Name

  CALL FUNCTION lv_fname
    PARAMETER-TABLE
      lt_ptab
    EXCEPTION-TABLE
      lt_etab.
  IF sy-subrc NE 0.
	

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-function-module-paramters-dynamically-with-a-selection-screen/m-p/8417114#M1646227</guid>
      <dc:creator>huseyindereli</dc:creator>
      <dc:date>2011-12-15T15:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: mapping function module paramters dynamically with a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-function-module-paramters-dynamically-with-a-selection-screen/m-p/8417115#M1646228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guys, i solved it with your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 08:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-function-module-paramters-dynamically-with-a-selection-screen/m-p/8417115#M1646228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-20T08:04:46Z</dc:date>
    </item>
  </channel>
</rss>

