cancel
Showing results for 
Search instead for 
Did you mean: 

Printing problem

Former Member
0 Kudos

Hi everyone!

When my printing program calls the printer name for LOCL, since it's a network printer with a pretty large (and unchangeable) name, the program trims the last letters. Then I get an error stating that the printer is not recognizable by Windows Print Manager.

Anyone knows how to fix this?

Best Regards,

Luís Andrade

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can use the coding provided by Mr. Seshu Or else follow this procedure

Goto Tcode SPAD --> OutPut Devices

Select Your printer LOCL Click below <b>Location or message</b> this header and double click on that line and after that goto change mode. Click on Access Method and define your printer as" __default"

This will solve your problem

Regards

Pavan

Answers (1)

Answers (1)

Former Member
0 Kudos

You can use simple logic :

parameters: p_print like pri_params-pdest.

initialization.

  • Spool: Device Description (New Format)

select single padest from tsp03d into p_print

where paprosname = '__DEFAULT'.

<b> itcpo-tddest = p_print.</b>

itcpo-tdnewid = 'X'.

itcpo-tdpreview = 'X'.

itcpo-tdimmed = 'X'.

itcpo-tdcopies = '1'.

call function 'OPEN_FORM'

EXPORTING

device = 'PRINTER'

dialog = ' '

form = 'ZAUTO_REPLPRINT'

language = sy-langu

options = itcpo.

Thanks

Seshu