<?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: fetch data from VB6 to SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618954#M1280005</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 want to retrieve Changing parameter from a Remote Enabled function module in VB from SAP.&lt;/P&gt;&lt;P&gt;Can anyone provide me the method name to extract the &lt;STRONG&gt;Changing&lt;/STRONG&gt; parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Function Module : RPY_FUNCTIONMODULE_READ_NEW&lt;/P&gt;&lt;P&gt;Parameter to Extract from VB in SAP : NEW_SOURCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam connecting to SAP from my VB application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the needful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 May 2010 11:26:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-27T11:26:36Z</dc:date>
    <item>
      <title>fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618947#M1279998</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 got an application software in VB6.&lt;/P&gt;&lt;P&gt;Our version of SAP R/3 is ECC5.&lt;/P&gt;&lt;P&gt;now I have to put the values of application software into SAP customised table.&lt;/P&gt;&lt;P&gt;suppose text1 and text2 are there in the software VB6 and &lt;/P&gt;&lt;P&gt;the values that users put in it should reflect into a customised table in SAP say ZTAB &lt;/P&gt;&lt;P&gt;with fields ztext1 and ztext2.&lt;/P&gt;&lt;P&gt;i.e, text1 of VB6 software equals ztext1 of SAP table ZTAB and so on...&lt;/P&gt;&lt;P&gt;A relevant BAPI is to be created to do so but how to fetch&lt;/P&gt;&lt;P&gt;the data from VB6 to SAP and how do i connect VB6 and SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 15:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618947#M1279998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T15:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618948#M1279999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way you can download it to excel.&lt;/P&gt;&lt;P&gt;If yes then you can use BDC or LSMW to upload from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 17:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618948#M1279999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T17:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618949#M1280000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the VB program is to call the BAPI, then write the bapi with your 2 text fields as input parameters and then when you call the bapi from your VB program just send the 2 text fields.  The bapi doesn't look back into its calling program.   Am I missing something here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 21:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618949#M1280000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T21:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618950#M1280001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We did a Weigh Bridge in the same way long ago fo rone of our client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We written the program using a BAPI. &amp;amp; The interface part is from VB. it was done by VB Programmers..!&lt;/P&gt;&lt;P&gt;So check if you got some VB programmers, as there are some simple interfaces...&lt;/P&gt;&lt;P&gt;You can search in the net for "VB to SAP interface" or BAPI for "VB Application" Might be help you for reference, as I got one from internet and it was having comple screens for interfacing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 01:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618950#M1280001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T01:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618951#M1280002</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;First u have to create BAPI using SE37 ( Function Module ) with remote enabled functionality.&lt;/P&gt;&lt;P&gt;which have import / export parameters through which u can send data from VB6 to SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then open vb6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then write following sample code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

        Dim Functions As Object

        Set Functions = CreateObject("SAP.Functions")
 
        Functions.Connection.User = suser
        Functions.Connection.Password = sPassword
        Functions.Connection.Client = sClient
        Functions.Connection.ApplicationServer = sdestination
        Functions.Connection.Language = sLanguage
       
        Functions.Connection.SystemNumber = sYstemnumber       
If Functions.Connection.Logon(0, True) = True Then
        
        
        While Not rsSql.EOF
        
            Set RfcCallTransaction = Functions.Add(&amp;lt;BAPI_NAME&amp;gt;)
            RfcCallTransaction.Tables(&amp;lt;TABLE NAME IN WHICH U WANT TO PASS DATA&amp;gt;).appendrow
            
            RfcCallTransaction.Tables(&amp;lt;TABLE NAME IN WHICH U WANT TO PASS DATA&amp;gt;).MCount, &amp;lt;Field_Name&amp;gt;= rsSql.Fields(&amp;lt;Field_Name&amp;gt;)
            RfcCallTransaction.Tables(&amp;lt;TABLE NAME IN WHICH U WANT TO PASS DATA&amp;gt;).MCount, &amp;lt;Field_Name_2&amp;gt;= rsSql.Fields(&amp;lt;Field_Name_2&amp;gt;)

            MCount = MCount + 1
            rsSql.MoveNext
        
        Wend

	If RfcCallTransaction.Call = True Then
                   
                                    
	endif.

endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here rsSql is recordset which contains data which u want to send in sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here statement "If RfcCallTransaction.Call = True Then" call bapi and data will be sent to SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From above u can easily setup connection with SAP. no basis guy required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may surly help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chintan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chintan_SAP on May 8, 2009 9:09 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chintan_SAP on May 8, 2009 9:53 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chintan_SAP on May 8, 2009 9:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 03:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618951#M1280002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T03:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618952#M1280003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first create a bapi using tcode "SWO1".. in da function module of bapi use import parameters to read data from VB6 and den use da data to update ur z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;da call of bapi in VB6 has to be coded by VB programmer.u also need basis person to estblish interface b/w SAP and VB..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 03:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618952#M1280003</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2009-05-08T03:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618953#M1280004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Important Tcode:&lt;/P&gt;&lt;P&gt;BAPI - Buisness Object Browser&lt;/P&gt;&lt;P&gt;SWO1 - Buisness Object Builder&lt;/P&gt;&lt;P&gt;SE11 - Data Dictionary&lt;/P&gt;&lt;P&gt;Se37 - Function Builder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1. SE11-You have to create Structure.&lt;/P&gt;&lt;P&gt;2. SE37- Create Function Group&lt;/P&gt;&lt;P&gt;3. SE37- Create Function Module with Remote Enable Mode&lt;/P&gt;&lt;P&gt;-   In Import Parameter Click on pass value&lt;/P&gt;&lt;P&gt;4. SE37- After writting code use Release option.&lt;/P&gt;&lt;P&gt;5. SWO1- Create New BAPI Object &lt;/P&gt;&lt;P&gt;- Application: '*'&lt;/P&gt;&lt;P&gt;- Select Method &amp;amp; Click on Add Method&lt;/P&gt;&lt;P&gt;- Implement&lt;/P&gt;&lt;P&gt;- Release&lt;/P&gt;&lt;P&gt;- Generate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This are the steps which you have to take care.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618953#M1280004</guid>
      <dc:creator>ashish_shah5</dc:creator>
      <dc:date>2009-05-08T05:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618954#M1280005</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 want to retrieve Changing parameter from a Remote Enabled function module in VB from SAP.&lt;/P&gt;&lt;P&gt;Can anyone provide me the method name to extract the &lt;STRONG&gt;Changing&lt;/STRONG&gt; parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Function Module : RPY_FUNCTIONMODULE_READ_NEW&lt;/P&gt;&lt;P&gt;Parameter to Extract from VB in SAP : NEW_SOURCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam connecting to SAP from my VB application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the needful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 11:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618954#M1280005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T11:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618955#M1280006</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 am trying to use the same code but not able to connect to SAP through VB6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me know the actual procedure for connecting to the system and any pre-requisite for the connection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks &amp;amp; regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Akshay Ruia.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 14:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618955#M1280006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-18T14:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618956#M1280007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;First, you need to create the function module, enabled for remote calling, prefereably in a distinct function group, as security is handled at the function group level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Next, you need a user and password in SAP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Next, you need to add security to the profile of user, for S_RFC, using acvt 16, the function group name, and RFC_TYPE FUGR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;You should consider connecting to SAP via a login group, if you have multiple application servers, but here is code from my SAP connection obect that connects direct to a server. CP is a connection profile. fill in these fields with the appropriate informatin for your system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAP as Object&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Private&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; ConnectToServer()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAP = CreateObject(&lt;SPAN style="color: #a31515; font-size: 10pt;"&gt;"SAP.Functions"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAP.Connection.System = CP.System&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAP.Connection.client = CP.Client&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAP.Connection.ApplicationServer = CP.ApplicationServer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAP.Connection.user = CP.UserID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAP.Connection.Password = CP.Password&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAP.Connection.language = CP.Language&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; SAP.Connection.logon(0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Me&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.Connected = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;False&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Me&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.Connected = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;True&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;If&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sub&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;This will just Connect you to SAP. You then need to call the function module:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Controller as Object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Controller = SAP.add(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"Y_LABOR_SESSION_CONTROLLER"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Export = Controller.exports(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"RESPONSE"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Import = Controller.imports(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"REQUEST"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KVTable = Controller.tables(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"KEYVAL"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TXTable = Controller.tables(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"TEXT"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Here, we create a new object, called controller, and objects fro Export, import, etc. In this example, request, response, etc are all parameters of the function module, either imported, exported or tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Note, I named them this way, becuase i only have one export, and one import. If you have mlutiple exports, like test1 and text2, then each would be set up like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Text1 = Controller.exports(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"TEXT1")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Text2 = Controller.exports(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"TEXT2"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;or something like that&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;The export object is a structure, you can access like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Export(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"SESSIONID"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;) = Resp.SessionID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Export(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"RESPONSEDATA"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;) = Resp.ResponseData&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Export(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"MSGRESP"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;) = Resp.MsgResp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Then, finally, you call the function module&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; callok = Controller.call()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; callok = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pvtSAPError = Controller.exception()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;This code was taken from one of my working applications, so obviously, you need to tweak it. It was orginally created in VB6, and then adjusted into VS in various releases. it should show you, though, how to handle connecting, setting up the function module definition in VB, calling the FM, and checking for errors. I did not try and rewrite it to your specific scenario, though.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 16:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618956#M1280007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-18T16:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from VB6 to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618957#M1280008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks For the Reply. It worked Great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akshay Ruia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 05:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-vb6-to-sap/m-p/5618957#M1280008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-01T05:40:45Z</dc:date>
    </item>
  </channel>
</rss>

