‎2007 Jun 14 10:08 PM
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
‎2007 Jun 14 10:52 PM
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
‎2007 Jun 14 11:23 PM
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
‎2007 Jun 14 11:27 PM
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
‎2008 Oct 13 7:06 PM
‎2008 Oct 13 7:07 PM
another method is to create a structure with all those fields and use DD function module to prepare a query..