Shared Top Border

Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Login

Login to view more content!!!





Lost Password?
No account yet? Register

Registered Access

Poll

What area of ABAP are you interested in?
 
Home arrow Tips and Tricks arrow Connectors / BAPIs arrow Code to connect SAP using BAPI from other applications
Code to connect SAP using BAPI from other applications PDF Print E-mail
User Rating: / 4
PoorBest 
Written by P. Renjith Kumar   
Thursday, 17 May 2007
This gives the code that is used to establish connection between SAP and other applications using BAPI Active X Controls :
The code to illustrate the steps involved when the BAPI ActiveX Control is used to access BAPIs . ·       Creating a BAPI ActiveX Control object

Set oBAPICtrl = CreateObject(“SAP.BAPI.1”)

 ·       Creating a logon control object:

Set oLogonCtrl = CreateObject(“SAP.Logoncontrol.1")           

 ·       Creating a connection object to the R/3 System:

Set oBAPICtrl.Connection = oLogonCtrl.NewConnection           

 

·       Logging on to R/3 System by calling the logon method of the connection 

      object:

      If oBAPICtrl.Connection.Logon(frmStart.hwnd,FALSE)  = FALSE   

           Then  
               MsgBox"R/3 Logon Connection failed" 
           End
           Endif
 

Related Items:

Last Updated ( Thursday, 17 May 2007 )
 
< Prev   Next >

Google Search

Statistics

Contribution Activity
Utilities: 38
Tips and Tricks: 333
Sample Code: 164
Total Contributions: 550

Member Activity
Members: 6174 since 2/1/2007!
New: 5 since yesterday!
Visitors: 1008667

Newest Members

Welcome our newest members:

Google Ads

Shared Bottom Border

Contact Us | Polls | Add URL | Contribute | Privacy | Terms | Feedback

Discussion Forum | BLOG | Consultants: Post your resume | Companies: Advertise on ERPGenie.COM | Post Job
Financials Consultant | Consultant Review | Gallia Consulting | Supply Chain Project | SAP Financials Forum
GenieHoldings.COM, Inc. | Genie Press | WorkflowGenie | ESAGenie | ERPTopSites | ABAP Tips and Tricks | SAP Solutions Database

EDIGenie | Searching Survivor