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 Printing Problem

Former Member
0 Likes
1,848

Dear All.

I need one Sug'tion

i.e., While Printing SAPScript Voucher Page is skipping,

but I want to avoid this ,How Can I ?If any body !!!

Thanks

Surendher Reddy.Baddam

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,751

Hi John,

These are measurements.,

1) Main Window >>>Width 22.75 CM

>>>Height 13.81 CM

2) Page format >>>Orientation <b>L</b>

Width 24 CM

Height 151 MM

While Printing this Script ..

Page is skipping to next page .,I want to avoid the page skip.,

and I want Cont'ue next page in the same page.,

Actually the Entire Script O/P Covers half of the page only .,I want to print next page in remaing half of the page.,

Please if u have any Idea on this.,

For this I have to change any Page format or any thing ??

Thanks.

Suri

16 REPLIES 16
Read only

Former Member
0 Likes
1,751

Hi Surendher,

Please be a bit more specific about your problem. What do you mean with "Voucher Page"?

Regards,

John.

Read only

Former Member
0 Likes
1,752

Hi John,

These are measurements.,

1) Main Window >>>Width 22.75 CM

>>>Height 13.81 CM

2) Page format >>>Orientation <b>L</b>

Width 24 CM

Height 151 MM

While Printing this Script ..

Page is skipping to next page .,I want to avoid the page skip.,

and I want Cont'ue next page in the same page.,

Actually the Entire Script O/P Covers half of the page only .,I want to print next page in remaing half of the page.,

Please if u have any Idea on this.,

For this I have to change any Page format or any thing ??

Thanks.

Suri

Read only

0 Likes
1,751

Dear Surendher,

I see there are two possibilities for the same.

1) Calling New-Page in your SAP-Script.

2) You might have ended the form after printing the first detail and start a new form.

If any of these things have been done, Remove it. Your problem will get solved.

Regards,

Sandip

Read only

0 Likes
1,751

Hi Surendher,

Try and use the command PROTECT and ENDPROTECT in your MAIN Window.

I think this should help u in getting all the text to be printed on one page.

Best Regards,

Swanand

Read only

0 Likes
1,751

Hi Surendher,

What you should do is create another window type 'MAIN'. This second MAIN window will get consecutive number 1. Then position this second window next to the first window.

In this way printing will continue on this second main window on the same page and after filling this window printing is continued on the next page.

Does this solve your problem?

Regards,

John.

Read only

0 Likes
1,751

How can I create two Main window in one page ???

I tryed to create, but send me an error saying that only one Main window can be create per page.

Thanks

Renato

Read only

Former Member
0 Likes
1,751

Hi John,

I Created window main01 as per your reply,.Still same problem

Thanks.

Suri.,

Read only

0 Likes
1,751

Hi Surendher,

Sorry I overlooked your measurements being CM and MM. Is it correct that you defined you main window just a little bit smaller than your page size (13,81 versus 15,1 cm)?

In that case the only reason why only half the page is printed should be a NEW-PAGE statement somewhere in your main window. Could you please check?

Regards,

John.

Read only

Former Member
0 Likes
1,751

Dear John.,

If we create two main windows for One Page.,for this we need to change any thing in Print Program.,

I contacted the SAP-Customer Service .,they came up same Idea.,

waiting for ur reply.,

Thanks.,

Surendher Reddy.Baddam

Read only

0 Likes
1,751

Hi Surendher,

Nothing has to be changed in the print program for having 2 main windows on one page. When the main window is full the next main window will be filled. Normally this results in a page break as there is only one main window in a script. But when there are 2 main windows one page printing will continue in the second main window.

Regards,

John.

Read only

Former Member
0 Likes
1,751

Dear John.,

Actually my problem is >>

Page Format is Half of the A4(i.e., >>width 24 CM

Height 12.5 CM

Now if I print(Dot Matrix) on A4 Paper two Page(SAP Script Pages) should print in the same A4 paper like first half one document and second half one document. But, system is ignoring the second half and second document is getting pring in another A4 paper. Hope u r clear now. Is it the way how System behaves? Any way to avoid this????

Thanks

Suri

Read only

0 Likes
1,751

Hi Surendher,

I'm afraid it is still not completely clear to me. Please check if I understood your problem well:

1. The actual page size in the Printer is A4

2. You use a page format in SAP scipt which is half A4

3. You have created 2 main windows on the same page window positioned next to each other.

Is this correct?

Regards,

John.

Read only

Former Member
0 Likes
1,751

Yes John.,

Your right., but only one MAIN window .,

Suri.,

Read only

0 Likes
1,751

Why don't you give a A4 pageformat in sapscript,if your actual page is A4?

Is there a problem with it?

Message was edited by: Fuat Ulugay

Read only

amudhans
Explorer
0 Likes
1,751

Hi Surendhar,

Any number of MAIN windows can be created within a form and assigned to pages. The only restriction I know of is that they all have to have the same width.(In graphical mode systems does it automatically).

I think you are not able to print all the contents in the MAIN window because it overflows and skips to next page. Did I understand your question correctly?

If so to solve this problem try re-designing the existing MAIN window. If you increase the height of the MAIN window without overlapping on other windows if any, you should be all set. Please let me know if this works.

Read only

Former Member
0 Likes
1,751

hi !! there,

I dont know how to put our Question at SDN blogs, so pls tell me the way and also give the soln if you know that.

I m a SDN member. I hv seen ur email id there & i hv a query that is

I hv created a page format & device & format type according to your email at SDN.

my page sige is 420 MM 297MM P

It has creted suceesfully & I hv defing it my YSAP scripts too even Print Privew gives the perfect Result but when take print out it prints only half of the preivew I mean it do not print full page at 132 column stationary on DOT matrix Printer.

Pls do reply with solution.

Thnx & Rgds.,

Manju Modi

Ahmedabad