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

Insert into external DB using native SQL

Former Member
0 Likes
629

Hi,

Is there any easier way to insert data in to External DB using native SQL insert.

there are 250 columns to be inesrted. table structures in SAP and ext db are same.

Thanks in Advance

Somesh

5 REPLIES 5
Read only

Former Member
0 Likes
567

Hi,

If you the external DB connected to application server perfectly then we can use EXEC - Native SQL commands.

regards

  • DJ

reward, if its useful

Read only

0 Likes
567

Thanks for the reply DJ.

You are right. the issue i am facing is , is there any simpler way to prepare that native SQL statement using some dynamic statemnts or FM or class to make it work, instead of typing all those 250 columns?

Thanks in Advance

Read only

0 Likes
567

Hi someswara,

Creating a dynamic statements using Native SQL is a bit tough task. I don't think anyone might have tried it. Instead you can write down the all columns as it is one time activity only, and by the time you will find solution you will be ready with your queries :).

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
567

hard coded all the fields...

Read only

0 Likes
567

another method is to create a structure with all those fields and use DD function module to prepare a query..