<?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: Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389285#M531187</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;Yes ... you need to execute FM RFC_READ_TABLE twice to read two different database tables and store both data to one internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2007 19:33:35 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-06-14T19:33:35Z</dc:date>
    <item>
      <title>Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389279#M531181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which Function module I have to use extract data from one client to abap program in another client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 18:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389279#M531181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T18:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389280#M531182</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;Do you mean to read/extract table data?&lt;/P&gt;&lt;P&gt;If you do then you can this FM RFC_READ_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 18:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389280#M531182</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-06-14T18:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389281#M531183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question is not clear :&lt;/P&gt;&lt;P&gt;You can use BAPI,ALE/IDOC's ,EDI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or simple BDC You can Write&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 18:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389281#M531183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T18:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389282#M531184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,  if the clients are within the same instance,  then this is quite easy.  You can actually specify the client in your WHERE clause in your SELECT statements,  so you could run a program in client 100 which is getting data from client 300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select * into table imara from mara
             where mandt = '300'
                and mtart = 'HALB'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the clients are not of the same instance, then of course you need to use RFC connections and the already mentioned funciton module to bounce to the other instance and retrieve the data.&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, 14 Jun 2007 18:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389282#M531184</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-14T18:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389283#M531185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The clients are not of the same instanc. The data needs to be pulled from two tables. Should I use the rfc twice to populate the data into 2 internal tables...and finally combine them into a single internal table...............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 19:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389283#M531185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T19:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389284#M531186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to call it twice, how you do it is up to you, but if you want to be a little more dynamic and code the call only once, you can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: it001 type table of t001.
data: xt001 like line of it001.
data: it005 type table of t005.
data: xt005 like line of it005.

start-of-selection.

* Pass the name of the internal table, the work area, and the name of the table
  perform read_table using 'IT001' 'XT001' 'T001'.
  perform read_table using 'IT005' 'XT005' 'T005'.

* write out the data that was retrieved.
  loop at it001 into xt001.
    write:/ xt001.
  endloop.

  loop at it005 into xt005.
    write:/ xt005.
  endloop.

*---------------------------------------------------------------------*
*       FORM read_table                                               *
*---------------------------------------------------------------------*
form read_table using itab_name wa_name table_name.

  data: opt type table of rfc_db_opt with header line.
  data: fld type table of rfc_db_fld with header line.
  data: tab type table of tab512 with header line.

  data: istr type table of string.
  data: xstr type string.

  field-symbols: &amp;lt;fs_tab&amp;gt; type table,
                 &amp;lt;fs_wa&amp;gt;,
                 &amp;lt;fs&amp;gt;.

  assign (itab_name) to &amp;lt;fs_tab&amp;gt;.
  assign (wa_name) to &amp;lt;fs_wa&amp;gt;.

  call function 'RFC_READ_TABLE'
    destination 'PRD'
    exporting
      query_table                = table_name
      delimiter                  = ','
    tables
      options                    = opt
      fields                     = fld
      data                       = tab
   exceptions
     table_not_available        = 1
     table_without_data         = 2
     option_not_valid           = 3
     field_not_valid            = 4
     not_authorized             = 5
     data_buffer_exceeded       = 6
     others                     = 7.

  loop at tab.
    split tab at ',' into table istr.
    loop at istr into xstr.
      assign component sy-tabix of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs&amp;gt;.
      if sy-subrc = 0.
        &amp;lt;fs&amp;gt; = xstr.
      endif.
    endloop.
    append &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_tab&amp;gt;.
  endloop.

endform.


&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>Thu, 14 Jun 2007 19:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389284#M531186</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-14T19:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389285#M531187</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;Yes ... you need to execute FM RFC_READ_TABLE twice to read two different database tables and store both data to one internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 19:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389285#M531187</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-06-14T19:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389286#M531188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more quick question&lt;/P&gt;&lt;P&gt;How do I search FM which suit my requirement&lt;/P&gt;&lt;P&gt;Lets say for POPUP of messages.... How do i find the function modules&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 19:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389286#M531188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T19:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389287#M531189</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;Please go to transaction SE37 and enter &lt;STRONG&gt;POPUP&lt;/STRONG&gt; then press F4 (pull down). System will then show list of FM with &lt;STRONG&gt;POPUP&lt;/STRONG&gt; wildcard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you try to select and test the FM which meet your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_FOR_INFORMATION &lt;/P&gt;&lt;P&gt;POPUP_WITH_2_BUTTONS_TO_CHOOSE&lt;/P&gt;&lt;P&gt;POPUP_WITH_3_BUTTONS_TO_CHOOSE&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM&lt;/P&gt;&lt;P&gt;POPUP_GET_VALUES&lt;/P&gt;&lt;P&gt;POPUP_TO_DECIDE_LIST&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE&lt;/P&gt;&lt;P&gt;POPUP_TO_INFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you mark for helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 19:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2389287#M531189</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-06-14T19:49:24Z</dc:date>
    </item>
  </channel>
</rss>

