Initilising database ,udo registration during add on connection
Hello Expert
i created addon on vb.net.now i want to create global database MEANS i want create table ,registration UDO,checking UDO registration during connection of addon with sap. how can i do sir
Hi vmaskey,
Download this sample.
Inside the archive you'll find a function and a xml file.
Just add the function to your code. The XML file indicates the object type (User Table, User Field or User Object) and the database fields where they will be written. Just change the properties to your needs.
I don't provide the XML samples for adding a User Permission Tree and User Keys because I don't have any example on this machine.
Call the function like this
LoadBDFromXML(oCompany, oApplication, "FULL_DIRECTORY_PATH_TO_XML_FILE", "FILE_NAME.xml")
Hope it helps,
Best regards,
Vítor Vieira
Similar Messages
-
How do I prevent a database from appearing in Add-In app/db connection list
Apparently this is more difficult then I first thought.
I have an app "App1" which contains 2 databases "DB1" and "DB2"
I have group Read access defined for "App1" but I only want them to see "DB1"
I created a filter for "App1", "DB2" where access is set to None on @Idesendents(Dimx) (I tried this for all dimensions)
I then provisioned the group "DB2" to this filter.
"DB2" still apears in add-in connection dialog.
Any ideas anyone?It's because you are doing this in Shared Services mode.
Unlike "classic" Essbase security, in Shared Services mode, if you give users (or groups) access to one database under the application, you give them access to all databases under the application. There's nothing, unfortunately, you can do about it.
I guess you could dump Shared Services but that would be a bit extreme.
Embrace the one app, one db mindset and all is well. And yes, that is not so great for performance purposes with @XREF (although to be honest I can't remember how bad it actually is -- it as been a while).
Regards,
Cameron Lackpour
P.S. Try doing that assign in MaxL and you'll see a very specific warning from Essbase about the above.
Edited by: CL on Dec 17, 2012 12:57 PM
Can't spell -
Add-on connection error (-105) Access to company database is not permitted
Good day,
One of our clients have upgraded to 8.8 PL 11 (from 2007A PL 41).
Somehow the SBO-Common became corrupt and SAP suggested that we reinstall the SBO-Common.
The problem is that now the add-on (developed by us) is not connecting.
The add-on connects to UI API and DI API, but when trying to connect to the company with SAPbobsCOM.Company, an error is returned (error code: -105).
I am also confused about what the error actually is, bacause according to the SDK Help file, error -105 is "The observer.dll init has failed.", but the error message returned by the add-on is "Access to company database is not permitted; log on to SAP Business One and sign end user license agreement (EULA)"
I have tried resigning the EULA, but no success.
I have also tried deleting the content of the %temp%\SM_OBS_DLL, as suggested in another post.
The version of the OBServer.dll is 8.80.229.0 - I believe that this is the correct version for 8.8 PL 11?
Please advise.
Kind regards,
RikardGood day all,
My apologies.
I have discovered what the problem was - and it was me.
I did not realise that the connection I was making was not to the same database that I was connected to.
Therefore, I had to log onto the other database and sign the EULA.
The error explained exactly what I needed to do, but I wasn't paying attention.
Regards,
Rikard -
Can't find a self created group during add group in reporting
The Operations manager that i am using si 2012. First let me describe what I have done.
In "Authoring", I have created a new group and added two object which is a Windows server 2012 into the group. Then, I tried to use the Windows Server 2012 report template in "Reporting" to create a performance report. After opened the
report template, there is an "Add Group" button to choose a group of server which need to run the performance report. I have tried to search that created group using its name with or without the % wildcard. Unfortunately, I failed to search my group.
I have tried to use just only the % wildcard to retrieve all entries. I still failed to find my group from the list.
The next thing I did is connect to the Operation manager's database, that is the OperationManagerDW database. From my understanding, all entries of object should be stored in the dbo.managedentity table. I have tried to look up the table which display name
is my create group but still fail. My created group does not have an entry in the table.
So, my question is what I have missed to make my group searchable in creating report during add group?
Thanks a lot.Dear Xin Guo,
I have tried your SQL statement and the return is same as what I have experienced when using the Add Group function when running report. That is, my custom group created in the Authoring cannot be seen.
I have also checked the OM log but no error being noticed. It seems to be the tables which store the Group created in Authoring is not synchronize with the entries in the ManagedEntity tables.
It this a known behavior or my process on creating a custom group in Authoring is not correct? Actually, I followed the steps as described in Microsoft website. The steps is very straight forward and it is not easy
miss anything.
Looking forward for your further advise in working out on this. Since I want to generate reports for a group of computers by using the custom group instead of select all computers one by one every time when I run a
report.
Thanks a lot in advance. -
Excel Add-in connections not refreshed
I am using Essbase 9.3.1.4. I have created a new planning application and set up the security / provisioning in shared services and syncronized to EAS. The security for the user works correctly in the planning application but when we try to connect via the Excel Add-in, the new planning application does not appear on list of available applications/database in the connection box. It does list existing planning applications available to the user, but not the new one. Does anyone know in v9.3.1.4 what file the Essbase add-in connection box is reading to present the available application/databases to the user for selection? For some reason it seems this file is either not being updated or it is ready an old version of the file. We have the same issue when using SmartView ad-hoc, any non-admin userid cannot access this new application. SmartView Planning does work. Any suggestions would be appreciated. Thanks.
A quick fix would be to create a shortcut to ESSEXCLN.XLL in the Excel startup folder (varies by install, usually c:\program files\microsoft office\office\xlstart\)Jeff McAhren<br>Dallas, TX
-
Problem with UDO Registration through SDK (Default Form Option)
Hello All,
I am trying to create a UDO Registration through SDK which is done easily but the udo contain default form option.
But after creating the udo , the defualt form option is clicked in the wizard but the system is not showing that default form in SAP.
Please suggest if i am missing something for making this udo a default form .
Code which i have written is following :-
Dim oUserObjectMD1 As SAPbobsCOM.UserObjectsMD
oUserObjectMD1 = Class_Law_Main.ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
If oUserObjectMD1.GetByKey("OSL_LawStage_Master") = False Then
oUserObjectMD1.CanCancel = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.CanClose = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD1.FindColumns.ColumnAlias = "Code"
oUserObjectMD1.FindColumns.ColumnDescription = "Code"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FindColumns.ColumnAlias = "Name"
oUserObjectMD1.FindColumns.ColumnDescription = "Name"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FindColumns.ColumnAlias = "DocEntry"
oUserObjectMD1.FindColumns.ColumnDescription = "DocEntry"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FindColumns.ColumnAlias = "U_StgName"
oUserObjectMD1.FindColumns.ColumnDescription = "Stage Description"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FindColumns.ColumnAlias = "U_StgSeq"
oUserObjectMD1.FindColumns.ColumnDescription = "Stage Sequence"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FormColumns.FormColumnAlias = "Code"
oUserObjectMD1.FormColumns.FormColumnDescription = "Code"
oUserObjectMD1.FormColumns.Add()
oUserObjectMD1.FormColumns.FormColumnAlias = "U_StgName"
oUserObjectMD1.FormColumns.FormColumnDescription = "Stage Description"
oUserObjectMD1.FormColumns.Add()
oUserObjectMD1.FormColumns.FormColumnAlias = "U_StgSeq"
oUserObjectMD1.FormColumns.FormColumnDescription = "Stage Sequence"
oUserObjectMD1.FormColumns.Add()
oUserObjectMD1.CanDelete = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD1.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tNO
'oUserObjectMD1.ChildTables.TableName =
oUserObjectMD1.Code = "OSL_LawStage_Master"
oUserObjectMD1.ManageSeries = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.Name = "Law Stages Master"
oUserObjectMD1.ObjectType = SAPbobsCOM.BoUDOObjType.boud_MasterData
oUserObjectMD1.TableName = "OSL_OLSG"
lRetCode = oUserObjectMD1.Add()
'// check for errors in the process
If lRetCode <> 0 Then
Class_Law_Main.ocompany.GetLastError(lRetCode, sErrMsg)
MsgBox(sErrMsg)
End If
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserObjectMD1)
oUserObjectMD1 = NothingHi Robert,
I recommend you do your changes in your file/XML file before you load your form. It's much quicker and easier this way
e.g
//make your changes in your xml form
SBO_Application.LoadBatchActions(ref YourXMLFileString);
Cheers, Lita -
Hi All...
I installes an add-on to SAP Business One (I created that ad-on using C# and created .ard file using Add-On Registration Data Generater)
and I got the system message "Add-on connection Time Out" plz help me to solve this matter.
regards
PadmaWhile creating final ard file dont use any connetion string .
1) REmove connection string.
2) Rebuild application.
3) Create ARD file.
Use below code for any ref.
Private Sub SetApplication()
'// Use an SboGuiApi object to establish connection
'// with the SAP Business One application and return 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)
sConnectionString = Environment.GetCommandLineArgs.GetValue(1) '
'sConnectionString = "5645523035496D706C656D656E746174696F6E3A59313931303035313531383699469FA92C3C9A964A219C5862952A90D911E9" 'Environment.GetCommandLineArgs.GetValue(1)'
Try
SboGuiApi.Connect(sConnectionString)
'// connect to a running SBO Application
'// get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
Catch ex As Exception
MsgBox("Make Sure That SAP Business One Application is running!!! ", MsgBoxStyle.Information)
End
End Try
SBO_Application.StatusBar.SetText("DI is Connecting now", SAPbouiCOM.BoMessageTime.bmt_Long, SAPbouiCOM.BoStatusBarMessageType.smt_Warning)
End Sub -
Livecache database instance is not able to connect from DBMGUI
Hello,
We are facing very critical problem. Livecache database instance is not able to connect from DBMGUI .
DB instace is down currently, i checked X_server is running. when i am trying to conect using DBMGUi its going on hang status, same way if i am trying to start using LC10, its going on hang..
Could anybody please help me out if faced this problem.
Earlier it was working fine. But now It 's not able to connect through DBM tool.
Any help would of great help..
Thanks.
Dinesh
please find xserver*.prt files as attached
Date Time PID Typ MsgID Label Message-Text
2009-06-12 03:10:43 2732 12902 XSERVER started, 'X64/SUN 7.6.04 Build 015-123-189-221'
2009-06-12 03:10:43 2732 12904 XSERVER Service port is 7210
2009-06-12 03:10:43 2732 12922 ENVIRON Command line arguments
2009-06-12 03:10:43 2732 12924 ENVIRON [1] start
2009-06-12 03:10:43 2732 12923 ENVIRON Command line argument dump completed
2009-06-12 03:10:43 2732 12898 ENVIRON Resource limit dump start
2009-06-12 03:10:43 2732 12898 ENVIRON Started by user id 58007 group id 1670
2009-06-12 03:10:43 2732 12898 ENVIRON Current user id 58007 effective id 58007
2009-06-12 03:10:43 2732 12898 ENVIRON Current group id 1670 effective id 1670
2009-06-12 03:10:43 2732 12898 ENVIRON cpu time unlimited
2009-06-12 03:10:43 2732 12898 ENVIRON number of processes 29995
2009-06-12 03:10:43 2732 12898 ENVIRON number of open files 2048
2009-06-12 03:10:43 2732 12898 ENVIRON core size unlimited
2009-06-12 03:10:43 2732 12898 ENVIRON file size unlimited
2009-06-12 03:10:43 2732 12898 ENVIRON heap memory size unlimited
2009-06-12 03:10:43 2732 12898 ENVIRON stack memory size 8192 KBytes
2009-06-12 03:10:43 2732 12898 ENVIRON virtual memory size unlimited
2009-06-12 03:10:43 2732 12898 ENVIRON Resource limit dump completed
2009-06-12 03:10:43 2732 12898 ENVIRON Environment dump start
2009-06-12 03:10:43 2732 12898 ENVIRON PATH=/usr/xpg4/bin:/usr/ccs/bin:/usr/bin
2009-06-12 03:10:43 2732 12898 ENVIRON :/opt/SUNWspro/bin
2009-06-12 03:10:43 2732 12898 ENVIRON IFS=
2009-06-12 03:10:43 0 0
2009-06-12 03:10:43 2732 12898 ENVIRON TZ=NZ
2009-06-12 03:10:43 2732 12898 ENVIRON TMP=/var/tmp
2009-06-12 03:10:43 2732 12898 ENVIRON TMPDIR=/var/tmp
2009-06-12 03:10:43 2732 12898 ENVIRON USER=sdb
2009-06-12 03:10:43 2732 12898 ENVIRON LOGNAME=sdb
2009-06-12 03:10:43 2732 12898 ENVIRON DBROOT=/sapdb/programs
2009-06-12 03:10:43 2732 12898 ENVIRON LD_LIBRARY_PATH=/sapdb/programs/lib
2009-06-12 03:10:43 2732 12898 ENVIRON Environment dump completed
end of startup -
2009-06-12 03:10:44 2732 WNG 12458 XSERVER NISSL Utility init: CDKLoadSAPCryptModule: 51
2009-06-12 07:54:23 2732 ERR 11379 CONNECT Error getting TCP/IP host by address: '10.115.104.42.'
2009-06-12 08:47:00 17388 ERR 11925 XSERVER Send packet, Ref:9 - connection closed (send:EPIPE)
current write position -Hi Ivan,
thanks for the reply, i used the commands suggested by you.
nzlsfn40:ltradm 43% pwd
/sapdb/data/wrk
nzlsfn40:ltradm 44% dbmcli -d LTR -u control,control db_state
OK
State
OFFLINE
nzlsfn40:ltradm 45% dbmcli -d LTR -u control,control db_admin
OK
nzlsfn40:ltradm 46% nzlsfn40:ltradm 46%
nzlsfn40:ltradm 46% dbmcli -d LTR -u control,control db_online
db_online commands is running since long and in knldiag. i am continuously watching logs as below, can you have any idea
Dinesh
logs :-
2009-06-12 10:58:34 137 12929 TASKING Task T114 started
2009-06-12 10:58:34 137 11007 COMMUNIC wait for connection T114
2009-06-12 10:58:34 137 11561 COMMUNIC Connected T114 local 3966
2009-06-12 10:58:34 137 11509 COMMUNIC Connection broken by appl state 10 T114
2009-06-12 10:58:34 137 WNG 11824 COMMUNIC Releasing T114 connection aborted
2009-06-12 10:58:34 137 12827 COMMUNIC wait for connection T114
2009-06-12 10:58:35 11 11561 COMMUNIC Connecting T115 local 3966
2009-06-12 10:58:35 138 12929 TASKING Task T115 started
2009-06-12 10:58:35 138 11007 COMMUNIC wait for connection T115
2009-06-12 10:58:35 138 11561 COMMUNIC Connected T115 local 3966
2009-06-12 10:58:35 138 11509 COMMUNIC Connection broken by appl state 10 T115
2009-06-12 10:58:35 138 WNG 11824 COMMUNIC Releasing T115 connection aborted
2009-06-12 10:58:35 138 12827 COMMUNIC wait for connection T115
2009-06-12 10:58:36 11 11561 COMMUNIC Connecting T116 local 3966
2009-06-12 10:58:36 139 12929 TASKING Task T116 started
2009-06-12 10:58:36 139 11007 COMMUNIC wait for connection T116
2009-06-12 10:58:36 139 11561 COMMUNIC Connected T116 local 3966
2009-06-12 10:58:36 139 11509 COMMUNIC Connection broken by appl state 10 T116
2009-06-12 10:58:36 139 WNG 11824 COMMUNIC Releasing T116 connection aborted
2009-06-12 10:58:36 139 12827 COMMUNIC wait for connection T116 -
Authentication error when creating EPM Add-in connection with SAP BO Enterprise connection type
Hello, Experts,
I have a problem with creation of EPM Add-in connection when SAP BusinessObjects Enterprise connection type is selected.
An error message is "Error while communicating with the server. Framework message: Authorization failed."
Here are the steps that were implemented and how this issue was reproduced:
SAP BusinessObjects Planning and Consolidation 10.0 SP12 for Microsoft was installed and configured.
Integration between SAP BPC and SAP BusinessObjects BI 4.1 SP02 was implemented. SAP BO users can successfully connect to SAP BPC system.
EPM connector was successfully installed and deployed in SAP BusinessObjects BI server.
BPC ODBO 2.0 SP04 64BIT was installed in SAP BusinessObjects server.
EPM connection was successfully created in SAP BusinessObjects CMC.
EPM Add-in and BPC ODBO 2.0 SP04 32BIT was installed in another computer (let's call it CLIENT) which has MS Office 2007 32BIT installed.
From CLIENT computer we have launched Excel manually and successfully created BPC connection with Connection Type - Local.
Then we have logged into BI Launch Pad and launched New / EPM document (Excel). Excel has started.
In EPM Add-in we have pressed Logon.
In connection window selected SAP BusinessObjects Enterprise connection type.
An error "Error while communicating with the server. Framework message: Authorization failed." appears.
Before this error appears we are not getting any window where we could select EPM connection (created in CMC) nor the possibility to enter username or password.
Looking forward you valuable comments and suggestions.
Thank you in advance.
Donatas BudrysDear, Roberto,
Our user has Full Access to all BPC tasks and it is administrator in BI system.
Also we can successfully connect with the same user using Connection type "Local".
We had done some investigation and in the BPC SQL Server trace log we can catch the following message when an error occurs:
==============[System Error Tracing]==============
[System Name] : BPCXMLAService [Message Type] : ErrorMessage [Job Name] : ValidateUser [DateTime] : 04/23/2014 10:58:06 [UserId] : [Exception] DetailMsg : {System.Exception: Invalid user at SAP.BPC.Services.Webservice.XMLAService.XMLAService.ValidateUser()} ==============[System Error Tracing End ]==============
It is very interesting that after the EPM workbook is launched via BI Launch Pad till an error occurs we are NOT provided with possibility to enter any username and password. So the EPM add-in should use the same user which was logged into BI Launch Pad - in our case the user with administrative rights both in BI Launch Pad and BPC systems. Am I missing anything?
Looking forward your feedback.
Thank you in advance.
Best regards,
Donatas -
When starting the Add-on: Connection timed out issue
When starting the Add-on: Connection timed out issue
Hi,
We have a client in SAP 2005 PL 44.
I built the add-on for them using simple installer wizard ( I tried advanced set-up also).
When starting the add-on, I get the message 'Connection Timed Out'.
Add-on status is failed.
But the add-on is actually connected. i.e, The functionality associated with the add-on is working fine.
I had SAP 2007 before and un/reinstalled SAP 2005 in order to connect with this client.
I had built the same add-on in a similar way for the same client for lot many times in the past, but I never got this issue.
I tried the following:
1) Delete SM_OBS_DLL and un/reinstall DI API
2) un/reinstall B1DE
Always I'm getting this error.
Please let me know your inputs.
Thanks.
GeethaHi Geetha,
The timeout issue has been discussed quite a bit already on this forum. Please do a search or look at these threads:
Timed Out Error with ADDON
Addon Connection Timed out
Regards
Aravind -
Access a database that has limited no of connections.
Hi,
We are having a (client) database from where the data has be fetched and displayed on a dashboard.
To minimize the impact on this client database, the user account will have a limited number(say, 5) of connections allowed. But the no of user who access the
dashboard will be more than 5.
We want to make sure that we have put in place proper connection handling so things do not go "amuck".
Can anyone please suggest what is the best way to achieve this?
As of now we are thinking to have a TEMP tablespace and populate the client database.
Database : Oracle 9i
Dashboard is implemented in Java.
Thanks,
Hanuuser11365763 wrote:
Hi,
Thank you for the help
The data in the database will be changed on monthly basis. The total number of records in the table as of now is 6980 and it can grow maximum 10K.
Is it a better idea to cache all the records... storing in memory or flat file on the machine(where the program runs).
Please suggest.
thanks
HanuMax of 10k records? Good grief, I've got a bigger database than that running on my laptop! What empirical evidence do you have that more than 5 connections has a negative impact? In the Oracle world, a database that small, with that few connections isn't even a pimple on a flea's butt in the Oracle world.
I once had a vendor trying to sell my company a reporting application and they said pretty much the same as you. They said we could host the live data on Oracle, but for performance reasons they recommended copying it to a SQLServer for reporting "because Oracle has trouble with more than 5 concurrent connections". Needless to say we showed them the door. Why would we want to buy software from a vendor with such abysmal ignorance?
If you do have a performance problem, then I dare say your fundamental database and application design is in serious need of re-work. -
SAP 8.8 Add-On Connection Timed Out....
Hi Experts,
I am new to SAP 8.8.I Created a Customized Add-On by using B1DESetup_2.1 Specifically give for the SAP 8.8. I Installed the AddOn in the Same PC(Machine) where i Developed the Customization. It Installs fine...But when i Start the Add-On it Showing Add-On Connection TimeOut Message...(But my Code Works fine with out the AddOn Identifier....)
Thing that i need to Share....
1) I Doesnt give any Add-On Identifier at the time of connecting with the UI....
2) Do we need any Add-On Identifier in before connecting to the UI API....
//SboGuiApi.AddonIdentifier = "";
3) I need a claritiy that in the 2007B/2005B we created the Add-On but we doest added any Addon Identifier....at that time addon Works Fine...
4) How can i Get the Add-On Identifier...(Should i need to get it from the SAP)
5)Because of not Giving the Addon Identifier...did i getting the Add-On Connection Timed Out....while starting the Add-On...
Thanks in Advance,
MadhuSudhana Rao.GHi,
Please review the SAP Note 912572 which explains in what cases this error you reported occurs and how to solve the issue.
Wish it helps you.
Best regards,
Lucy Shen -
2004 Registering Add On Connection Timed Out
Hi I am having a bit of trouble getting an addon to register and load successfully in SBO 2004...
I can get the Add On to Install properly, however when I load it, I get the error :
Add-on connection timed out
This occurs even though the add on has successfully loaded in the background and is running. In the Add On Manager the status of the add on is set to Failed...
I tried setting the AddonIdentifier string before connecting in my code using the Add-on Identifier Generator (Development and Implementation strings but these did not help)
The Helloworld sample was a good help getting thus far, but even when try to install that as an add it disconnects straight away.
Any help much appreciated!Hi Frank,
I think the problem was the fact that I was hardcoding the connection string. After I changed it to accept it through the command arguments that the SAP application passes in it seems to connect fine - below is the procedure that I use to connect, I have left the commented lines in to show you how i was trying to connect. I am still unsure as to when to use the AddonIdentifier property however.
I have the add-on working 85% well now, but have posted again at SAP Business One SDK any input on this post would be very appreciated!
Thanks,
Daniel
private bool SingleSignOn()
SAPbouiCOM.SboGuiApi objGui = new SAPbouiCOM.SboGuiApi();
objCompany = new SAPbobsCOM.Company();
string strCookie;
string strConnection;
long lngConnectResult;
try
//objGui.AddonIdentifier = "4CC8B8ACE0273A61489738C94047855DE8768CDD37F64D4F11E82759A542BD515D5A6E4F50A19B939FBB0FA844FA35C7B604E771";
//objGui.Connect("0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056");
objGui.Connect(Environment.GetCommandLineArgs().GetValue(1).ToString());
objApplication = objGui.GetApplication(-1);
strCookie = objCompany.GetContextCookie();
strConnection = objApplication.Company.GetConnectionContext(strCookie);
if(objCompany.Connected)
objCompany.Disconnect();
lngConnectResult = objCompany.SetSboLoginContext(strConnection);
if(lngConnectResult != 0)
System.Windows.Forms.MessageBox.Show("Connection failed, make sure SAP Business One is running and you are logged into a Company");
return false;
lngConnectResult = objCompany.Connect();
catch
System.Windows.Forms.MessageBox.Show("Connection failed, make sure SAP Business One is running and you are logged into a Company");
return false;
return true; -
SP01: Add-on connection timed out.
I have upgraded an existing add-on to SP01. It runs fine in development mode and it installs correctly using and installer and Add-on Administration.
When it tries to execute in production mode it gives the error: "Add-on connection timed out" after only about 12 seconds.
I have checked the sapbobscom2005.dll and it is the correct version and special build.
Any suggestions on how to resolve this are greatly appreciated.
MelHi Mel,
This behavior is not new in SP01 to my best knowledge!
I remember having found the same behavior back in 2004...
What you need to do is to first connect to UI API + afterwards eventually do some more initializations!
HTH,
Frank -
what is the meaning of Add on connection timed out error and how to solve this error?
Edited by: Neetu Dhami on May 30, 2008 5:36 PMDear
Please review Note 912572 which explains in what cases
this error you reported occurs and how to solve the issue.
please update the Connection String in your addon
code as explained in the Note and test the connection again.
if this does not help, please check if the issue occurs on particular workstation or all. and if the error occurs, try again, will the issue gone?
Best Regards,
xiaodan an
sap business one forum team
Maybe you are looking for
-
Is there any way to achieve dynamic end point in SOA 11g (non-AIA process)
Hi, We are using SOA Suite 11.1.1.5.0 and we are not using AIA product..Is there any mechanism to achieve dynamic end point?If so can you please tell me how we can achieve this. Thanks in advance.
-
PDF file has features that are not supported?!?
Hi All, I'm using Adobe Acrobat 9 Pro to create a FORM and then I submit the form to Acrobat.com. The problem is that when users follow the emailed link to acrobat.com, they can't enter data into the form on the website. They have to download it into
-
Hi Friends, When I go to a special GL account ,I need to view the vendor names listed against each line item. Is this possible. Please help. regards, Rajesh
-
I was having with internet and web connections just stopping or freezing after downloading firefox4. I tried following your dirrections that said to turn it off then back on. It turned off but would not go back on. I couldn't connect to anything so w
-
I want to define my business processes in SOLAR01. I have an implementation project with the logical component to a ERP 4.6C system attached. In SOLAR01 I go to the "Business Scenario" and then the "structure" tab. I use the field help to look for th