<?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: PASSING A GLOBAL VARIABLE TO A FUNCTION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778363#M38970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; In SM37 in Tables tab create a new parameter with a&lt;/P&gt;&lt;P&gt;&amp;gt; type that refers to a structure as a&lt;/P&gt;&lt;P&gt;&amp;gt; Select-Option/Range:&lt;/P&gt;&lt;P&gt;&amp;gt; BEGIN OF ...&lt;/P&gt;&lt;P&gt;&amp;gt; SIGN(1),&lt;/P&gt;&lt;P&gt;&amp;gt; OPTION(2),&lt;/P&gt;&lt;P&gt;&amp;gt; LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;&amp;gt; HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;&amp;gt; END OF ...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; or you can try a table with one field as a long&lt;/P&gt;&lt;P&gt;&amp;gt; string (30) should be enough:&lt;/P&gt;&lt;P&gt;&amp;gt; BEGIN of ...&lt;/P&gt;&lt;P&gt;&amp;gt; STR(30),&lt;/P&gt;&lt;P&gt;&amp;gt; END of ...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; (during assignment to a range it will move fields'&lt;/P&gt;&lt;P&gt;&amp;gt; values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Inside of a function declare a Range and assign&lt;/P&gt;&lt;P&gt;&amp;gt; passed tables entries to it:&lt;/P&gt;&lt;P&gt;&amp;gt; range[] = table[].&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; And in FM change code instead of "= date" it will be&lt;/P&gt;&lt;P&gt;&amp;gt; something like "IN range.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Pavil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your input.  I am going to try your suggestion.  I let you know of my success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jun 2004 15:23:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-06-08T15:23:11Z</dc:date>
    <item>
      <title>PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778353#M38960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made a copy of the program that lists open orders.&lt;/P&gt;&lt;P&gt;It passes input parameters to a function named RV_Missing_Document_Data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my user would like to select using date ranges .  I have created input parameter for the field, but have no success passing the range to the function. rather than  passing IBT2003010320030403 to the function, it passes IBT20030 (the field size of sy-datum).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I define this to pass the range information? please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2004 19:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778353#M38960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-07T19:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778354#M38961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way is to copy this FM, change the parameter's type from a date to the range of dates (tables) and tune this FM's code for the parameter's type.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 06:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778354#M38961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T06:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778355#M38962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Roman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you give me an example of how to do this, please.  Where do I place this definition in the function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the transaction SE37 to edit the different areas of the function (global, interface, source code, and main program).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 11:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778355#M38962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T11:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778356#M38963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SM37 in Tables tab create a new parameter with a type that refers to a structure as a Select-Option/Range:&lt;/P&gt;&lt;P&gt;BEGIN OF ...&lt;/P&gt;&lt;P&gt;SIGN(1),&lt;/P&gt;&lt;P&gt;OPTION(2),&lt;/P&gt;&lt;P&gt;LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;END OF ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use a table with one field as a long string (30) should be enough:&lt;/P&gt;&lt;P&gt;BEGIN of ...&lt;/P&gt;&lt;P&gt;STR(30),&lt;/P&gt;&lt;P&gt;END of ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(during assignment to a range it will move fields' values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside of a function declare a Range and assign passed tables entries to it:&lt;/P&gt;&lt;P&gt;range[] = table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in FM change code instead of "= date" it will be something like "IN range.".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 15:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778356#M38963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778357#M38964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SM37 in Tables tab create a new parameter with a type that refers to a structure as a Select-Option/Range:&lt;/P&gt;&lt;P&gt;BEGIN OF ...&lt;/P&gt;&lt;P&gt;SIGN(1),&lt;/P&gt;&lt;P&gt;OPTION(2),&lt;/P&gt;&lt;P&gt;LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;END OF ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use a table with one field as a long string (30) should be enough:&lt;/P&gt;&lt;P&gt;BEGIN of ...&lt;/P&gt;&lt;P&gt;STR(30),&lt;/P&gt;&lt;P&gt;END of ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(during assignment to a range it will move fields' values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside of a function declare a Range and assign passed tables entries to it:&lt;/P&gt;&lt;P&gt;range[] = table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in FM change code instead of "= date" it will be something like "IN range.".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 15:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778357#M38964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T15:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778358#M38965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SM37 in Tables tab create a new parameter with a type that refers to a structure as a Select-Option/Range:&lt;/P&gt;&lt;P&gt;BEGIN OF ...&lt;/P&gt;&lt;P&gt;SIGN(1),&lt;/P&gt;&lt;P&gt;OPTION(2),&lt;/P&gt;&lt;P&gt;LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;END OF ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can try a table with one field as a long string (30) should be enough:&lt;/P&gt;&lt;P&gt;BEGIN of ...&lt;/P&gt;&lt;P&gt;STR(30),&lt;/P&gt;&lt;P&gt;END of ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(during assignment to a range it will move fields' values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside of a function declare a Range and assign passed tables entries to it:&lt;/P&gt;&lt;P&gt;range[] = table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in FM change code instead of "= date" it will be something like "IN range.".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 15:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778358#M38965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T15:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778359#M38966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SM37 in Tables tab create a new parameter with a type that refers to a structure as a Select-Option/Range:&lt;/P&gt;&lt;P&gt;BEGIN OF ...&lt;/P&gt;&lt;P&gt;SIGN(1),&lt;/P&gt;&lt;P&gt;OPTION(2),&lt;/P&gt;&lt;P&gt;LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;END OF ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can try a table with one field as a long string (30) should be enough:&lt;/P&gt;&lt;P&gt;BEGIN of ...&lt;/P&gt;&lt;P&gt;STR(30),&lt;/P&gt;&lt;P&gt;END of ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(during assignment to a range it will move fields' values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside of a function declare a Range and assign passed tables entries to it:&lt;/P&gt;&lt;P&gt;range[] = table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in FM change code instead of "= date" it will be something like "IN range.".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 15:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778359#M38966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T15:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778360#M38967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SM37 in Tables tab create a new parameter with a type that refers to a structure as a Select-Option/Range:&lt;/P&gt;&lt;P&gt;BEGIN OF ...&lt;/P&gt;&lt;P&gt;SIGN(1),&lt;/P&gt;&lt;P&gt;OPTION(2),&lt;/P&gt;&lt;P&gt;LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;END OF ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can try a table with one field as a long string (30) should be enough:&lt;/P&gt;&lt;P&gt;BEGIN of ...&lt;/P&gt;&lt;P&gt;STR(30),&lt;/P&gt;&lt;P&gt;END of ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(during assignment to a range it will move fields' values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside of a function declare a Range and assign passed tables entries to it:&lt;/P&gt;&lt;P&gt;range[] = table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in FM change code instead of "= date" it will be something like "IN range.".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 15:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778360#M38967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T15:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778361#M38968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SM37 in Tables tab create a new parameter with a type that refers to a structure as a Select-Option/Range:&lt;/P&gt;&lt;P&gt;BEGIN OF ...&lt;/P&gt;&lt;P&gt;SIGN(1),&lt;/P&gt;&lt;P&gt;OPTION(2),&lt;/P&gt;&lt;P&gt;LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;END OF ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can try a table with one field as a long string (30) should be enough:&lt;/P&gt;&lt;P&gt;BEGIN of ...&lt;/P&gt;&lt;P&gt;STR(30),&lt;/P&gt;&lt;P&gt;END of ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(during assignment to a range it will move fields' values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside of a function declare a Range and assign passed tables entries to it:&lt;/P&gt;&lt;P&gt;range[] = table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in FM change code instead of "= date" it will be something like "IN range.".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 15:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778361#M38968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T15:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778362#M38969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; In SM37 in Tables tab create a new parameter with a&lt;/P&gt;&lt;P&gt;&amp;gt; type that refers to a structure as a&lt;/P&gt;&lt;P&gt;&amp;gt; Select-Option/Range:&lt;/P&gt;&lt;P&gt;&amp;gt; BEGIN OF ...&lt;/P&gt;&lt;P&gt;&amp;gt; SIGN(1),&lt;/P&gt;&lt;P&gt;&amp;gt; OPTION(2),&lt;/P&gt;&lt;P&gt;&amp;gt; LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;&amp;gt; HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;&amp;gt; END OF ...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; or you can try a table with one field as a long&lt;/P&gt;&lt;P&gt;&amp;gt; string (30) should be enough:&lt;/P&gt;&lt;P&gt;&amp;gt; BEGIN of ...&lt;/P&gt;&lt;P&gt;&amp;gt; STR(30),&lt;/P&gt;&lt;P&gt;&amp;gt; END of ...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; (during assignment to a range it will move fields'&lt;/P&gt;&lt;P&gt;&amp;gt; values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Inside of a function declare a Range and assign&lt;/P&gt;&lt;P&gt;&amp;gt; passed tables entries to it:&lt;/P&gt;&lt;P&gt;&amp;gt; range[] = table[].&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; And in FM change code instead of "= date" it will be&lt;/P&gt;&lt;P&gt;&amp;gt; something like "IN range.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Pavil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your input.  I am going to try your suggestion.  I let you know of my success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 15:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778362#M38969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T15:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778363#M38970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; In SM37 in Tables tab create a new parameter with a&lt;/P&gt;&lt;P&gt;&amp;gt; type that refers to a structure as a&lt;/P&gt;&lt;P&gt;&amp;gt; Select-Option/Range:&lt;/P&gt;&lt;P&gt;&amp;gt; BEGIN OF ...&lt;/P&gt;&lt;P&gt;&amp;gt; SIGN(1),&lt;/P&gt;&lt;P&gt;&amp;gt; OPTION(2),&lt;/P&gt;&lt;P&gt;&amp;gt; LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;&amp;gt; HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;&amp;gt; END OF ...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; or you can try a table with one field as a long&lt;/P&gt;&lt;P&gt;&amp;gt; string (30) should be enough:&lt;/P&gt;&lt;P&gt;&amp;gt; BEGIN of ...&lt;/P&gt;&lt;P&gt;&amp;gt; STR(30),&lt;/P&gt;&lt;P&gt;&amp;gt; END of ...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; (during assignment to a range it will move fields'&lt;/P&gt;&lt;P&gt;&amp;gt; values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Inside of a function declare a Range and assign&lt;/P&gt;&lt;P&gt;&amp;gt; passed tables entries to it:&lt;/P&gt;&lt;P&gt;&amp;gt; range[] = table[].&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; And in FM change code instead of "= date" it will be&lt;/P&gt;&lt;P&gt;&amp;gt; something like "IN range.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Pavil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your input.  I am going to try your suggestion.  I let you know of my success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2004 15:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778363#M38970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-08T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: PASSING A GLOBAL VARIABLE TO A FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778364#M38971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &amp;gt; In SM37 in Tables tab create a new parameter with&lt;/P&gt;&lt;P&gt;&amp;gt; a&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; type that refers to a structure as a&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; Select-Option/Range:&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; BEGIN OF ...&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; SIGN(1),&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; OPTION(2),&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; LOW LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; HIGH LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; END OF ...&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; or you can try a table with one field as a long&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; string (30) should be enough:&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; BEGIN of ...&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; STR(30),&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; END of ...&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; (during assignment to a range it will move fields'&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; values to the correct range's fields).&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; Inside of a function declare a Range and assign&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; passed tables entries to it:&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; range[] = table[].&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; And in FM change code instead of "= date" it will&lt;/P&gt;&lt;P&gt;&amp;gt; be&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; something like "IN range.".&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Hi Pavil:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thank you for your input.  I am going to try your&lt;/P&gt;&lt;P&gt;&amp;gt; suggestion.  I let you know of my success.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Linda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Guys, for your information and help.  It is completed and It works beautifully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LInda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2004 18:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-global-variable-to-a-function/m-p/778364#M38971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-24T18:35:52Z</dc:date>
    </item>
  </channel>
</rss>

