Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PRINTER

Former Member
0 Likes
391

HAI,

HOW CAN I CHANGE PRINTER DEVICE BEFORE PRINTING ?

IS IT ANY FM FOR THAT ?

THANK YOU

ASHOK KUMAR

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
357

hi,

if u r working with SAP SCRIPT, we have one FM to change the printer.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

FORM = SPACE

LANGUAGE = SY-LANGU

DEVICE = 'PRINTER'

DIALOG = 'X'

OPTIONS = SPACE

APPLICATION = 'TX'

ARCHIVE_INDEX = SPACE

ARCHIVE_PARAMS = SPACE

IMPORTING

LANGUAGE =

RESULT =

NEW_ARCHIVE_PARAMS =

EXCEPTIONS CANCELED =

DEVICE =

FORM =

OPTIONS =

UNCLOSED =

DEVICE

SAPscript can format a text for output on different device types. Enter the desired device type here.

Possible values:

'PRINTER' print output

'TELEX' telex output

'TELEFAX' telefax output

'ABAP' screen output as ABAP list

(interface of the calling program)

'SCREEN' screen output as ABAP list

(interface controlled by SAPscript,

can be set with parameter APPLICATION)

The user can display output formatted for PRINTER, TELEX, or TELEFAX as print view on the screen. From within the program, you can set the field TDPREVIEW (structure ITCPO) in the parameter OPTIONS, or the user can call the function on the print control screen.

The fields TDSENDTIME and TDSENDDATE designed for fax output (structure ITCPO) will be used for future enhancements; they are not used at present.

Default value: 'PRINTER'

regards,

sudheer.

2 REPLIES 2
Read only

Former Member
0 Likes
357

Hi

This has to be given in the settings of the Output type in Application document

example for Sales order

from Menu goto Header -> output

define the output type BA00 with the medium, partner no etc

select that row press communication methods and further data

in that have to give the printer name etc.

all this data of configuration is stored in NAST table.

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
358

hi,

if u r working with SAP SCRIPT, we have one FM to change the printer.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

FORM = SPACE

LANGUAGE = SY-LANGU

DEVICE = 'PRINTER'

DIALOG = 'X'

OPTIONS = SPACE

APPLICATION = 'TX'

ARCHIVE_INDEX = SPACE

ARCHIVE_PARAMS = SPACE

IMPORTING

LANGUAGE =

RESULT =

NEW_ARCHIVE_PARAMS =

EXCEPTIONS CANCELED =

DEVICE =

FORM =

OPTIONS =

UNCLOSED =

DEVICE

SAPscript can format a text for output on different device types. Enter the desired device type here.

Possible values:

'PRINTER' print output

'TELEX' telex output

'TELEFAX' telefax output

'ABAP' screen output as ABAP list

(interface of the calling program)

'SCREEN' screen output as ABAP list

(interface controlled by SAPscript,

can be set with parameter APPLICATION)

The user can display output formatted for PRINTER, TELEX, or TELEFAX as print view on the screen. From within the program, you can set the field TDPREVIEW (structure ITCPO) in the parameter OPTIONS, or the user can call the function on the print control screen.

The fields TDSENDTIME and TDSENDDATE designed for fax output (structure ITCPO) will be used for future enhancements; they are not used at present.

Default value: 'PRINTER'

regards,

sudheer.