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

Печать PDF-формуляра без предпросмотра



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



Joined: 29 Jan 2008
Posts: 41
Location: Минск

PostPosted: Tue May 31, 2011 3:39 pm    Post subject: Печать PDF-формуляра без предпросмотра Reply with quote

Пытаюсь выбросить на печать ряд PDF формуляров без открытия окна предпросмотра.
Если в ряде один формуляр - печатается, если два или более - нет.
Задание на печать в спул попадает.
В чем может быть причина? Спасибо за ответы.

Пример кода:
* Открыть очередь печати
ls_outputparams-nodialog = 'X'.
clear ls_outputparams-preview.
ls_outputparams-reqimm = 'X'. " Немедленная печать
ls_outputparams-nopdf = 'X'.
ls_outputparams-dest = 'PDF1'.
* ls_outputparams-bumode = 'X'.

CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ls_outputparams
EXCEPTIONS
OTHERS = 1.

LOOP AT pu_tab_rows INTO ls_row.
* Здесь вызов ФМ формуляра
...
ENDLOOP.

* Закрыть очередь печати
CALL FUNCTION 'FP_JOB_CLOSE'.
Back to top
View user's profile Send private message Send e-mail
vga
Мастер
Мастер


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

PostPosted: Tue May 31, 2011 4:58 pm    Post subject: Reply with quote

Не пробовали с параметром поиграться?
ls_outputparams-bumode = 'M'.

Quote:
Activation of Bundling

An application program can override the system settings

Deactivate bundling for very large documents (BUMODE = ‘-‘, see next slide)
Activate bundling only for selected mass printouts (if default is ‘off‘)BUMODE = ‘M‘shall be used if different forms or forms in different locales (language+country) are used
BUMODE = ‘X‘shall be used if all forms are identical (including locale)

Difference between ‘M‘and ‘X‘is currently very small, so ‘M‘should be used (it is more flexible)

Only forms that are called within one FP_JOB_OPEN -FP_JOB_CLOSE section can be bundled (do not close the job after each form). Forms Processing can only bundle documents that are part of one OPEN/CLOSE section.



Взято отсюда:
Printing Forms with Interactive Forms Based on Adobe Software

_________________
Молитва - это запрос разработчику на изменение кода программы.
Back to top
View user's profile Send private message Blog Visit poster's website
MrN
Участник
Участник



Joined: 29 Jan 2008
Posts: 41
Location: Минск

PostPosted: Thu Jun 09, 2011 10:32 am    Post subject: Reply with quote

Не помогает.
Back to top
View user's profile Send private message Send e-mail
Dmitriy
Аналитик
Аналитик


Age: 47
Joined: 14 Nov 2008
Posts: 300
Location: Russia

PostPosted: Thu Jun 09, 2011 2:05 pm    Post subject: Reply with quote

Доводилось в своё время расширять ФМ FP_JOB_OPEN, считывая перед отработкой основного кода ФМ настроечную табличку по коду транзакции и меняя часть параметров структуры IE_OUTPUTPARAMS:
ie_outputparams-preview
ie_outputparams-nodialog
ie_outputparams-nopreview
ie_outputparams-nopdf
ie_outputparams-job_profile (для двусторонней печати).

_________________
ABAP/4 You
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.