<?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: Call RFC that return structure using VB 6 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750617#M1675366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Log into SAP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If sapConnection.logon(0, False) &amp;lt;&amp;gt; True Then&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MsgBox “No connection to R/3!”&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Exit Sub ‘End program&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Call the Read RFC&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Set theFunc = functionCtrl.Add(”YMAINT_TABLE”)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Exporting table name&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;theFunc.exports(”TABLENAME”) = table_name&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Prepare Data sheet for data load&lt;/EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;returnFunc = theFunc.Call&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;exception = theFunc.exception&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Map the data to cells&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If returnFunc = True Then&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Dim objtable As Object&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Set objtable = theFunc.tables.Item(”DATA”)&lt;/EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/Table+Maintenance+Using+Excel+Visual+Basic+for+Applications"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/Table+Maintenance+Using+Excel+Visual+Basic+for+Applications&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 02:53:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-05-16T02:53:00Z</dc:date>
    <item>
      <title>Call RFC that return structure using VB 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750614#M1675363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, anyone has a sample code to call a custom RFC that returns table structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RFC expect parameters to pinpoint the record and return it in a structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;*Local Interface:&lt;/P&gt;&lt;P&gt;'FUNCTION zfori_web_pgto_parceiros.&lt;/P&gt;&lt;P&gt;'*"----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;'*"*"Interface local:&lt;/P&gt;&lt;P&gt;'*"&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;'*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(I_LIFNR) TYPE&amp;nbsp; LIFNR&lt;/P&gt;&lt;P&gt;'*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(I_DATAINICIO) TYPE&amp;nbsp; DATE OPTIONAL&lt;/P&gt;&lt;P&gt;'*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(I_DATAFIM) TYPE&amp;nbsp; DATE OPTIONAL&lt;/P&gt;&lt;P&gt;'*"&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;'*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T_PAGTO_PARCEIRO STRUCTURE&amp;nbsp; ZSTORI_PAGTO_PARCEIRO_WEB&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;-- final function&lt;/P&gt;&lt;P&gt;&amp;nbsp; t_pagto_parceiro[] = t_saida[].&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;&lt;/P&gt;&lt;P&gt;in se37&amp;nbsp; run work fine &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my vb code, but it return zero entries (I'm sure it should return records).&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;***&lt;STRONG&gt;Login Process Here&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objFunc = objSAPLogon.Add("zfori_web_pgto_parceiros")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objtblparceiro = objFunc.Tables("T_PAGTO_PARCEIRO")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With objFunc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Exports("I_LIFNR") = "1064425"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not objFunc.Call Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print objFunc.Exception&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print objtblparceiro.RowCount ==&amp;gt; 0&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/746/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 19:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750614#M1675363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-15T19:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Call RFC that return structure using VB 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750615#M1675364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not going to ask why you're using VB6 instead of VB.NET, since I'm sure you have your reasons.&amp;nbsp; I see two possibilities.&amp;nbsp; Capitalize the function module (just in case), and set the &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;objtblparceiro &lt;/SPAN&gt;AFTER the function is called, not before.&amp;nbsp; Let me know if that works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 21:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750615#M1675364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-15T21:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Call RFC that return structure using VB 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750616#M1675365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried my application using lower case for the Function Module name and it is working OK.&lt;/P&gt;&lt;P&gt;Did you remember to set your Function Module to be Remote Enabled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the FM is not being called because of authority restrictions. Are you sure you have proper authority to call remote functions? We just recently starting using vb to get remote functions and we needed to update the authority roles. You will need object S_RFC with: Activity = 16, Name of RFC = Function Group (from your Function Module), Type of RFC = FUGR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 23:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750616#M1675365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-15T23:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Call RFC that return structure using VB 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750617#M1675366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Log into SAP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If sapConnection.logon(0, False) &amp;lt;&amp;gt; True Then&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MsgBox “No connection to R/3!”&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Exit Sub ‘End program&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Call the Read RFC&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Set theFunc = functionCtrl.Add(”YMAINT_TABLE”)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Exporting table name&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;theFunc.exports(”TABLENAME”) = table_name&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Prepare Data sheet for data load&lt;/EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;returnFunc = theFunc.Call&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;exception = theFunc.exception&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11px; color: #000000; margin-top: 10px; margin-bottom: 10px; background-color: #ffffff;"&gt;&lt;EM&gt;‘ Map the data to cells&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If returnFunc = True Then&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Dim objtable As Object&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Set objtable = theFunc.tables.Item(”DATA”)&lt;/EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/Table+Maintenance+Using+Excel+Visual+Basic+for+Applications"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/Table+Maintenance+Using+Excel+Visual+Basic+for+Applications&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 02:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750617#M1675366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-16T02:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Call RFC that return structure using VB 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750618#M1675367</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;Check if there is any leading zeros.I faced the same problem a long back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 04:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750618#M1675367</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2012-05-16T04:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Call RFC that return structure using VB 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750619#M1675368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Pass LIFNR with leading zeros.That is the reason for empty records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 05:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750619#M1675368</guid>
      <dc:creator>naresh_bammidi</dc:creator>
      <dc:date>2012-05-16T05:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Call RFC that return structure using VB 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750620#M1675369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please look into the thread..&lt;A _jive_internal="true" href="https://answers.sap.com/thread/50275"&gt;http://scn.sap.com/thread/50275&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 05:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750620#M1675369</guid>
      <dc:creator>naresh_bammidi</dc:creator>
      <dc:date>2012-05-16T05:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Call RFC that return structure using VB 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750621#M1675370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But the tip of Naresh work fine , &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 13:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-rfc-that-return-structure-using-vb-6/m-p/8750621#M1675370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-16T13:48:40Z</dc:date>
    </item>
  </channel>
</rss>

