cancel
Showing results for 
Search instead for 
Did you mean: 

company.connect -222 errorcode meaning

Former Member
0 Kudos

Hi,

I'm trying to connect using the database api however when i try a vCmp.connect i get the following error code ( -222 ) returned. Can anyone please tell me what this means as it is not documented at all. Also I have tried the getLastError method with no luck.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Just a quick note i have managed to connect to a new database i have created. It seems to be a problem when i try and connect to one of the sample databases. Can anyone explain why this is happening?

Thanks.

Former Member
0 Kudos

Hi!

You can use the GetLastErrorDescription method of the company object to see why the connection is failing.

By the way, when you log into that databases via standard sbo client, does it show you any strange message? I mean, maybe the posting period has expired and thats why you can't log into the database (it has happened to me )

Hope it helps;

Jon Arranz

Former Member
0 Kudos

I'm not sure i have user the getlasterrordescription but this just returns "-" which is not very helpful. (im running the SBODemo_UK database)

Ok. Going off your second suggestion when i log into the database through sap i get get a window called "Period - Selection Criteria". The latest period here is

running from 01/01/2006 to 31/12/2006. As this is out of date could this be the problem? if so can you tell me how to add a new period to the database?

Thanks

Former Member
0 Kudos

Hi!

That's it! You have to create a new period, and set it as the default one.

You can create new periods in the General Settings form, after that, don't forget to set it as the current one!

When it is created, you should not have more problems logging into the database.

Hope it helps!

Jon Arranz

Former Member
0 Kudos

Thats great you've solved my problem.

After creating the new posting period its connecting to the SBODemo_UK database.

Answers (0)