Select printer when printing purchase order
we are using a customized sapscript and the standard SAP print program SAPFM06P to print out our purchase orders .
When doing the print out of ME22n, we can select the printer in logical destination field. But if we select LOCL, we can not select the actual windows printer, it will just take the default.
In know in other transaction, I am able to select the windows printer too when selecting LOCL.
Is there a way to do that with purchase orders as well?
In your print program you must be passing an script output parameter structure (SAPscript output interface). means check in OPEN_FORM fm, the parameter OPTIONS.
Pls try this,
data : s_itcpo type itcpo. s_itcpo-TDDEST = 'LOCL'. s_itcpo-tdimmed = 'X'. s_itcpo-tddelete = 'X'. s_itcpo-tdnewid = 'X'. * Display one dialog for user. Then enable several SAP-Script to prt call function 'OPEN_FORM' exporting device = 'PRINTER' dialog = 'X' language = sy-langu options = s_itcpo ----- > +Printing parameter+ importing language = sy-langu exceptions canceled = 1 device = 2 form = 3 options = 4 unclosed = 5 others = 6.
Pls let me know if anything is unclear.