<?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 issue in calling archive file functions from VB code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-calling-archive-file-functions-from-vb-code/m-p/10049554#M1809712</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;we have a requirement of creating archive link document for employees using RFC which will be called via VB , the code we are using , uses standard FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="font-size: 12px; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; background-color: #e7e7e7; color: #333333;"&gt;ARCHIV_CREATE_&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI'; font-size: 12px; background-color: #f8f8f8;"&gt;FILE&lt;/SPAN&gt;&amp;gt; in the RFC FM we have created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Const RAccess As String = " "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Declare Function RfcAllowStartProgram Lib "librfc32" (ByVal RAccess As String) As Integer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub test()&lt;/P&gt;&lt;P&gt;Dim fns&lt;/P&gt;&lt;P&gt;Dim par1&lt;/P&gt;&lt;P&gt;Dim par2&lt;/P&gt;&lt;P&gt;Dim par3&lt;/P&gt;&lt;P&gt;Dim par4&lt;/P&gt;&lt;P&gt;Dim par5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set fns = CreateObject("SAP.Functions")&lt;/P&gt;&lt;P&gt;Set funcControl = CreateObject("SAP.Functions")&lt;/P&gt;&lt;P&gt;fns.logfilename = "my_log.txt"&lt;/P&gt;&lt;P&gt;fns.loglevel = 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim conn&lt;/P&gt;&lt;P&gt;Set conn = fns.Connection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conn.ApplicationServer = "XXX.XX.XX.XX"&lt;/P&gt;&lt;P&gt;conn.System = "DEV"&lt;/P&gt;&lt;P&gt;conn.Systemnumber = "10"&lt;/P&gt;&lt;P&gt;conn.user = "abc"&lt;/P&gt;&lt;P&gt;conn.Password = "xyz"&lt;/P&gt;&lt;P&gt;conn.Client = "100"&lt;/P&gt;&lt;P&gt;conn.Language = "E"&lt;/P&gt;&lt;P&gt;conn.tracelevel = 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If conn.logon(0, True) &amp;lt;&amp;gt; True Then&lt;/P&gt;&lt;P&gt;MsgBox "Could not connect to SAP R/3"&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;MsgBox "Connected"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReturnCode = RfcAllowStartProgram("sapftp;saphttp")&lt;/P&gt;&lt;P&gt;funcControl.Connection = conn&lt;/P&gt;&lt;P&gt;Set RFC_READ_TABLE = funcControl.Add("ZFM")&lt;/P&gt;&lt;P&gt;Set strExport1 = RFC_READ_TABLE.exports("EMPLOYEENO")&lt;/P&gt;&lt;P&gt;Set strExport2 = RFC_READ_TABLE.exports("DOCUMENTTYPE")&lt;/P&gt;&lt;P&gt;Set strExport3 = RFC_READ_TABLE.exports("FILEPATH") '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strExport1.Value = "99999999"&lt;/P&gt;&lt;P&gt;strExport2.Value = "ZXXXX"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strExport3.Value = "C:\temp\Desert.jpg"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result = RFC_READ_TABLE.call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get the result as false , when i debug the application , i get the error " only available with the rfc library from 4.0c onwa"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sameer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jan 2014 14:13:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-11T14:13:51Z</dc:date>
    <item>
      <title>issue in calling archive file functions from VB code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-calling-archive-file-functions-from-vb-code/m-p/10049554#M1809712</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;we have a requirement of creating archive link document for employees using RFC which will be called via VB , the code we are using , uses standard FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="font-size: 12px; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; background-color: #e7e7e7; color: #333333;"&gt;ARCHIV_CREATE_&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI'; font-size: 12px; background-color: #f8f8f8;"&gt;FILE&lt;/SPAN&gt;&amp;gt; in the RFC FM we have created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Const RAccess As String = " "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Declare Function RfcAllowStartProgram Lib "librfc32" (ByVal RAccess As String) As Integer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub test()&lt;/P&gt;&lt;P&gt;Dim fns&lt;/P&gt;&lt;P&gt;Dim par1&lt;/P&gt;&lt;P&gt;Dim par2&lt;/P&gt;&lt;P&gt;Dim par3&lt;/P&gt;&lt;P&gt;Dim par4&lt;/P&gt;&lt;P&gt;Dim par5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set fns = CreateObject("SAP.Functions")&lt;/P&gt;&lt;P&gt;Set funcControl = CreateObject("SAP.Functions")&lt;/P&gt;&lt;P&gt;fns.logfilename = "my_log.txt"&lt;/P&gt;&lt;P&gt;fns.loglevel = 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim conn&lt;/P&gt;&lt;P&gt;Set conn = fns.Connection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conn.ApplicationServer = "XXX.XX.XX.XX"&lt;/P&gt;&lt;P&gt;conn.System = "DEV"&lt;/P&gt;&lt;P&gt;conn.Systemnumber = "10"&lt;/P&gt;&lt;P&gt;conn.user = "abc"&lt;/P&gt;&lt;P&gt;conn.Password = "xyz"&lt;/P&gt;&lt;P&gt;conn.Client = "100"&lt;/P&gt;&lt;P&gt;conn.Language = "E"&lt;/P&gt;&lt;P&gt;conn.tracelevel = 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If conn.logon(0, True) &amp;lt;&amp;gt; True Then&lt;/P&gt;&lt;P&gt;MsgBox "Could not connect to SAP R/3"&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;MsgBox "Connected"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReturnCode = RfcAllowStartProgram("sapftp;saphttp")&lt;/P&gt;&lt;P&gt;funcControl.Connection = conn&lt;/P&gt;&lt;P&gt;Set RFC_READ_TABLE = funcControl.Add("ZFM")&lt;/P&gt;&lt;P&gt;Set strExport1 = RFC_READ_TABLE.exports("EMPLOYEENO")&lt;/P&gt;&lt;P&gt;Set strExport2 = RFC_READ_TABLE.exports("DOCUMENTTYPE")&lt;/P&gt;&lt;P&gt;Set strExport3 = RFC_READ_TABLE.exports("FILEPATH") '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strExport1.Value = "99999999"&lt;/P&gt;&lt;P&gt;strExport2.Value = "ZXXXX"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strExport3.Value = "C:\temp\Desert.jpg"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result = RFC_READ_TABLE.call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get the result as false , when i debug the application , i get the error " only available with the rfc library from 4.0c onwa"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sameer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 14:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-calling-archive-file-functions-from-vb-code/m-p/10049554#M1809712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-11T14:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: issue in calling archive file functions from VB code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-calling-archive-file-functions-from-vb-code/m-p/10049555#M1809713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Sameer please search for this message you will find sap note to be implemented in one of threads. Please always search before posting&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 14:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-calling-archive-file-functions-from-vb-code/m-p/10049555#M1809713</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-01-11T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: issue in calling archive file functions from VB code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-calling-archive-file-functions-from-vb-code/m-p/10049556#M1809714</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;i checked lots of threads , but this note says to use the LIBRFC32 of correct version , i have done the same , still am getting this error. I have downloaded all the new software dll and sapftp etc but still am getting error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet , i have posted this after lot of trail and error and search , but i forgot to mention that all the threads have been refered to. If you have any specific note other than what i mentioned ,please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 14:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-calling-archive-file-functions-from-vb-code/m-p/10049556#M1809714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-11T14:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: issue in calling archive file functions from VB code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-calling-archive-file-functions-from-vb-code/m-p/10049557#M1809715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;A href="http://scn.sap.com/thread/1486105" target="test_blank"&gt;http://scn.sap.com/thread/1486105&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Pleasecheck this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nabheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 15:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-calling-archive-file-functions-from-vb-code/m-p/10049557#M1809715</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-01-11T15:06:33Z</dc:date>
    </item>
  </channel>
</rss>

