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

SAP Script Alignment issues

Former Member
0 Likes
1,747

Hello Gurus,

I have a requirement to print data in a pre-printed papers. In the other words, End user will be feeding a Empty form with several sections in the printer, and using SAP Script I am supposed to fill out that form.

I am experiencing a strange issue.

For each section in that form I have created a window and line items is in the main window. After lot of efforts I managed to put data intact on output form. but next time I print on the same form with same data, there is a mis alignment. There are several check boxes on the paper which I am supposed to check. and also other fields are either going up, down, left or right.

I am unable to understand for the separate windows at fixed position and same size paper, how data is moving here and there.

What do I need to do to resolve this issue.

Edited by: Rahul Saxena on Dec 11, 2008 10:13 PM

1 ACCEPTED SOLUTION
Read only

nkr1shna
Contributor
0 Likes
1,571

Hi Rahul,

This issue can happen if your data is not constant length. Based on the data content , subsequent data will get moved into different column. Please check what type of window you are using (Variable or Constant) and also whether you are restricting data for particular length or allowing program to send what every length.

Hope if you take care of above observation, you may find solution of the issue by yourself.

Best Regards,

Krishna

9 REPLIES 9
Read only

nkr1shna
Contributor
0 Likes
1,572

Hi Rahul,

This issue can happen if your data is not constant length. Based on the data content , subsequent data will get moved into different column. Please check what type of window you are using (Variable or Constant) and also whether you are restricting data for particular length or allowing program to send what every length.

Hope if you take care of above observation, you may find solution of the issue by yourself.

Best Regards,

Krishna

Read only

Former Member
0 Likes
1,571

Thanks for the quick reply.

My data is most of the time constand, "X" is checking the check box.and window sized to fit only only one char. Sometimes it is exactly printed on the box and sometime is either above or below the box. I always want to print X in the box of the pre-printed form.

Read only

Former Member
0 Likes
1,571

One quick question.. Those pre-printed forms, are you manually printing the blank form first and then feeding the same paper to fill the information using SAP Script? or you are using the Pre-printed forms for the SAP script to fill the information.

Read only

Former Member
0 Likes
1,571

Hi Shrikant,

I am printing the PDF form and then feeding the same print to fill out the information using SAP Script.

Thanks-

Read only

0 Likes
1,571

HI Rahul,

Can you please verify this, since you have good output which contains data and also you have wrong output which contains data.

Please check which column or row formatting is getting corrupted. Verify whether data length got changed between good and bad output?. Try to pass several records to verify whether data is the corrupting the formats?.

Best Regards,

Krishna

Read only

Former Member
0 Likes
1,571

I am positive, that the values you are printing are exactly at the same position.

The issue you are experiencing usually happens when you put the paper at different positions. To avoid such issues, I suggest you to print some 50-60 PDFs at a time, put all of them in a tray and then do the alignment in SAP Script.

To further confirm the issue compare previously printed two forms and check if the columns are exactly overlaying on each other.

Read only

Former Member
0 Likes
1,571

Hi Nagendra,

All I have is 6 records and some check boxes(X) and Plant name, and Vendor Name.

With the same set of data, sometimes I am getting correct output and sometimes mis alignments.

Shrikant : I had a quick comparision of correct and wrong output. and in couple of cases there is a mis-alignment in the PDF's too. I think you are correct. I am feeding paper everytime to print a output.

Print PDF, and then use the PDF printout to print SAP Script. So I am feeding paper twice to print one Form.

I will take bunch of PDF's and then put them all together and then compare the output.

Thank you all for your quick responses. I will let you guys know if this thing works.

Read only

Former Member
0 Likes
1,571

Are you printing on a SAP Printer or a LOCL-local printer?

Ideal is SAP Printer.

Print the X in check boxes by defining as BOXES instaed of windows!! just try, not sure!!

Try to use TABs as much as u can.

thanq

Edited by: SAP ABAPer on Dec 11, 2008 11:23 PM

Read only

Former Member
0 Likes
1,571

As he rightly said, Printer also matters. you can use your network printer. if you are printing both PDF as well as SAP Script using the same printer.

Print couple of SAP Scripts on a white paper and then compare the alignment. If content is exactly at the same position, then definitely the issue is with the paper feeding.

Hope by now you have resolved the issue.

Good Luck