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

ADBC and NULL

Former Member
0 Likes
897

Hi,

I try to insert into extarnal database (Oracle database) a field with null value from ABAP with ADBC

INSERT INTO TABLE (COLUMN1, COLUMN2, COLUMN3, ..) VALUES (?, ?, ?, ...). I want that second column was a null value in the external database.

Anyone know how can I do that??

Hi,

I try to insert into extarnal database (Oracle database) a field with null value from ABAP with ADBC

INSERT INTO TABLE (COLUMN1, COLUMN2, COLUMN3, ..) VALUES (?, ?, ?, ...). I want that second column was a null value in the external database.

Anyone know how can I do that??

2 REPLIES 2
Read only

Former Member
0 Likes
593

Hello,

I found the solution, in clas CL_SQL_STATEMENT, method SET_PARAM, parameter IND_REF = -1 --> Null in the external Database

Read only

abo
Active Contributor
0 Likes
593

For the record, -1 is not even type-compatible with the formal parameter. (SAP_BASIS SAPKB74003)