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

Выгрузка из одной IT в другую с отбором



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



Joined: 02 Jul 2008
Posts: 2

PostPosted: Wed Jul 02, 2008 11:53 am    Post subject: Выгрузка из одной IT в другую с отбором Reply with quote

Всем привет. Столкнулся с такой проблемой: нужно из одной внутр. таблицы выгрузить данные в другую с отбором по некоторым полям.
Стандартный READ может выгружать только в work area, а если делать LOOP по таблице то это слишком медленно работает.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Wed Jul 02, 2008 1:42 pm    Post subject: Reply with quote

Если разместить нужные поля первой таблицы первыми, то отработает такое копирование.
it_dest[] = it_scr[].

Возможно, если вы в LOOP делаете INSERT, замените его на APPEND.
Back to top
View user's profile Send private message Blog Visit poster's website
damluar
Участник
Участник



Joined: 02 Jul 2008
Posts: 2

PostPosted: Wed Jul 02, 2008 2:18 pm    Post subject: Reply with quote

меня интересует не проекция, а выборка.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Wed Jul 02, 2008 2:33 pm    Post subject: Reply with quote

Если loop работает медленно, объявите внутреннюю таблицу как sorted по полям, используемым в условии where.

Quote:
Notes
When you use the WHERE condition with a STANDARD or HASHED table, a full table scan is always required.
If you are working with a SORTED TABLE, the partial sequential processing can be optimized so that only the entries that actually satisfy the WHERE condition are processed. This optimization requires that the WHERE condition be specified in the form

WHERE k1 = v1 AND k2 = v2 AND ... AND kn = vn

where the components k1, ..., kn are in the same sequence as the beginning of the table key.
Back to top
View user's profile Send private message Blog Visit poster's website
mike1
Модератор
Модератор



Joined: 22 Nov 2007
Posts: 82

PostPosted: Thu Jul 03, 2008 11:07 am    Post subject: Reply with quote

В курсе bc401 приведен пример алгорима по работе со стандартной таблицей.
Back to top
View user's profile Send private message
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.