<?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 to pass parameters when call a function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameters-when-call-a-function/m-p/4125013#M986293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I am looking for, thanks a lot both!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 17:13:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-09T17:13:51Z</dc:date>
    <item>
      <title>how to pass parameters when call a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameters-when-call-a-function/m-p/4125010#M986290</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;&lt;/P&gt;&lt;P&gt;I need to create some Text Customer variables which can return the current month/year + 1, + 2, + 3... + 11. The format should looks like: Jul 08, Aug 08... Dec 08&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a program which is calling two functions: 'RSCRMBW_MONTH' and 'MONTH_NAMES_GET'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'RSCRMBW_MONTH' will return the month/year, for example: 07/2008, 08/2008...&lt;/P&gt;&lt;P&gt;'MONTH_NAMES_GET' should convert the month to Jul, Aug...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I don't get is in the second function 'MONTH_NAMES_GET', there is a tab called Tables. It contain a parameter "MONTH_NAMES". Can anyone tell me how to pass this parameter from my program when I call this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my program and I don't know how to write the second Call Function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z_TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_text             type rstxtsh.&lt;/P&gt;&lt;P&gt;Data: l_code Type INT4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear l_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RSCRMBW_MONTH'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_SHIFT       = 1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_DATE        = SY-DATUM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_DATFM       = l_Format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      E_TEXT        = l_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;Call Function 'MONTH_NAMES_GET'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;Exporting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;LANGUAGE = 'E'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;Importing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;RETURN_CODE = l_code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Write l_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advise!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 16:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameters-when-call-a-function/m-p/4125010#M986290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T16:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass parameters when call a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameters-when-call-a-function/m-p/4125011#M986291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zrich_0001.

data: l_code type sy-subrc.

DATA: inames TYPE TABLE OF t247.
DATA: xnames LIKE LINE OF inames.


CALL FUNCTION 'MONTH_NAMES_GET'
  EXPORTING
    language    = 'E'
  IMPORTING
    return_code = l_code
  tables
    month_names = inames.

* Read table by the month
READ TABLE inames INTO xnames WITH KEY mnr = sy-datum+4(2).
IF sy-subrc  = 0.
  WRITE:/ xnames-ltx.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 17:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameters-when-call-a-function/m-p/4125011#M986291</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-07-09T17:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass parameters when call a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameters-when-call-a-function/m-p/4125012#M986292</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; As Rich said, that Function module MONTH_NAMES_GET is not getting input as MONTH_NAMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Function module is used to get the month names for the specified Language. So when you give Language to the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module it will list the Month names in that TABLE - MONTH_NAMES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 17:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameters-when-call-a-function/m-p/4125012#M986292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T17:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass parameters when call a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameters-when-call-a-function/m-p/4125013#M986293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I am looking for, thanks a lot both!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 17:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameters-when-call-a-function/m-p/4125013#M986293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T17:13:51Z</dc:date>
    </item>
  </channel>
</rss>

