Creation of datasource form combo box in SAP Business One SDK
Hi,
How to create the user datasource for combo box in SAP Business One SDK.
Regards,
Y.
Hello freind
yu can used following code for userdatasource when form loaded
Dim Branch As SAPbouiCOM.ComboBox
oform.DataSources.UserDataSources.Add("Ebranch", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 25)
Branch = oform.Items.Item("3").Specific
Branch.DataBind.SetBound(True, "", "Ebranch")
Similar Messages
-
in sap business one sdk how DI API is connect.
hi
threre r two method for connection
1. single sign one connection
2 seprate connection
In the single sign one connection we connect to UI api nd DI api ,
In the seprate connection we r connect seprate DI api nd UI api ,
This is single sign one code. connect to di api
private SAPbobsCOM.Company oCompany;
private void SetApplication() {
// // Use an SboGuiApi object to establish connection
// // with the SAP Business One application and return an
// // initialized appliction object
SAPbouiCOM.SboGuiApi SboGuiApi = null;
string sConnectionString = null;
SboGuiApi = new SAPbouiCOM.SboGuiApi();
// // by following the steps specified above, the following
// // statment should be suficient for either development or run mode
sConnectionString = System.Convert.ToString( Environment.GetCommandLineArgs().GetValue( 1 ) );
// // connect to a running SBO Application
SboGuiApi.Connect( sConnectionString );
// // get an initialized application object
SBO_Application = SboGuiApi.GetApplication( -1 );
private int SetConnectionContext() {
int setConnectionContextReturn = 0;
string sCookie = null;
string sConnectionContext = null;
int lRetCode = 0;
// // First initialize the Company object
oCompany = new SAPbobsCOM.Company();
// // Acquire the connection context cookie from the DI API.
sCookie = oCompany.GetContextCookie();
// // Retrieve the connection context string from the UI API using the
// // acquired cookie.
sConnectionContext = SBO_Application.Company.GetConnectionContext( sCookie );
// // before setting the SBO Login Context make sure the company is not
// // connected
if ( oCompany.Connected == true ) {
oCompany.Disconnect();
// // Set the connection context information to the DI API.
setConnectionContextReturn = oCompany.SetSboLoginContext( sConnectionContext );
return setConnectionContextReturn;
private int ConnectToCompany() {
int connectToCompanyReturn = 0;
// // Establish the connection to the company database.
connectToCompanyReturn = oCompany.Connect();
return connectToCompanyReturn;
.................this is code for cneect ui api nd di api..............
...........................................////////........................................this is code for connect for di api seprate.....................................................
Dim oCompany As SAPBobsCOM.Company
Dim lRetCode, lErrCode As Long
Dim sErrMsg as String
'Instanciate a Company object
oCompany = New SAPBobsCOM.Company
oCompany.Server = "(local)"
oCompany.CompanyDB = "SBODemo_US"
oCompany.UserName = "manager"
oCompany.Password = "manager"
oCompany.Language = ln_English
Sample: Use Windows Auth. to SQL Server
oCompany.UseTrusted = True
Set AddOn identifier (new in 2004)
oCompany.AddOnIdentifier = Your Add-On Identifier
lRetCode = oCompany.connect
'Check Return Code
If lRetCode <> 0 Then
oCompany.GetLastError lErrCode, sErrMsg
End If
.applay any one code for coonection tp di api....
if u have any problem replay me ,
nd if u r satisfied than give me rewards point. -
SAP Business One SDK help center
Hi,
Can any one give me a copy of SAP Business One SDK help center.
thanksHi Toto,
You can download a copy of the latest 2007A help center from here:
SAP Business One - SAP Developer Network
It's the main news article at the moment.
Kind Regards,
Owen -
How to get the Save dialouge box in SAP Business One
Hi,
How to get the Save dialouge box in Button click event in SAP Business One.
Thanks,
Y.Hello,
You would like to display an SaveFileDialog box?
may follow this thread, and you can find a sourcecode in vb.net and c# inside (for open dialog, but it is the similar...)
Regards
János -
Hi,
well, i am pretty new in this SAP Business one thing, my company (Laboratorios Chontalpa in Mexico) recently has purchase the SAP Bussines One, and i need to interface my LIS (Laboratory Information System), right now i use xml to pass the information between my LIS and SAP, but i was reading a little bit about SDK DI API, and i would now if i can use this API to comunicate mi LIS directly to the DB of SAP, and eliminate the XML thing.
In my laboratory we have 60 remote office where there use my LIS, and i would like to comunicate that remote offices with my LIS using the DI API to comunicate with SAP, but i dont now if i need one licence pro of SAP per office to do that???
anyone can help me with this question
thanxs
regardsOne user license is necessary for one named user. With one licence cannot work 60 users, you need 60 licenses. Thats in case that the offices will work with B1 application.
When you will have some own application using DI Api, which will comunicate with LIS and is it no necessary to run SBO there, one license (user) for all offices is enough.
hope it helps
Petr -
How to script to Print a document from SAP Business One SDK
I have created a project using UDO, Form and User table using B1DE2005.
I wonder how can i program to print a document from my screen. something like Sales Order, where user can click on Print Preview button and it will print the sales order confirmation preview..
KCWhere do you want to execute this print/print preview? Inside Sales Order?
If that is the case use the print event, now if you have your own form and is separate of any of the SAP B1 system forms, then you will have to use the menu event and evaluate when they have press the print button (which you also probably will have to make sure that is active).
WB -
Crystal Reports background processing for SAP Business One 8.8
Dear Partners,
I have an SDK program developed in SAP Business One SDK that works in 2007, it calls crystal reports externally and can be executed as a background task using the windows schedular or from the command prompt.
My problem is it does not work under SAP Business One SDK 2008 PL18 with SQL Server 2008, Visual Studio 2008.
I receive the following message after this line in my code,"oReport.PrintToPrinter(CopyNo, False, 0, 0)".
'CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Logon failed.
Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
Unable to connect: incorrect log on parameters.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.
at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
at BGProductionRpt.ECR_Common.ECR_PrintReport(Int32 CopyNo) in C:\SDK Development\8.8\test\XX_Rpt\ECR_Common.vb:line 485'
My Question is what Crystal Reports libraries or other method should I be using ?
Crystal Reports 2008 for SAP Business One eg. 51038978.zip - downloaded from portal obviously dosn't contain the CrystalDecisions libraries.
Crystall Reports 2008 - cr2008_sp3_fullbuild, cr2008fp33.exe, cr2008fp33_mm, cr2008fp33_clickonce - also download from the portal, the cr2008_sp3_fullbuild does contain the crystal decisions libraries.
Finally other choices are crystal reports included with the visual studio 2008 and crystal reports full version direct from Business Objects.
I have tried different versions of crystal decision libraries- eg, 12.0110 or 12.02 but still no joy.
Also if I manage to get the report to fire what should the client be running eg, if they have the Crystal Reports 2008 for Business One do they also need to install the Crystal Reports Run time - cr2008fp33_clickonce.
Any help would be appreciated.
Thanks.Hi John
Since the SDK works in 2007 it will be using the OLD DB access method.
Change the Crystal report to use an OLE DB datasource rather than the SAP Business One data source.
Regards
Rob -
No SAP Business One Application was found
Hi,
I have created the add-on. When i try to start the add-on it is displaying following message.
"No SAP Business One Application was found". and i am not able to start the add-on.
I have used the connection as given below. I have also declared the connection in the command line.
In the development enveiroment it is working fine. So i have generated the ard file. When i try to start the ard file it is displaying the following message "No SAP Business One Application was found".
Please let me know how can solve this problem.
Private Sub SetApplication()
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
Try
sConnectionString = System.Convert.ToString(Environment.GetCommandLineArgs().GetValue(1))
Catch ex As Exception
System.Windows.Forms.MessageBox.Show("AddOn must start in SAP Business One")
System.Environment.Exit(0)
Throw ex
End Try
Try
SboGuiApi.Connect(sConnectionString)
Catch ex As Exception
System.Windows.Forms.MessageBox.Show("No SAP Business One Application was found")
System.Environment.Exit(0)
End Try
SboGuiApi.AddonIdentifier = "5645523035446576656C6F706D656E743A453038373933323333343581F0D8D8C45495472FC628EF425AD5AC2AEDC411"
SBO_Application = SboGuiApi.GetApplication(-1)
End SubDear Suresh,
You set Project->Properties->Debug->Configuration->in the drop down list selected all configurations. And in the Start option ->Command line "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056".
and
Your coding as below:
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
Dim StrConn
Try
SboGuiApi = New SAPbouiCOM.SboGuiApi
sConnectionString =System.Convert.ToString(Environment.GetCommandLineArgs().GetValue(1))
SboGuiApi.Connect(System.Convert.ToString(sConnectionString))
SBO_Application = SboGuiApi.GetApplication()
Catch
System.Windows.Forms.MessageBox.Show("No SAP Business One application not found")
System.Environment.Exit(0)
End Try
OR...................................................................................................................................................
You set Project->Properties->Debug->Configuration->in the drop down list selected all configurations. And in the Start option ->Command line "".
AND----
Your coding as below:
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
Dim StrConn
Try
SboGuiApi = New SAPbouiCOM.SboGuiApi
sConnectionString ="0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"
SboGuiApi.Connect(System.Convert.ToString(sConnectionString))
SBO_Application = SboGuiApi.GetApplication()
Catch
System.Windows.Forms.MessageBox.Show("No SAP Business One application not found")
System.Environment.Exit(0)
End Try -
Synchronisation of contacts from Outlook to SAP Business One
Dear all,
i have installed the Outlook Integration Add-On and want to synchronize Contacts from SAP Business One to Outlook and this worked fine. Now I also wanted to synchronize contacts from Outlook to SAP Business One (changes and new Contacts) and I activated the check box for this in the settings. But after I run the synchronisation nothing happened, even the contact folder has been selected in the Contacts - MS Outlook Criteria settings. Do I have to do something else?David,
The forum you have posted your question in is for questions related to the SAP Business One SDK. You may want to post your question in the SAP Business One Discussion Forum as your question is application related.
http://cpsn-channel.sap.com/businessoneforum
Eddy -
Print layout design - AR invoice - SAP business one 2005B
I designed AR invoiced in this,
1. I have invoiced for one line item,But in print preview the 1st Lineitem get repeated 2 times,Since i fetched taxes like Excise duty,cess & Sales tax in repetetive area ?
2. I fetched taxes like Excise duty,Cess,Sales tax directly from table(INV4),
How i can display Excise duty amount in words?
3. I know the table for customer TNGST & CST #
Which is CRD7,how to fetch the data's with reference to AR Invoice number?
Kindly advise me.
JeyakanthanJeyakanthan,
You have posted your question in the SAP Business One Integration Technology forum. Your question seems to be related to the SAP Business One SDK. You need to post your question in the SAP Business One SDK Discussion Forum.
Thank you,
Eddy -
How to integrate with java connnector in sap business one 2005
hai,
i have small doubt,
how to integrate with java connnector in sap business one 2005
thankig
anandAnand,
I am not sure of your exact question, but the SAP Business One SDK Help Center documentation contains all the information that you should need with respect to using the SAP Business One JCO connector. You should read this documentation.
Eddy -
How to create Add-On program for SAP Business One 2007
Hi,
When I create my Add-On into SBO I have some issues.
Which program do I use to create an Add-On into SBO?
Is there a URL or Path where I find the program?
I am using a 2003 program which is built by my colleague.
I assume SAP provide the Add-On program for SAP Business One 2007
Thank you,
RuneRune,
At a high level ...
1) VS2005
2) Compile your program
3) Generate and Add-on Identifier
4) Create a registration datafile
5) Create the setup program consisting of your .EXE and the .ARD file
6) Add-On is created and running in SBO
Again ... the details on deploying and packaging your add-on can be found in the SAP Business One SDK Help Center Documentation and the SDK eLearning.
Also, you can use B1DE using the Simple Installer or Professional Installer will do most of the work for you after you have coded the add-on.
Eddy
Edited by: Edward Neveux on Jan 30, 2008 9:11 PM -
Stock transfer Invoice - SAP business one 2005
From which table I can retreive Warehouse addressess
(i.e) (Consigner,Consignee address) in stock transfer invoice?
Expecting your forum members esteemed reply.
A.JeyakanthanJeyakanthan,
You have posted your question in the SAP Business One Integration Technology forum. Your question seems to be related to the SAP Business One SDK. You need to post your question in the SAP Business One SDK Discussion Forum.
Thank you,
Eddy -
Hi
I am new to Business One. Can anyone tell me the link where i can learn B1? I tried on goolge but could not find a proper link where i can learn to develop reports in B1.
regards,
ramakanthHi,
If u want to design reports then Standard SQL and Crystals would do. And u can know about the Table structures from the DB reference help file which can be found at the following location.
C:\Program Files\SAP\SAP Business One SDK\Help
Hope it helps,
Vasu Natari. -
Not able to get Form 16 A (SAP Business One 8.8 Version)
Hi all,
I am not able to get Form 16 A, after giving necessary information in Form 16 A Selection criteria screen (after posting Outgoing payment for vendor and Govt authority), then system opens another window u201CForm 16 A reportu201D and clicked u201Cgenerate certificate nou201D , but not able to view form 16A.
system is throwing a message "No certificate number marked to any invoice included in this form",
where to mark the certificate number in the invioice?
In BP master under accounting , tax subtab, for Subject to withholding tas there we have a feild for certificate no, update this feild also the same system mesaage is popping up
Is there any other process to view?
Am working on SAP Business One 8.8 (8.80.229) SP: 00 PL: 10
Can anyone help how to get Form 16 A
Thanks
Kumar
Edited by: kumar on Jun 29, 2010 1:11 PM
Edited by: kumar on Jun 29, 2010 1:12 PMHello Dear,
After posting outgoing payment and payment of TDS on TDS account,Update the challan entries.
You can get the update challan entries form under Financial --CXS-TDS.
After that open the Form 16 A form you will get the report.
Thanks,
neetu
Maybe you are looking for
-
Environment: 1 WFE on W2K8Ent x64 SP2 | 1 App Server on W2K8 Standard x64 SP2 | 1 Dedicated SQL Server 2008 R2 SharePoint 2010 Enterprise Edition I recently applied SP1 and the October 2011 CU (Server updates, not foundation) on both the WFE and th
-
Flash Player not working on website
I have been getting complaints that my flash videos on http://www.lakefishingtechniques.com are not working right on safari moble. How can I correct this?
-
Obiee 11g: Including derived columns into column selector
Hi All, The attributes appearing in the left pane while editing an answer can be included in a column selector. But in the UI the is there any way to specify the columns (measures) which are created using the existing columns based on some formula. (
-
AD users losing admin rights when working offline.
We have recently started using AD accounts on our Macs but a critical problem has presented itself. Under 'Allow administration by' we are using a domain group called 'Domain Users' and this works fine when users are connected to our corporate networ
-
Just updated, library missing. Article question
Hi. I just had the issue where you upgrade, and the library goes missing. I read the article for troubleshooting this, but it didn't work. I was a tad confused about dragging the library to the desktop, then finding the previous library, and supposed