<?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 Loading data with BAPI via VB.NET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607922#M1569035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to put a vb.net project together to load data for material master via BAPI.  I am having some difficulty doing so using my only reference u201CVisual Basic SAP R/3 Programmingu201D by Oleg Ovanesyan.  I believe it was released in the late 90u2019s.  Do you know of any other references that will walk a person through using the SAP Active X controls that come with SAP GUI for vb.net?  I am using Visual Studio 2008 or 2010 by the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is downloading the SAP .Net Connector from the SAP site the only answer?  If so, is there a place I can get this without being a Partner or Customer.  I am currently renting access to a SAP system for my development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Dec 2010 08:25:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-31T08:25:50Z</dc:date>
    <item>
      <title>Loading data with BAPI via VB.NET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607922#M1569035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to put a vb.net project together to load data for material master via BAPI.  I am having some difficulty doing so using my only reference u201CVisual Basic SAP R/3 Programmingu201D by Oleg Ovanesyan.  I believe it was released in the late 90u2019s.  Do you know of any other references that will walk a person through using the SAP Active X controls that come with SAP GUI for vb.net?  I am using Visual Studio 2008 or 2010 by the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is downloading the SAP .Net Connector from the SAP site the only answer?  If so, is there a place I can get this without being a Partner or Customer.  I am currently renting access to a SAP system for my development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 08:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607922#M1569035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-31T08:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data with BAPI via VB.NET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607923#M1569036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Macro in excel to call a BAPI in SAP. You can modify the code where required.&lt;/P&gt;&lt;P&gt;Excel uses VBA so the code should be practically the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

'Connect to a SAP system
'Connection object
Dim sapConnection As Object

'Function Control (Collective object)
Dim objBAPIControl As Object

Set objBAPIControl = CreateObject("SAP.Functions")
Set sapConnection = objBAPIControl.Connection

'Get these details from the SAP GUI
sapConnection.ApplicationServer = "AppServer"
sapConnection.HostName = "HostName"
sapConnection.SystemNumber = "00"
sapConnection.System = "000"
sapConnection.Client = "300"
sapConnection.User = "DSOUZA"
sapConnection.Password = "Password"
sapConnection.Language = "EN"


If sapConnection.logon(0, False) Then

	perform check_user(objBAPIControl)

Else
  MsgBox "Could not connect to SAP system".
End If

'Call the BAPI from the SAP system
public sub check_user(objBAPIControl As Object)

Dim objUserBapi As Object
Set objUserBapi = objBAPIControl.Add("BAPI_USER_EXISTENCE_CHECK")

'Input parameters of BAPI
objUserBapi.exports("USERNAME").Value = "TestUser"

If objJobList.Call Then
	dim return as object

'Export parameters of BAPI
	set return = objUserBapi.imports("RETURN")
	msgbox return.value("MESSAGE")

else
 msgbox "Could not execute BAPI".
end if&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 09:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607923#M1569036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-31T09:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data with BAPI via VB.NET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607924#M1569037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will give this a try in VBA, and attempting to get all that I am working on to work there.  Once that is done, I will need to migrate that to .NET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More to come in the next few days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 22:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607924#M1569037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T22:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data with BAPI via VB.NET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607925#M1569038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get the solution in .NET ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 07:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607925#M1569038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-23T07:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data with BAPI via VB.NET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607926#M1569039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had some success, and will post my results if you need.  I have not logged into SDN for a while, so sorry for such a late reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 02:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607926#M1569039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-26T02:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data with BAPI via VB.NET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607927#M1569040</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 would be very interested in your solution that you used in VB.net if you could please post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trevor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 15:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-with-bapi-via-vb-net/m-p/7607927#M1569040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-23T15:21:43Z</dc:date>
    </item>
  </channel>
</rss>

