cancel
Showing results for 
Search instead for 
Did you mean: 

How to print last page in sap script in ladscape format?

Former Member
0 Kudos

Hi all,

can any 1 tell me How to print last page in sap script in ladscape format?

Thanks In advance.

Pravin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pravin Sherkar,

we can do this in SAP Scripts.

we need to create two pages, one of landscape and another of potrait.

now after filling the data at last we need to call the page which is of format landscape using START_FORM function module.

You can use condition &PAGE& = &FORMPAGES&.

Please check this link

http://www.sap-img.com/ts013.htm

Best regards,

raam

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi pravin,

define the structure SSFCOMPOP in your print program

in this structure you have a field for print format

then find out the last page by

if &NEXT-PAGE& EQ '0'

<here code the out put format field from stucture SSFCOMPOP.>

endif.

try

Regards,

Chinna

Former Member
0 Kudos
0 Kudos

HAI,

U CANNOT HAVE TWO DIFFERENT PAGE FORMATS IN SCRIPTS.

U CAN DO THIS SMART FORMS.

REGARDS,

SRIDHAR REDDY.

Former Member
0 Kudos

Hi,

You cant do it in SAP Scripts but can achieve with smartforms...

smartforms > page node> output options--> select the page orientation.

regards

padma

Former Member
0 Kudos

In a single script it is not possible.

But we can define that separate page format in anoother script and call that and do programmatically

in this way we can do

Edited by: murali papana on Aug 28, 2008 12:41 AM