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

sapscript, turn the window

Former Member
0 Likes
1,483

Hallo,

I have an sapscript, where the pages are in landscape format. In the last page, I want to display the address of the business partner on the back side of the paper, but it must be shown from up to down and not from left to the rigth, because it is used to be displayed in the envelope.

Wrong:


abap street 10


It should be written in the following direction:


a

b

a

p

.

.

-


(but the letters in the rigth direction ...

Thanks a lot,

marcos

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,331

I don't think this is possible with sapscript.

Regards

Rich Heilman

10 REPLIES 10
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,332

I don't think this is possible with sapscript.

Regards

Rich Heilman

Read only

Former Member
0 Likes
1,331

Not Possible ..

Regards,

Santosh

Read only

Former Member
0 Likes
1,331

and maybe to generate a picture with the text and turn the picture to be displayed?

Cheers

marcos

Read only

0 Likes
1,331

I do not know of a way to dynamically create an image and then use this in a sapscript. The image would need to exist already and be uploaded to SAP via SE78. And the image will already have to be rotated .

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,331

hi,

It can be done in sap scripts by using Print controls.

Regards,

Sailaja.

Read only

Former Member
0 Likes
1,330

hi,

Sometimes you may want to print text vertically. SAPscript itself is not able to print text vertically, but you can inform the printer to do this. To rotate the window during the printing, you need two separate print controls. You have to include the print controls so that they

enclose the content (text, bar codes, graphics) you want to print vertically.

The content of the window should have the following structure.

print-control zm200

write your text

print-control zm300

The print control ZM200 informs the printer to print the following text vertically. The print control ZM300 informs the printer to return to horizontal printing.

The specific print sequences for the print controls can be found in the documentation of your printer type.

SAPscript, however, interprets the window’s content as horizontal text. Therefore, if you execute the test printing function in SAPscript, the text will be printed horizontal. To check the printout, you have to print the form starting the print program from the application.

To print text vertically, perform the following steps in the recommended order:

1. If necessary, copy a standard printer type

2. Create the print control that informs the printer to print vertically

3. Create the print control that informs the printer to return to horizontal printing

4. Create a new window for vertical printing.

Make sure that the window does not overlap with other windows or stand out of the page during the printing.

5. Include the print controls in the new window

Regards,

Sailaja.

Read only

0 Likes
1,330

When using PRINT-CONTROLS, you must remember that this is specific to device types. So if you try to print the same document on a printer which does not use the device type which as been modified to handle the print-controls, then the text will not be rotated. So in other words, you are making your sapscript "printer specific", which may be ok in your case.

Regards,

Rich Heilman

Salilaja, please correct me if I'm wrong.

Read only

Former Member
0 Likes
1,330

Thanks Sailaja,

Your reply was very informative. I learnt about this print control (though, are printer specific) after reading your reply.

Regards,

Raj

Read only

Former Member
0 Likes
1,330

hi,

Yes Rich. It will be printer-specific.

Regards,

Sailaja.

Read only

Former Member
0 Likes
1,330

Hi,

thank you very much for your answers, but I should not use the specific printing-controls of the printer. I must print some pages in landscape and a little text in portrait in the last page, maybe I should do it in smartforms.

Thank you again

marcos