Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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?



Former Member
Former Member replied


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' 
      device   = 'PRINTER' 
      dialog   = 'X' 
      language = sy-langu 
      options  = s_itcpo   ----- > +Printing parameter+ 
      language = sy-langu 
      canceled = 1 
      device   = 2 
      form     = 3 
      options  = 4 
      unclosed = 5 
      others   = 6.

Pls let me know if anything is unclear.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question