<?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: SAP Data Transfer to Excel using Transaction Code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647844#M1943328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this method to get data out of SAP, only if the function module returns it as a parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg. &lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_USER_GET_DETAIL has some return parameters, which will give you back user details. But, &lt;SPAN style="color: #333333; font-size: 12px;"&gt;RFC_CALL_TRANSACTION isn't for meant for returning any data from SAP. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We may be able to better assist you if you can tell the Tcode, which you are trying to access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 13:11:20 GMT</pubDate>
    <dc:creator>Juwin</dc:creator>
    <dc:date>2016-04-14T13:11:20Z</dc:date>
    <item>
      <title>SAP Data Transfer to Excel using Transaction Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647843#M1943327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to retrieve data from a transaction code in SAP using VBA in MS Excel. I understand that there is one way of doing this using SAP GUI scripting but is there another way using Remote Function Calls?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking at RFC_CALL_TRANSACTION and RFC_CALL_TRANSACTION_USING. Does this accomplish what I need? For example, I have a transaction code called "TCODE" and I need to pass some arguments in such as a date range to generate data. Can I use RFC's or should I stick to GUI scripting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, I can connect to SAP and retrieve specific table information but how can I execute a transaction code while passing in parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set obSAPFnCntrl = CreateObject("SAP.Functions")&lt;/P&gt;&lt;P&gt;Set obSAPConn = obSAPFnCntrl.Connection&lt;/P&gt;&lt;P&gt;With obSAPConn&lt;/P&gt;&lt;P&gt;&amp;nbsp; .System = "system"&lt;/P&gt;&lt;P&gt;&amp;nbsp; .User = "user"&lt;/P&gt;&lt;P&gt;&amp;nbsp; .Password = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp; .Language = "EN"&lt;/P&gt;&lt;P&gt;&amp;nbsp; .Client = 750&lt;/P&gt;&lt;P&gt;End With&lt;/P&gt;&lt;P&gt;Set obSAPFnUserDetail = obSAPFnCntrl.Add("RFC_CALL_TRANSACTION")&lt;/P&gt;&lt;P&gt;'Set obSAPFnUserDetail = obSAPFnCntrl.Add("BAPI_USER_GET_DETAIL")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 16:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647843#M1943327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-13T16:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Data Transfer to Excel using Transaction Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647844#M1943328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this method to get data out of SAP, only if the function module returns it as a parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg. &lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_USER_GET_DETAIL has some return parameters, which will give you back user details. But, &lt;SPAN style="color: #333333; font-size: 12px;"&gt;RFC_CALL_TRANSACTION isn't for meant for returning any data from SAP. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We may be able to better assist you if you can tell the Tcode, which you are trying to access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647844#M1943328</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-04-14T13:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Data Transfer to Excel using Transaction Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647845#M1943329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply Juwin. The transaction code that I am trying to access is CADO which displays time sheet data. I experimented with SAP GUI scripting but that won't work for me because I need to pass in a date range, personnel numbers and a layout before generating the excel spreadsheet. Any help is appreciated. Thanks! &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/930269" width="450" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 18:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647845#M1943329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-14T18:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Data Transfer to Excel using Transaction Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647846#M1943330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I don't have any data for that in my system which would allow me to dig further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are not a ABAPer, looking at your question. Am I right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, do you have any ABAPers in your organization who can help you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 20:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647846#M1943330</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-04-14T20:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Data Transfer to Excel using Transaction Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647847#M1943331</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;You can to use this BAPI: BAPI_EECATIMESHEET_GETWORKLIST. This BAPI is a RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you need knows the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/930385" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-data-transfer-to-excel-using-transaction-code/m-p/11647847#M1943331</guid>
      <dc:creator>former_member235395</dc:creator>
      <dc:date>2016-04-14T21:22:51Z</dc:date>
    </item>
  </channel>
</rss>

