cancel
Showing results for 
Search instead for 
Did you mean: 

Cheque Printing F-58

Former Member
0 Kudos

Hi all,

Greetings

i am using tcode f-58 for check printing a sapscript.

now my problem is if i give the print for 1 cheque the remaining page gets ejected automatically which i think is a default property in printer.

so if i want to print more than 1 (say 3 copies) it consumes 3 pages.

i want all three of them in a single page.

and if i give a single cheque print the pageshould automatically get stopped after printing so that same paper could be used further.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Gaurav and All member

I am facing same problem like you. Your problem was solved but my problem was steel there.

I was given printing using f-58 transaction code after one cheque print full page was skip.

I was create new page using SPAD transaction code but still problem was there.

Gaurav I was copy the code in device type in my page format but problem was not solved.

After copy code page skipping problem was solved but some special cheracter was print with my data.

I am attached the code as below

  1. reset

\e\0x40

  1. select US-ASCII character set

\e\0x52\0x00

  1. set line spacing 6 LPI

\e\0x32

  1. set page length to 7 inch (=22 lines at 6 LPI)

\e\0x43\0x14

  1. cancel bottom margin

\e\0x4F

  1. set left margin to 0

\e\0x6C\0x00

  1. select LQ quality

\e\0x78\0x00

  1. select non-proportional spacing

\e\0x70\0x00

Please advice me what will we do for ignore the problem.

Please give replay.

Thanks in advance.

Regards

Gopal Arora

+91-9827718838

Former Member
0 Kudos

Hi Gaurav,

I already done your requirement.

I would like to know whether you are using A4 size paper or cheque Size paper. or any preprint formatted paper with the 1/3rd of A4 size..?

Are there seizer cuts in your A4 size paper if it is A4..?

Because, your layout should be developed based on your paper format if it is not A4 size.

If you are using A4 paper, then you can print one cheque per page and the printer will automatically ejected it because you have developed your layout like that.

regards,

ram.

Former Member
0 Kudos

Hi Ram

I am not using the a4 size paper.

i am working on dot matrix printer and using letter format in printer properties in windows and customised

size of 205 *92 mm & SWIN as output device type.

also i am working on portrait format.

Former Member
0 Kudos

hi

Former Member
0 Kudos

Hi Gaurav,

The better option is as follows.

If your customized paper can hold upto 3 cheques, please follow the process.

Design your page in layout to accomodate 3 cheques. As you already developed the layout for 1 cheque, so just copy the same design to make a single layout with 3 cheque format. And maintian TEXT ELEMENT for each cheque.

You should make sure that the layout page size in the form should be same as the printer paper.

So, you can print 3 cheques per page.

If you have more than 3 cheques, first there cheques will be printed on the first page, and then next cheques will be printed on second page onwards..

If you have only 1 or 2 cheques, then those cheques will be printed on the first page itself.

In print program, you should call those 3 cheques in a single LOOP Statement.

DATA: itab type TABLE OF xxxx,

idx type sy-tabix,

icnt type i.

LOOP.

icnt = icnt + 1.

READ TABLE itab INTO wtab INDEX icnt.

IF sy-subrc = 0.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'CHEQUE1'.

WINDOW = 'MAIN'

ELSE.

EXIT.

ENDIF.

icnt = icnt + 1.

READ TABLE itab INTO wtab INDEX icnt.

IF sy-subrc = 0.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'CHEQUE2'.

WINDOW = 'MAIN'

ELSE.

EXIT.

ENDIF.

icnt = icnt + 1.

READ TABLE itab INTO wtab INDEX icnt.

IF sy-subrc = 0.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'CHEQUE3'.

WINDOW = 'MAIN'

ELSE.

EXIT.

ENDIF.

ENDLOOP.

I am sure, this code will works for your requirement as i already done it.

regards,

ram

Former Member
0 Kudos

Hi Gaurav,

the same problem had me in a ziffy for quite some time...

there r 2 settings u need to make sure u ve done..

1) in SAP, check the paper size of ur check which has to be similar to the size of the paper..

2) for the Printer : even if ur sapscript size is less, the printer is taking the size of a full sheet(A4) because of the Printer Property.. u need to create a Page format in the Server Properties n attach this page format in ur Printer Properties, only then the printer will stop after printing the check at that particular point.. if u observe the properties u may c Letter or A4 as the paper size..u need to change that with ur custom paper size..

hope it helps..

Former Member
0 Kudos

Hi Bikash,

Thanks for ur Reply.

I had followed ur suggestions & thankful for the solution u shared with me.

I had Solved this problem .the Answer lies in SAP itself .The transaction is SPAD where

go to OUTPUT DEVICES tab -> OUTPUT DEVICES button .

select ur Printer . there select any format go inside

where u will find many buttons .

You will have to insert some code into printer initialization .save it.

That's the solution.

But i am thankful to you for the pain you took in answering my Question .

Former Member
0 Kudos

Hi Prabhu,

First of all thanks for ur reply.

if i wil specify the number of print at the time of printing in spool request screen and not in the layout or

program layout will just set the cheque layout.so i believe my problem is not served.

Former Member
0 Kudos

Hi


so if i want to print more than 1 (say 3 copies) it consumes 3 pages.
i want all three of them in a single page.
<b>So change ur layout as per ur requirement, do the loop at main window so u can print 3 times same data in one page itself.</b>

regards

Prabhu