cancel
Showing results for 
Search instead for 
Did you mean: 

regarding different page formats

rohit_kaikala
Participant
0 Kudos

Hi All,

My requirement is:

Different pages with different formats means

page 1: Landscape

page2: Portrait.....etc

Tel me the steps clearly.

Regards,

Rohit

Accepted Solutions (0)

Answers (4)

Answers (4)

rohit_kaikala
Participant
0 Kudos

k

former_member196280
Active Contributor
0 Kudos

Different Page formats can be done easily in case of smartform, while coming to SAP script you have to modify your driver program and make sure you create two forms with different page format, i.e. first form with PORTRAIT and second form with LANDSCAPE format.

Now, inside your driver program, build your logic, make sure to close the first form before you open the second form inside your program.

Ex: let us say we have an internal table with 20 line items

Now assume that you want to print 10 line item in first page(portrait) and remaining on second page(landscape)

OPEN_FORM <FIRST FORM>

FLAG = 'X'.

Loop <internal table>

IF SY-TABIX > 10.

IF FLAG = 'X'.

CLOSE_FORM<FIRST_FORM>

OPEN_FORM<SECOND FORM>

CLEAR FLAG.

ENDLOOP.

IF FLAG = 'X'.

CLOSE_FORM <First Form>

ELSE.

CLOSE_FORM < Second Form>

Endif.

Rgds,

SaiRam

Former Member
0 Kudos

hi,

you can mannually set this by using radio button for page nodes( Landscape

or Portrait).

but make sure that you have selected the right option, since the size of the windows will be according to the page size..

pradeep

Former Member
0 Kudos

Hi Rohit,

Double click on page node....

Output Options tab --> select radio button of your page format.

You can set it for each page

regards

padma