cancel
Showing results for 
Search instead for 
Did you mean: 

Select printer when printing purchase order

Former Member
0 Kudos

Hello,

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?

Thanks

Anne

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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.

Regrards,

Lokesh.

Former Member
0 Kudos

Hi,

thanks for your answer.

My print program is the standard SAP print program for POs: SAPFM06P

I checked it already and it only has "includes", so I am not sure how to do the appropriate changes?

Thanks

Anne

Answers (1)

Answers (1)

KKilhavn
Active Contributor
0 Kudos

That's the way LOCL works - it does not bring up the local printer selection dialog as you seem to want.

http://help.sap.com/SAPHELP_NW70/helpdata/EN/38/5bc3f2e4bd11d18e2b0000e83dd9fc/content.htm

"If users enter LOCL as the output device, their operating system default printer is used."