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

Dot Matrix Print

Former Member
0 Likes
3,472

Dear SDNers,

I have created a output device for my dot matrix printer to print payslip using tcode PC00_M99_CEDT.

I have created Z font type and assigned. But it is not taking the font which I am assigning and printing with small letter.

And Also my page format is with 65rows with 132 columns. But while printing it is printing on alternative pages.

Please guide me how to solve this issue.

Regards,

Venkat

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,050

Assign the font as default font in smartform or script which you are using.

Also check in  SPAD for the printer settings.

Dear SDNers,

I have created a output device for my dot matrix printer to print payslip using tcode PC00_M99_CEDT.

I have created Z font type and assigned. But it is not taking the font which I am assigning and printing with small letter.

And Also my page format is with 65rows with 132 columns. But while printing it is printing on alternative pages.

Please guide me how to solve this issue.

Regards,

Venkat

19 REPLIES 19
Read only

Former Member
0 Likes
3,051

Assign the font as default font in smartform or script which you are using.

Also check in  SPAD for the printer settings.

Read only

0 Likes
3,050

Dear Sai Krishna,

I am using tocde "PC00_M99_CEDT"..Its a report which doesnt have either smartform or script.

It is standard tcode which display a payslip results using write statements.

I have checked all SPAD settings and ther are okay.

Regards,

Venkat..

Read only

0 Likes
3,050

Any updates?

Read only

0 Likes
3,050

Have you updated any code in printer initialization options in device (format) settings ?

Read only

0 Likes
3,050

No, I didnt do any code at Printer initialization.

Do I need to mention the font size n type over there?

Read only

0 Likes
3,050

Are you using sap scripts or smartforms ?

Read only

0 Likes
3,050

I am using tocde "PC00_M99_CEDT"..Its a report which doesnt have either smartform or script.

It is standard tcode which display a payslip results using write statements.

I have checked all SPAD settings and they are okay.

Read only

0 Likes
3,050

I think you are using using dot matrix printer and it is printing in small fonts and not printing in your actual page format.

does what i assume is correct ?

Read only

0 Likes
3,050

Yes Narasimha..I am using Dot Matrix Printer and its not increasing the font size even though I maintained font formats

Please guide me how to increase the font size.

Read only

0 Likes
3,050

Are the fonts that you have installed supported by the printer? If the printer does not support there is no use. Please check with your printer manual.

Read only

0 Likes
3,050

Yes Varun,

I am using standard font HELVE. I opened word and gave few different fonts and gave print.. Those are printed on page...But from SAP, those fonts are not working..Is it smething related to configuration?

Read only

0 Likes
3,050

I think it might be issue related to the device type. Set correct device type valid for your printer make(Google search might help) on the printer settings in SPAD. It is more important to get the right device type for dot matrix printers.


If it is not device type it might be related to font conversion. You can check font conversion from SE73.

Read only

0 Likes
3,050

okay do one thing

develop a z program  and use the function module 'GET_PAYSLIP'

in your program in order to get the data that you see in the output of

tcode "PC00_M40_CEDT".

and again use the function module 'CONVERT_PAYSLIP_TO_SAPSCRIPT'.

after generating the sapscript. after generating the sap script go to se38

and goto progrram 'SF_MIGRATE' and convert the sapscript to smartform.


Read only

0 Likes
3,050

after converting to smartform replace the font with which you require and if required create a new page style in  spad t code and replace the current format in smartform with newly created page format

Read only

0 Likes
3,050

Dear Narasimha,

Other than this, there is no other option?

Read only

0 Likes
3,050

Have you tried the below code with changing the parameters in the code .

as far as my knowledge there is no other alternative.

Read only

0 Likes
3,050

copy the following code in printer initialization settings in spad tcode

# reset

\e\0x40

# select character table 3 -> PC 437 character set (change the below code acording to you reqment)

\e\0x74\0x03

# set line spacing 10 LPI

\e\0x2B\0x24

# set page length to (=84 lines at 10LPI) (change the below code according to you requirement)

\e\0x43\0x54

# cancel bottom margin

\e\0x4F

# set left margin to 0

\e\0x6C\0x00

# select LQ quality

\e\0x78\0x01

# select non-proportional spacing

\e\0x70\0x00

Read only

0 Likes
3,050

I tried with your code..but there is no change in font.

Same font it is giving..

Read only

0 Likes
3,050

This message was moderated.