Posted: Tue May 31, 2011 3:39 pm Post subject: Печать PDF-формуляра без предпросмотра
Пытаюсь выбросить на печать ряд 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'.
Age: 170 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Tue May 31, 2011 4:58 pm Post subject:
Не пробовали с параметром поиграться?
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.
Age: 47 Joined: 14 Nov 2008 Posts: 300 Location: Russia
Posted: Thu Jun 09, 2011 2:05 pm Post subject:
Доводилось в своё время расширять ФМ FP_JOB_OPEN, считывая перед отработкой основного кода ФМ настроечную табличку по коду транзакции и меняя часть параметров структуры IE_OUTPUTPARAMS:
ie_outputparams-preview
ie_outputparams-nodialog
ie_outputparams-nopreview
ie_outputparams-nopdf
ie_outputparams-job_profile (для двусторонней печати). _________________ ABAP/4 You
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.