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

pbm in EXEC SQL ..ENDEXEC native SQL not working in 4.6c

Former Member
0 Likes
393

Hello all

I have a situation...I needed to create a FM 'GET_DB_ORA_RELEASE' which is not present in 4.6c but its there in ECC6.

So i copied the code in FM from ECC6 to 4.6c as it is .. using Access key... But when i execute the same ., the native sql query used is not getting executed in 4.6C ...because of which FM is not working.

Code is as below

PERFORM db_connect USING con_name.

EXEC SQL.

select version FROM v$instance INTO :string

ENDEXEC.

Here when i execute FM in ECC6 ..control goes inside EXEC SQL ... ENDEXEC block ..and executed the select query BUT

when i run the FM in 4.6C ..control DOESNOT go inside EXEC SQL ...ENDEXEC block...

Please provide ur valuable inputs..

Thanks & Regards

Nilesh

2 REPLIES 2
Read only

Kanagaraja_L
Active Contributor
0 Likes
335

Check the DB connection is available in Table DBCON, If not make a connection to the External DB (Check with your BASIS).

Kanagaraja L

Read only

0 Likes
335

Hi

i saw there was no entry in DBCON table ..how can we add entry in that table ?