<?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: Transfer values between Function Groups in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953762#M65749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think function Z shouldn't called by X, but Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infact X and Z are in the same group so they can see the global variables of group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GROUP 1 -&amp;gt; Function X, Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FIELD1 TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA X_BKPF LIKE STANDARD TABLE OF BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD1 = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X_BKPF = .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REFERENCE(FIELD)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    T_BKPF...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  FIELD = FIELD1. "Take field1 value&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  T_BKPF[] = X_BKPF[] "Take table values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group 2 Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION Z&lt;/P&gt;&lt;P&gt;  IMPORTING FIELD = FIELD_Y&lt;/P&gt;&lt;P&gt;  TABLES    T_BKPF = T_BKPF_Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2005 13:25:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-01T13:25:57Z</dc:date>
    <item>
      <title>Transfer values between Function Groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953756#M65743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be a very silly question. I have two function groups x and y. X calls a z function module which is in the same funcion group as X. Now I want to pass some value that x gave to z to Y function module . How do I do it??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2005 12:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953756#M65743</guid>
      <dc:creator>Nkrish</dc:creator>
      <dc:date>2005-09-01T12:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer values between Function Groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953757#M65744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- you can create a function (of the Z group) with suited interface to take these values;&lt;/P&gt;&lt;P&gt;- you can use import/export parameter statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2005 12:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953757#M65744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-01T12:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer values between Function Groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953758#M65745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, just pass the values thru the interface using the IMPORT or TABLES.&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>Thu, 01 Sep 2005 12:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953758#M65745</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-09-01T12:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer values between Function Groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953759#M65746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Who is calling when Y?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2005 12:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953759#M65746</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-09-01T12:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer values between Function Groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953760#M65747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In X Function module I have called a function module called Z . Both X and Z are in the same function group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now there are some values in X which I need in Y function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I create a function module Z which gets values from X. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how do I get this table/Values to Y as it is in another function group. Could you please give me the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2005 13:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953760#M65747</guid>
      <dc:creator>Nkrish</dc:creator>
      <dc:date>2005-09-01T13:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer values between Function Groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953761#M65748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would use the interface of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


call function 'GUI_DOWNLOAD'
&amp;lt;b&amp;gt;     exporting
          filename = the_file_path
     tables
          data_tab = itab&amp;lt;/b&amp;gt;
     exceptions
          others   = 22.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice is this example,  I am passing "the_file_path" as one value and the ITAB which is an internal table with many rows.&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>Thu, 01 Sep 2005 13:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953761#M65748</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-09-01T13:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer values between Function Groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953762#M65749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think function Z shouldn't called by X, but Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infact X and Z are in the same group so they can see the global variables of group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GROUP 1 -&amp;gt; Function X, Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FIELD1 TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA X_BKPF LIKE STANDARD TABLE OF BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD1 = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X_BKPF = .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REFERENCE(FIELD)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    T_BKPF...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  FIELD = FIELD1. "Take field1 value&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  T_BKPF[] = X_BKPF[] "Take table values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group 2 Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION Z&lt;/P&gt;&lt;P&gt;  IMPORTING FIELD = FIELD_Y&lt;/P&gt;&lt;P&gt;  TABLES    T_BKPF = T_BKPF_Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2005 13:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953762#M65749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-01T13:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer values between Function Groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953763#M65750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much MAX I was able to solve the problem. I am not able to see the stars where I can give points. Thanks for the prompt and excellent example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2005 15:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953763#M65750</guid>
      <dc:creator>Nkrish</dc:creator>
      <dc:date>2005-09-01T15:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer values between Function Groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953764#M65751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok! If you can't do it, I'll reward ten virtual points to myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2005 16:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-values-between-function-groups/m-p/953764#M65751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-01T16:24:48Z</dc:date>
    </item>
  </channel>
</rss>

