cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi experts,

I am new to sap b1 sdk. Please tell me the steps to follow for my simple requirement.

i. I want to prepare form by using the screen pauinter. This form contains a matrix and a button.

ii. After pressing the button the data has to be displayed in matrix from database.

iii. Where I have to write coding for establishing a connection in between form and database.

iv. What Code I have to write.

v. How can I execute it.

vi. Where I have to observe the output.

Please give simple example on this.

thanks in advance.

I know vb.net.

Edited by: narayana reddy on Jul 22, 2008 9:12 AM

0 Likes
View Entire Topic
Former Member
0 Likes

Hi narayan,

Try this code:

before that in the solution properties, set the command line arguments as

"0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"

Private WithEvents SBO_Application As SAPbouiCOM.Application

Private oForm As SAPbouiCOM.Form

Private Sub SetApplication()

'*******************************************************************

'// Use an SboGuiApi object to establish the connection

'// with the application and rturn an initialized appliction object

'*******************************************************************

Dim SboGuiApi As SAPbouiCOM.SboGuiApi

Dim sConnectionString As String

SboGuiApi = New SAPbouiCOM.SboGuiApi

'// by following the steps specified above, the following

'// statment should be suficient for either development or run mode

sConnectionString = Environment.GetCommandLineArgs.GetValue(1)

'// connect to a running SBO Application

SboGuiApi.Connect(sConnectionString)

'// get an initialized application object

SBO_Application = SboGuiApi.GetApplication()

End Sub

Public Sub New()

MyBase.New()

'//*************************************************************

'// set SBO_Application with an initialized application object

'//*************************************************************

SetApplication()

'//*************************************************************

'// Create the simple form

'//*************************************************************

oForm.Visible = True

End Sub

I hope this will solve ur problem.

Regards,

Mohana