Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ERRORS in connect to Sybase DB in ABAP

Dear experts:

  I need to connect to a sybase database for development,so firstly I create it in "DBCO" as below shows:

my format of conn. info is:SYBASE_DBNAME=<name> SYBASE_DBOWNER=dbo SYBASE_SERVER=<ip> SYBASE_PORT=<port>

and I write these codes to make a test and get below error:


BEGIN OF itob,

   costcenterno LIKE ZIT_CC_USER-COSTCENTERNO, "ZIT_CC_USER is a DB table in my abap system.

   end of itob.

DATA: itab    TYPE TABLE OF itob,

       wa      TYPE itob.


       SELECT *

         INTO :wa-costcenterno

         FROM ZIT_CC_NEWUSER@SYBASE-TEST   "ZIT_CC_NEWUSER is the database in Sybase

         WHERE SAPID = 'I004218'.


     FORM test.

       WRITE:/ wa-costcenterno.

       APPEND WA to itab.

       CLEAR itab.


the error is this:

I cheak it in ST04 and it says:-- ERROR Database connection SYBASE-TEST: SQL error 4002 [ASE Error SQL4002:28000]SQL Anywhere Error -103: Invalid user ID or password.

BUT I cheak my Sybase DB's username&password and find no matters with it!

What should I do for this scenario?

Thanks a lot!!



Former Member

Hello Zhiyu,

As mentioned previously in How to db connect from SAP to SYBASE SQL anywhere 16 remotely, SQL Anywhere isn't currently a supported target for DBCO (dbacockpit) connections.


The specific reason for it failing to log in in this context is that you're currently trying the ASE ODBC driver ("SQL error 4002 [ASE Error SQL4002:28000]") with a SQL Anywhere database server ("SQL Anywhere Error -103: Invalid user ID or password").


Jeff Albion

SAP Active Global Support

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question