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

Экстракты.



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
rstiv
Специалист
Специалист


Age: 44
Joined: 29 Oct 2008
Posts: 68
Location: Питер

PostPosted: Tue Feb 09, 2010 5:40 pm    Post subject: Экстракты. Reply with quote

Здравствуйте!
Вопросы такие:
1. для чего нужны?
2. Как создать?
3. Могут ли они заменять абап программы?

_________________
Строчечку написал, стопочку пропустил...
Back to top
View user's profile Send private message
Alex80
Старший специалист
Старший специалист


Age: 43
Joined: 24 Jan 2008
Posts: 129

PostPosted: Tue Feb 09, 2010 6:13 pm    Post subject: Re: Экстракты. Reply with quote

rstiv wrote:
Здравствуйте!
Вопросы такие:
1. для чего нужны?
2. Как создать?
3. Могут ли они заменять абап программы?

Quote:
Extracts
An extract dataset, or short extract, is a dataset in the internal session of an ABAP program that is not handled as a data object and therefore has no data type. There is only one extract dataset for every ABAP program. It can be filled will ABAP statements and read. The content of the extract dataset cannot be explicitly deleted.

In the same way as an internal table, an extract dataset is made up of a dynamic number of lines. The size of the extract dataset is theoretically unlimited, if the size exceeds 500 KB, it is stored in a file of the operating system. Sizes of up to 2 GB (and larger for 64-bit processors) are practicable. In contrast to internal tables, the individual lines can have different structures. The line structures are declared using the statement FIELD-GROUPS.

The exact structure of each line is not determined until the program is executed using the statement INSERT.

Example
This example continues the example under INSERT. If the executable program is linked to a fitting logical data base, the fields of the field groups flight_info and flight_date are attached to the extract dataset during the GET-events.

REPORT demo_extract.

NODES: spfli, sflight.

FIELD-GROUPS: header, flight_info, flight_date.

START-OF-SELECTION.

INSERT: spfli-carrid spfli-connid sflight-fldate
INTO header,
spfli-cityfrom spfli-cityto
INTO flight_info.

GET spfli.
EXTRACT flight_info.

GET sflight.
EXTRACT flight_date.

Back to top
View user's profile Send private message
rstiv
Специалист
Специалист


Age: 44
Joined: 29 Oct 2008
Posts: 68
Location: Питер

PostPosted: Wed Feb 10, 2010 12:44 am    Post subject: Reply with quote

То есть это как я понимаю: извлечение таблицы в некое внутренее, типо временной таблицы бесформенной??? И по ключам извелкать нельзя конкретные данные? Сори конечно за уточнение, просто с иностр языками туговато, посмотрел пример, почитал в гугл.транслите, и из всего этого сделал такой вывод...
_________________
Строчечку написал, стопочку пропустил...
Back to top
View user's profile Send private message
Удав
Гуру
Гуру


Age: 48
Joined: 25 Jan 2008
Posts: 580
Location: Москва

PostPosted: Wed Feb 10, 2010 10:28 am    Post subject: Reply with quote

Вот здесь хорошо написано про экстракты.
Alex80 отсюда и взял выжимку Smile
1.Экстракты нужны, чтобы уменьшить время выборки данных в "тяжелых" отчетах за закрытые периоды.
Работа с экстрактами - это работа с последовательным файлом - читать данные по конкретному ключу нельзя. Это и правильно - для чтения по ключу есть SQL и внутенние таблицы Wink
2.См. линк
3.Экстракты могут использоваться только в abap-программах.

Более "дешевой" в использовании альтернативой экстрактам служит группа функций SKBE.

_________________
С уважением,
Удав.
Back to top
View user's profile Send private message
rstiv
Специалист
Специалист


Age: 44
Joined: 29 Oct 2008
Posts: 68
Location: Питер

PostPosted: Wed Feb 10, 2010 11:49 am    Post subject: Reply with quote

Все понятно, спасибо.
_________________
Строчечку написал, стопочку пропустил...
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.