<?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 data between two programs using FMs? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-between-two-programs-using-fms/m-p/7854402#M1592331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer my explanation to similar doubt &lt;SPAN __jive_macro_name="message" id="10113019"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2011 10:40:43 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2011-05-06T10:40:43Z</dc:date>
    <item>
      <title>Passing data between two programs using FMs?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-between-two-programs-using-fms/m-p/7854401#M1592330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to pass data between two programs using function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know there are other options such as submit a program,export/import to memory id etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is it possible to pass data using FMs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 10:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-between-two-programs-using-fms/m-p/7854401#M1592330</guid>
      <dc:creator>niti_mod</dc:creator>
      <dc:date>2011-05-06T10:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Passing data between two programs using FMs?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-between-two-programs-using-fms/m-p/7854402#M1592331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer my explanation to similar doubt &lt;SPAN __jive_macro_name="message" id="10113019"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 10:40:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-between-two-programs-using-fms/m-p/7854402#M1592331</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2011-05-06T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Passing data between two programs using FMs?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-between-two-programs-using-fms/m-p/7854403#M1592332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose i need to pass data to another program using FM how should i proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg &lt;/P&gt;&lt;P&gt;program1 the user gives an input as 1  which is type integer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now this value '1' should be available to some other program for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need to use only function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible and how??.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 11:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-between-two-programs-using-fms/m-p/7854403#M1592332</guid>
      <dc:creator>niti_mod</dc:creator>
      <dc:date>2011-05-06T11:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Passing data between two programs using FMs?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-between-two-programs-using-fms/m-p/7854404#M1592333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is possible as long all programs run in the same process, are not interrupted by any screen i/o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create two FMs in one function group. In TOP include, declare the data to be shared globally :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* INCLUDE ZXYTOP.
DATA:
  datacontainer type whatever.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION Z_XY_EXPORT.
* IMPORTING
*   I_datacontainer TYPE whatever
  datacontainer = I_datacontainer.
ENDFUNCTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION Z_XY_IMPORT.
* EXPORTING
*   E_datacontainer TYPE whatever
  E_datacontainer =datacontainer.
ENDFUNCTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Z_PROG1.
...
CALL FUNCTION Z_XY_EXPORT
  EXPORTING
     I_datacontainer = your_datacontainer_just_filled.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Z_PROG2.

CALL FUNCTION Z_XY_IMPORT
  IMPORTING
     E_datacontainer = your_datacontainer_needed_here.
...
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to share the data between independent work processes and/or users, you can make use of shared buffers or the modern way shared objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 12:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-between-two-programs-using-fms/m-p/7854404#M1592333</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-05-06T12:26:50Z</dc:date>
    </item>
  </channel>
</rss>

