I entered a new database connection in transaction DBCO to another sap system. and testet it successfully with the report ADBC_TEST_CONNECTION.
How do I make use of this connection in a CDS view? Is it even possible? I thought it would work with table functions but didn't get it to work.
Alternatively I tried to use it within an abap programm with no success:
  data: lt_vbak(20).
  exec sql.
    CONNECT TO 'SECOND_DB'
  endexec.
  exec sql.
    SELECT vbeln into :lt_vbak FROM vbak where mandt = 500
  endexec.
  exec sql.
    DISCONNECT :'SECOND_DB'
  endexec.
It says that the table vbak does not exist.
We are currently on SAP ECC with ABAP 7.50.
Any suggestions? Thanks
 
     
     
    