SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

в EXEC SQL вставить в oracle-табл данные с прозрачной таб



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
даня
Участник
Участник



Joined: 30 Jun 2009
Posts: 9

PostPosted: Wed Sep 02, 2009 3:23 pm    Post subject: в EXEC SQL вставить в oracle-табл данные с прозрачной таб Reply with quote

могу через loop insert-ить в oracl- овую таблицу нужные мне данные с внутренней таблицы, но записей много (100 000) и хотелось бы вставлять сразу, а не в цикле ... можно ли вообще так сделать -- это например ошибка:
EXEC SQL.
insert into ORACLE_TAB SELECT * FROM SAP_TAB
ENDEXEC.
sap_tab - прозрачная таблица
Back to top
View user's profile Send private message
Armann
Модератор
Модератор



Joined: 01 Jan 2008
Posts: 422
Location: Moscow

PostPosted: Wed Sep 02, 2009 5:05 pm    Post subject: Reply with quote

Боюсь что никак - оракл понятия не имеет о саповских внутренних таблицах.
А если не секрет - в чем необходимость использования именно Native SQL?
Back to top
View user's profile Send private message Blog
vga
Мастер
Мастер


Age: 170
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Thu Sep 03, 2009 1:19 pm    Post subject: Reply with quote

Друзья по разуму утверждают, что так будет работать, попробуйте, может прокатит.

Hi,
If DBlink was already set, You may use the native sql commands for updating.
Code:
*--to connect
* where gd_connect contains the logical name for the
* database connection set up by your BASIS team
* SAMPLE connection only "ITSCON"
GD_CONNECT = "ITSCON".
EXEC SQL.
CONNECT TO :GD_CONNECT
ENDEXEC.
*---Populate your internal table having thesame structure
*---as with the remote DB
it_oradb-<field1> = <value1>
it_oradb-<field2> = <value2>
append it_oradb.
*--to insert
EXEC SQL.
*--then you can insert here the normal SAP SQL commands
INSERT <oradb> from table :it_oradb
ENDEXEC.

Thanks,
Jowen
Back to top
View user's profile Send private message Blog Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.