Skip to Content

runtime error when try to write in a external Oracle Database

Hi Abapers,

We are tryng to make some updates to external oracle databases. We are in a new project and we are new in theses issues so we are asking for your help.

We have the following source code

....

CONCATENATE 'insert into' c_tabname INTO teste1 SEPARATED BY space.

MOVE: 'VALUES' to teste2,

'(6, 4, 5, 99, TO_DATE(20020102,YYYY.MM.DD), 3, 5)' to teste3.

CONCATENATE teste1 teste2 teste3 INTO l_stmt SEPARATED BY space.

l_prepstmt_ref = p_con_ref->prepare_statement( l_stmt ).

....

We get teh following error

con=2(10.0.99.136:1521/SFA): ORA-01036: illegal variable name/number

the table has, in the external database the following structure

"ACA_CODEMP" "NUMBER(5,0)”

"ACA_CODDEL" "NUMBER(5,0)”

"ACA_CODART" "VARCHAR2(15 BYTE)"

"ACA_CODSEG" "VARCHAR2(2 BYTE)”

"ACA_FECHAINI" "DATE”

"ACA_PRECIO" "NUMBER(8,4)”

"ACA_FECHFIN" "DATE”

Can you give some information about what we are doing wrong?

Thank you and best regards

João Fernandes


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 26, 2013 at 09:53 PM

    Hi,

    First check the DB connection if that is defined in ST04. Check the demo program DEMO_ADBC_QUERY should give you a good idea on whats missing in the statement. The idea is the Query should be exactly same as per Oracle Syntax and supplied as string.

    Cheers,

    Arindam

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.