Quantcast
Channel: SCN : Popular Discussions - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 1302

ERRORS in connect to Sybase DB in ABAP

$
0
0

Dear experts:

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

dbco.JPG

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:


TYPES:

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.

 

     EXEC SQL PERFORMING test.

       SELECT *

         INTO :wa-costcenterno

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

         WHERE SAPID = 'I004218'.

     endexec.

 

     FORM test.

       WRITE:/ wa-costcenterno.

       APPEND WA to itab.

       CLEAR itab.

       ENDFORM.


the error is this:

error.JPG



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.

st04.JPG

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!!


Regards

Cao



Viewing all articles
Browse latest Browse all 1302

Trending Articles