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

SAPScripts

Former Member
0 Likes
667

Hi Group,

i need to develop a sapscript for duplex printing, wherein front page is Landscape oriented n back page is Portrait.

1. Is it possible??

2. Please explain briefly the steps required for DUPLEX printing using SAPSCRIPT/SMARTFORMS.

ur valuable inputs awaited.

Thanks & Regards,

Bikash

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
649

Hi Bikesh,

your Requirement :

Front page is Landscape oriented n back page is Portrait

---I am not sure about Scripts. But you can do it in smartforms.

YOu can set page orientation at

PAGE> Output Options> Page format (Landscape/Ptrait)

--> Print Mode --D for Duplex.

Regards,

Lanka

5 REPLIES 5
Read only

Former Member
0 Likes
649

Hi,

Yes you can get the duplex printing from both script & smartform provided your printer has the settings.

In the script

Page standard attributes,you have print mode.give it as "D".

In smartforms

Page-->Output options,it has the same thing.

Read only

Former Member
0 Likes
650

Hi Bikesh,

your Requirement :

Front page is Landscape oriented n back page is Portrait

---I am not sure about Scripts. But you can do it in smartforms.

YOu can set page orientation at

PAGE> Output Options> Page format (Landscape/Ptrait)

--> Print Mode --D for Duplex.

Regards,

Lanka

Read only

0 Likes
649

In the smart forms it’s simple since you can set the orientation at Page level.

Define two pages front page with Landscape oriented n back page is Portrait.

But for the scripts orientation is not defined at page level, entire form has same orientation, its either portrait or landscape. To get the different orientation for the back page, define a new script/form which contains back page with portrait orientation. Call this form using start_form function module from first page layout printing program.

Hope this helps you.

Thanks,

Vamshi

Read only

0 Likes
649

Vamshi,

if i generate 2 sapscripts for my document, is it possible that i get these 2 to get printed in the same sheet??, ie via duplex printing??? if yes, then how??

Thanks & Regards,

Bikash

Read only

0 Likes
649

You will have two scripts but only one print program.

You can call two scripts in one program as follow:

open_form.

.....

  • for the back page

start_form.

....

end_form.

....

close_form.

I did not work on duplex, but as per documentation you need to set print mode for front page( first script)

as duplex the back page will be default i.e, space.

Thanks,

Vamshi