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

Cheque Printing - Script

Former Member
0 Likes
1,000

Hi all,

Iam Designing Cheque in SAP Script according to the company standards. I have copied 'F110_PRENUM_CHCK' to 'F110_PRENUM_CHCK'.

I have aligned all the header info , line items properly , cheque no and it is exactly printing on the stationary.

If the line items in the main window are limited within it, the data and the BOX of the main window comes properly on the cheque .

But if the line items exceeds the main window the <b>BOX</b> in the main window on the next page moves upwards and aligns to the left. The data in the window comes properly , on the BOX alignment is changed.

Here i have not used "NEXT" page in the SCRIPT. I have used only the First page and have given the next page as "FIRST" only. ( Now the BOX aligment must be same in all the pages).

My problem is how to make the Alignment of The BOX in the next page ( I have used only one page FIRST ) , so any aligment in the FIRST page is equavalent to the next page printing .

The other thing is how do i see the print preview for the cheque , here what is happening everytime i want to see the aligment the FI guy has to post the check. once the cheque is posted then i can see the printprevie, But again if i do any changes to the script i can see the print preview for the same posting. The FI guy has to post it again. is there any options.

Please do let me know about both the Alignment of the BOX as well as Printpreview of the Script.

Thanks in Advance,

Shuja

7 REPLIES 7
Read only

Former Member
0 Likes
844

hi

-


> To preview the script

u can goto the script

<b>utilities-> printing test</b>

-


>> For allignment of box

create a text element say DRAWBOX in the script & use that text element to display box in the both pages.

Read only

Former Member
0 Likes
844

hii Shuja,

Put all ur box commands under a Text element and call the element together with ur main data. I mean wen u call Write_Form for main data, before that call this text element also. n In the sapscript for Headings in the Main window Put 'TOP' and 'Endtop'.

whether the table fits into your main window or not by counting the lines during initialization.

If it fits, ok otherwise create an internal table with the same number of lines, but empty-entries + 1 Record.

Insert this table into your internal Data table at index

Use this table to fill the main window.

That means all your data will be allways on one page!

Additionally you can define all your other windows overlapping the main window. Use these windows in case your Table is too large.

Regards

Naresh

Read only

0 Likes
844

Hi Naresh,

Iam not touching the print Program . I know the print program, but iam not suppose to change it. I have to use only SAP script for Alignment . The Box Command and the data line like voucher no, date , invoice , etc are under the text element /E 515.

and the data for the voucher, date, invoice are in text elememt /E 520.

I tried giving protect and end protect under /E 515 for the Box , but it doesnt work the alignment still gets changed. The heading are properly aligned on bot the pages , only the BOX is moved upwars and to the left side on the 2nd page . It makes the 2nd page look odd.

If you know the solution please let me know.

Thank u so much

Read only

sridhar_k1
Active Contributor
0 Likes
844

Is the Box around the main window? then here's another way to keep the box always at the same place:

Create a constant window with same size and position as main window and add command /: BOX FRAME 10 TW , this will draw box around main window.

U need not post new check, u can reprint the old check after making changes to sapscript, if program RFFOUS_C is being used to print check, there's reprint check option at the end of selection screen, Void check, enter previous check number and give void reason 05.

Regards

Sridhar

Read only

0 Likes
844

Hey,

Thx for the Reply , Yes the BOx around the main window . i will try putting a new window and will get back to you.

For the print preview, do i have to run RFFOUS_C with the parameters you have mentioned or the Functional guy has to change his print variant . if sso can you tell me more about this.

Thank u so much

Shuja

Read only

0 Likes
844

You can run RFFOUS_C, The functional guy might be using tx: F110, Ask you'r functional guy, variant name, Program run date, and identification feature used to print a check previously, use them and use the void paramters to reprint check. Every time you want to void a printed check, use the latest printed check number to void.

Regards

Sridhar

Read only

Former Member
0 Likes
844

I'm not sure will this help, i m writing the cheque sapscript as well, and need to do alot of preview, i don't want to bother the guy to post a cheque everytime i make a change, so he told me i can use FCH7 to reprint cheque (much easier to use than running the RFFOUS_C program) and go to SP01 to preview

hope this help!

Regards

Tim