<?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: How Intialize the Import Parameter Values in Function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404205#M1046790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;   But i have used fm to calculate the Date my main Problem is i am Unable to pass that Value to the Import parameter:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; That is from se37 if we execute the FM u will get the Import Parameters at that time this date also should come, But it's not comming . &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Nagaraju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case i can suggest you a way to do this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make the import parameters(TO and From Dates) as optional..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Inside the function module check if the import parameters are initial, if the values are not supplied, generate it yourself using the code i gave above....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to supply value from a program, use the above code in the program and supply the To and From date in the function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now if u go to SE37 and execute it without supplying values, it will get calculated inside the Function Module itself, in case u supply it will take it for calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work well for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2008 06:47:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-22T06:47:37Z</dc:date>
    <item>
      <title>How Intialize the Import Parameter Values in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404200#M1046785</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;My Requirement as Follows,&lt;/P&gt;&lt;P&gt;  I Have developed a Function Module with &lt;/P&gt;&lt;P&gt;'FROM Date'&lt;/P&gt;&lt;P&gt;'To Date.    as Import Paramter, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is , i need to &lt;STRONG&gt;Initialize these values&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;TO Date as Sy-datum &amp;amp; FROm Date as 3 months back from todays date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These should be displayed as soon as the Import parameter appear when we execute fm i,e before output.&lt;/P&gt;&lt;P&gt; please help me out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt; To date : I hvae initialized by passing sy-datum in default parameter. but From date - i am unable to get.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 04:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404200#M1046785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T04:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: How Intialize the Import Parameter Values in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404201#M1046786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude,&lt;/P&gt;&lt;P&gt;Use this Function Module(RKE_CONVERT_DATE_TO_PERIOD)  to get the previous 3rd month date.&lt;/P&gt;&lt;P&gt;Pass the parametrs as&lt;/P&gt;&lt;P&gt; Import parameters               Value&lt;/P&gt;&lt;P&gt; DATE                            22.08.2008 "sy-datum&lt;/P&gt;&lt;P&gt; PERFLAG                         1&lt;/P&gt;&lt;P&gt; PERIV                           V3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then U will Get the Outputput as &lt;/P&gt;&lt;P&gt; PERIO                           005.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U will get the Month and the year, Now u Use&lt;/P&gt;&lt;P&gt;sy-datum+0(2) u will get the date i.e 22.&lt;/P&gt;&lt;P&gt;PERIO+1(7) u will get 05.2008&lt;/P&gt;&lt;P&gt;now concatenate 22 and 05.2008 separated by '.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 04:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404201#M1046786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T04:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: How Intialize the Import Parameter Values in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404202#M1046787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks RAM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  But i have used fm to calculate the Date my main Problem is i am Unable to pass that Value to the Import parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is from se37 if we execute the FM u will get the Import Parameters at that time this date also should come, But it's not comming . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 05:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404202#M1046787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T05:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: How Intialize the Import Parameter Values in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404203#M1046788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude,&lt;/P&gt;&lt;P&gt;Click on the Source Code Tab &lt;/P&gt;&lt;P&gt;and Write the Code.&lt;/P&gt;&lt;P&gt;This code should contain i_param = v_Date.&lt;/P&gt;&lt;P&gt;where i_param is Ur import parameter name.&lt;/P&gt;&lt;P&gt;v_Date is Ur calculated Date.&lt;/P&gt;&lt;P&gt;Keep break-point and execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 06:08:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404203#M1046788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T06:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: How Intialize the Import Parameter Values in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404204#M1046789</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;Use the Following FM....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MONTH_PLUS_DETERMINE&lt;/STRONG&gt;	Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Example:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: new_date type d.

CALL FUNCTION 'MONTH_PLUS_DETERMINE'
  EXPORTING
    months        = -5       " Negative to subtract from old date, positive to add
    olddate       = sy-datum
 IMPORTING
   NEWDATE       = new_date.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 06:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404204#M1046789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T06:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How Intialize the Import Parameter Values in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404205#M1046790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;   But i have used fm to calculate the Date my main Problem is i am Unable to pass that Value to the Import parameter:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; That is from se37 if we execute the FM u will get the Import Parameters at that time this date also should come, But it's not comming . &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Nagaraju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case i can suggest you a way to do this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make the import parameters(TO and From Dates) as optional..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Inside the function module check if the import parameters are initial, if the values are not supplied, generate it yourself using the code i gave above....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to supply value from a program, use the above code in the program and supply the To and From date in the function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now if u go to SE37 and execute it without supplying values, it will get calculated inside the Function Module itself, in case u supply it will take it for calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work well for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 06:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-intialize-the-import-parameter-values-in-function-module/m-p/4404205#M1046790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T06:47:37Z</dc:date>
    </item>
  </channel>
</rss>

