<?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 RFC from Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-from-excel/m-p/4823177#M1128675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    i want to update a SAP table with the info from excel.Request you to provide inputs on how to make RFC call from the Excel Macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalyan Chakravarthi.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2008 11:12:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-21T11:12:50Z</dc:date>
    <item>
      <title>RFC from Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-from-excel/m-p/4823177#M1128675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    i want to update a SAP table with the info from excel.Request you to provide inputs on how to make RFC call from the Excel Macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalyan Chakravarthi.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 11:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-from-excel/m-p/4823177#M1128675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T11:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: RFC from Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-from-excel/m-p/4823178#M1128676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP upload: if you have hundreds of records to create or modify, the solutions available are: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build a program in ABAP. Use FM "ALSM_EXCEL_TO_INTERNAL_TABLE" to upload excel to internal table &lt;/P&gt;&lt;P&gt;Use one SAP tool called LSMW (Legacy Systems Migration Workbench). &lt;/P&gt;&lt;P&gt;Use one internal test tool called CATT (Computer Aided Test Tool). &lt;/P&gt;&lt;P&gt;Use some easy to use third party tools (see list in #Commercial Tools section below). &lt;/P&gt;&lt;P&gt;For some business objects, use the SAP mass maintenance transactions such as MASS or MM17: &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;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 12:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-from-excel/m-p/4823178#M1128676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T12:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: RFC from Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-from-excel/m-p/4823179#M1128677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code I had written to fetch data from SAP. It uses a RFC enabled FM - RFC_READ_TABLE for reading a DB table. You will have to find a RFC enabled FM that lets you update the DB table you want to update. ( I dont think there is any generic RFC enabled FM for doing that, off course you are free to create a custom one ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample code for using the FM from SAP EXcel macros.. I had developed it using a sub routine in a class module for using across Excel sheets.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Sub Get_Report_List()
Dim SAPFunCtl As New SAPFunctions
Dim RFCFunc As New SAPFunctionsOCX.Function

Dim I_QUERY_TABLE
Dim T_OPTIONS
Dim T_FIELDS
Dim T_DATA

Dim Row As Integer

'Pop up for Automatic Logon.
 SAPFunCtl.AutoLogon = True
 
'Set the Function Module to be called
 Set RFCFunc = SAPFunCtl.Add("RFC_READ_TABLE")
 
'Set the Import, Export &amp;amp; Table Parameters
 Set I_QUERY_TABLE = RFCFunc.Exports("QUERY_TABLE")
 Set T_OPTIONS = RFCFunc.Tables("OPTIONS")
 Set T_FIELDS = RFCFunc.Tables("FIELDS")
 Set T_DATA = RFCFunc.Tables("DATA")
 
'Query Table TRDIR
 I_QUERY_TABLE.Value = "TRDIR"
 T_OPTIONS.AppendRow
 T_OPTIONS(1, "TEXT") = "NAME LIKE 'Z%'"
 
 T_FIELDS.AppendRow
 T_FIELDS(1, "FIELDNAME") = "NAME"
 T_FIELDS.AppendRow
 T_FIELDS(2, "FIELDNAME") = "SUBC"
 
  If RFCFunc.Call = True Then
    If T_DATA.RowCount &amp;gt; 0 Then
    'Clear Sheet3 - Data
        Sheet3.Cells.Clear
        For Row = 1 To T_DATA.RowCount
        Sheet3.Cells(Row, 1) = T_DATA(Row, "WA")
        Next Row
        Sheet3.Activate
    End If
 Else
    MsgBox "Connection failure."
 End If


End Sub&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 12:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-from-excel/m-p/4823179#M1128677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T12:18:29Z</dc:date>
    </item>
  </channel>
</rss>

