cancel
Showing results for 
Search instead for 
Did you mean: 

Printing problem for inkjet Printer

Former Member
0 Kudos

Dear All,

my requirement is that the printing output to the inkjet printer.

till now we are using smartforms/script and printing output to laser/dmp printer.

can any body suggest how to code for inkjet printer and what all other factor to be consider.

if any sample code, pls provide same.

Thanks,

Radhashyam Sahoo

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Pls follow the steps.

1. Goto t-code SPAD. Give the o/p device number here, than display. (For eg PR01)

2. Here in Device type, You can specify your Device whichever you would like to use. Keep the other field as per your requirement.

In sapscript driver program, follow the coding:

data : s_itcpo type itcpo. 
  s_itcpo-TDDEST = 'PR01'.   -----> Output device
  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.

Same thing you can define for smart forms before calling a smartform.

Is it helpful?

Regrads,

Lokesh.