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
cerber_
Участник
Участник



Joined: 25 Apr 2008
Posts: 9
Location: Moscow

PostPosted: Wed May 28, 2008 12:26 pm    Post subject: Отправить в спул Reply with quote

Доброго времени суток.
Имеется задача сохранения различных результатов (alv list, alv grid, ...) в формате pdf.
Самый универсальный вариант - это сохранение pdf с использованием данных спула печати.

Вопрос в следующем: как отправить в спул данные экрана отчета, затем получить его id, и после выполнения действий удалить? Программно таких функций не нашел.

Т.е. вручную то же самое можно выполнить через: ctrl+p с заданием устройства "печать форм pdf", определение id спула, выполнение действий над спулом, удаление из спула. Все действия делаются вручную, но для пользователя это слишком сложно, нужно автоматизировать.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Wed May 28, 2008 1:40 pm    Post subject: Reply with quote

Вы не пробовали посмотреть программы, выдаваемые через поиск на фразу Spool PDF

Получение листа и отправка в спул.
Отправка по почте результатов отчета в сжатом виде

Получение и удаление запроса из спула по id.
Converts spool request into PDF document and emails it to recipicant
Back to top
View user's profile Send private message Blog Visit poster's website
cerber_
Участник
Участник



Joined: 25 Apr 2008
Posts: 9
Location: Moscow

PostPosted: Wed May 28, 2008 2:17 pm    Post subject: Reply with quote

Изучил не только документы поиска со словами spool и pdf, но и print и work processes.
Удаление из спула, и редактирование параметров сделано уже давно, осталась отправка в спул.

Надеялся что кто-то с таким же сталкивался, но придется искать решение с нуля.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Wed May 28, 2008 2:45 pm    Post subject: Reply with quote

А такая конструкция?

Code:
  submit (p_repid) to sap-spool without spool dynpro
                   spool parameters mstr_print_parms
                   via selection-screen
                   and return.


Save Report Output to a PDF File

ALV grid, запущенный в background-e, формирует выходной отчет как list. Этого же можно добиться, если перед вызовом alv grid поставить sy-batch = 'X'.
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.