Wednesday, February 25, 2009

Assign New Print Format to Device Type

After you create a new print format, you can assign it to the device type. This step will assure you that when you select the device type for printing, the new created-format can be selected.
1. Run transaction code SPAD and select Full Administration. Select Device Types tab.
2. Enter the name of Device Types e.g. SAPWIN (for LOCL). Select Display button.
3. Change the Display mode to Change mode.
4. Choose Formats. Then choose change and create.
5. Enter the name of print format you just created.
6. In the Format tab select printer initialization, Reset After Exit, End of Page, and End of Line. In the Printer initialization enter below command:
# SAPWIN data stream
\e%SAPWIN%
# Landscape-Mode
\ePL
# Schrift 5 Punkt einstellen.
\eS75X
(this line must be adjust to meet the number of columns you have defined before. 75 for 350, 130 for 200, 200 fro 132, and 100 fro 255 column).
#8,5 lpi
\el8.5;
# output complete line with one call (do not use for proportional fonts)
\eOa1

7. In the Reset After Exit screen, enter commands:
# SAPWIN X_PAPER
# reset

8. In the End of Page screen, enter command:
\f
9. And in the End of Line screen, enter command:
\n
10. Save your entries.

No comments: