cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

simple example by using sdk

Former Member
0 Likes
503

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

Accepted Solutions (0)

Answers (3)

Answers (3)

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

Former Member
0 Likes

Hi...

Go through the SAP Sample .

C:\Program Files\SAP\SAP Business One SDK\Samples

You will find everything......

Regards

Sanjay

Former Member
0 Likes

Hi,

thanks for ur information.

I have found those samples. Please tell me how to execute these samples.

with regards

narayana reddy.

Former Member
0 Likes

Hi narayana,

You can execute this samples with Visual Studio 2005 or 2003 or with VB6.

Yoju open the project with the appropriate sofware and you start the project.

Hope i help you.

Michael

Former Member
0 Likes

Hi narayana,

if u installed SAP BOne means,

then u will get all the sample programs.

The path :

SAPBONE->SDK->Samples