<?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 Modul export parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modul-export-parameter/m-p/5578636#M1272369</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;function module is fixed and reuse component..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will not decide the export parameter is during runtime ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead you can assign the structure having field name and field value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the export paramater is now having field name and field value you can use this in the programm by&lt;/P&gt;&lt;P&gt;field name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 13:08:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-18T13:08:53Z</dc:date>
    <item>
      <title>Function Modul export parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modul-export-parameter/m-p/5578635#M1272368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i need help...&lt;/P&gt;&lt;P&gt;i have programing a function modul.&lt;/P&gt;&lt;P&gt;the type from the export parameter is during runtime to known.&lt;/P&gt;&lt;P&gt;how i do assign my export parameter the right type during runtime and output in same format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
function z_wwi_get_st_kg.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     REFERENCE(PF_MATNR) TYPE  MATNR
*"  EXPORTING
*"     REFERENCE(P_ST_GE)
*"     REFERENCE(P_EINHEIT)
*"----------------------------------------------------------------------
  data lf_yykeid type ymm_keid.
  data lf_meinh type lrmei.

  data lf_brgew type brgew.
  data lf_gewei type gewei.
  data lf_umrez type umrez.

  "Konsumenteneinheit lesen
  select single yykeid
         from mara
         into lf_yykeid
         where matnr eq pf_matnr.

  "Wenn nicht KG dann ST
  if lf_yykeid ne 'KG'.
    lf_meinh = 'ST'.
  else.
    lf_meinh = lf_yykeid.
  endif.

  "Stückartikel oder Gewichtsartikel
  case lf_meinh.
    when 'ST' .
      select single umrez
             from marm
             into lf_umrez
             where matnr eq pf_matnr
             and meinh eq 'HE'.
      clear lf_meinh.
      lf_meinh = 'CU'.

*      get reference of lf_umrez into p_st_ge.
*      get reference of lf_meinh into p_einheit.
    when 'KG'.
      select single brgew gewei
             from marm
             into (lf_brgew, lf_gewei)
             where matnr eq pf_matnr
             and meinh eq 'HE'.
*      get reference of lf_brgew into p_st_ge.
*      get reference of lf_gewei into p_einheit.
  endcase.

endfunction.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;thx anu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: marty anujit on May 18, 2009 3:02 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 13:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modul-export-parameter/m-p/5578635#M1272368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T13:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function Modul export parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modul-export-parameter/m-p/5578636#M1272369</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;function module is fixed and reuse component..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will not decide the export parameter is during runtime ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead you can assign the structure having field name and field value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the export paramater is now having field name and field value you can use this in the programm by&lt;/P&gt;&lt;P&gt;field name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 13:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modul-export-parameter/m-p/5578636#M1272369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T13:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function Modul export parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modul-export-parameter/m-p/5578637#M1272370</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;Using Export and Import statements u can achieve u r requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 13:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modul-export-parameter/m-p/5578637#M1272370</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-05-18T13:19:51Z</dc:date>
    </item>
  </channel>
</rss>

