Posted: Wed Jul 02, 2008 11:53 am Post subject: Выгрузка из одной IT в другую с отбором
Всем привет. Столкнулся с такой проблемой: нужно из одной внутр. таблицы выгрузить данные в другую с отбором по некоторым полям.
Стандартный READ может выгружать только в work area, а если делать LOOP по таблице то это слишком медленно работает.
Age: 190 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Wed Jul 02, 2008 2:33 pm Post subject:
Если 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.
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.