‎2007 Jun 06 1:37 PM
HAI,
HOW CAN I CHANGE PRINTER DEVICE BEFORE PRINTING ?
IS IT ANY FM FOR THAT ?
THANK YOU
ASHOK KUMAR
‎2007 Jun 06 1:47 PM
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.
‎2007 Jun 06 1:41 PM
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
‎2007 Jun 06 1:47 PM
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.