Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dblink table fields

Former Member
0 Likes
666

Hello Fella's,

I'm trying to make a program capable to bring the fields description of a table locate on a legacy system. The connection between sap and other system is done through a dblink. The other system is a oracle.

Look what i'm trying.


  DATA: vl_string TYPE char1024.

  CLEAR: vl_string.

  EXEC SQL PERFORMING APPEND_DATA.
    select *
     from USER_TAB_COLUMNS@DBLINK_63
     Into :vl_string
     WHERE table_name = :p_tabela
  ENDEXEC.

*&---------------------------------------------------------------------*
*&      Form  append_data
*&---------------------------------------------------------------------*
FORM append_data.
  WRITE: / vl_string.
  CLEAR: vl_string.
ENDFORM.                    "append_data

4 REPLIES 4
Read only

Former Member
0 Likes
601

Maybe wasn't clear meu explanation, so I to help, what I really wanna is use the oracle command DESC and presents the result in ABAP report program.

Thx

Read only

SureshRa
Active Participant
0 Likes
601

Hi Bruno,

You have posted a question thread, but I couldn't find any question. Can you please let me know what your problem is?

Cheers

Suresh

Read only

Former Member
0 Likes
601

It's a exactly a problem. I just wanna is use the oracle command DESC and presents the result in ABAP report program.

So, I tried the code that I already shown, but, it's not working.

Thx anyway.

Read only

Former Member
0 Likes
601
Looks like you have not established connection between SAP and your Oracle databse.