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

Regarding SAP Script multiple page display in diffrent order

Former Member
0 Likes
1,008

Hi All,

I have a issue regarding SAP Script multiple page display.

The actual issue is i have 3 pages in my Layout set.

They are <b>FIRST, SECOND, THIRD</b>, In their attributes for FIRST page NEXTPAGE attribute given as SECOND, For SECOND page NEXTPAGE attribute given as THIRD.

Now what i want is 3rd Page[THIRD] should be displayed as first page in the output. 1st Page[FIRST] should be displayed as second page in the output. 2nd Page[SECOND] should be displayed as third page in the output display.

This scenario i need to control from <b>Print program.</b> not from <b>Layout set</b>.

Can any body tell me how can we solve this issue from <b>Print Program</b>.

Thanks in advance.

Thanks & Regards,

Rayeez.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
853

hi

instead create different layouts, and call them using start_form in which ever order you want.

regards

vijay

Hi All,

I have a issue regarding SAP Script multiple page display.

The actual issue is i have 3 pages in my Layout set.

They are <b>FIRST, SECOND, THIRD</b>, In their attributes for FIRST page NEXTPAGE attribute given as SECOND, For SECOND page NEXTPAGE attribute given as THIRD.

Now what i want is 3rd Page[THIRD] should be displayed as first page in the output. 1st Page[FIRST] should be displayed as second page in the output. 2nd Page[SECOND] should be displayed as third page in the output display.

This scenario i need to control from <b>Print program.</b> not from <b>Layout set</b>.

Can any body tell me how can we solve this issue from <b>Print Program</b>.

Thanks in advance.

Thanks & Regards,

Rayeez.

7 REPLIES 7
Read only

Former Member
0 Likes
854

hi

instead create different layouts, and call them using start_form in which ever order you want.

regards

vijay

Read only

0 Likes
853

Hi Vijay,

My Case is diffrent i already have 3 page in single layout set. i should not change anything in layout set.

Without going for multiple layout set's can't i control printing pages from print program.

I hope you got my issue.

Thanks for your reply.

Thanks & Regards,

Rayeez.

Read only

0 Likes
853

i'm not sure..

i think in this case also

you can try with start form.

first open_from,


CALL FUNCTION 'START_FORM'
 EXPORTING
*   ARCHIVE_INDEX          =
   FORM                   = 'ZTESTFORM'
*   LANGUAGE               = ' '
   STARTPAGE              = 'THIRD'
   PROGRAM                = 'ZTEST'
*   MAIL_APPL_OBJECT       =
* IMPORTING
*   LANGUAGE               =
* EXCEPTIONS
*   FORM                   = 1
*   FORMAT                 = 2
*   UNENDED                = 3
*   UNOPENED               = 4
*   UNUSED                 = 5
*   SPOOL_ERROR            = 6
*   CODEPAGE               = 7
*   OTHERS                 = 8
          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

and then use end_form.

then second page with start form,end_form, similarly first page.

try ..

vijay

Read only

0 Likes
853

that will work for you,

first pass third page ,first page, second page.

using start_form, end_form in side open and close form.

that will do..

Try ...

Start_form has option to specify the startpage,

check that..

vijay

Wish you happy new year.

Read only

madan_ullasa
Contributor
0 Likes
853

hi shaik,

use 3 start_forms.

in the first start_form give

startpage = 'THIRD'

then use all ur WRITE_FORM within this.

and then END_FORM.

do the same for ur first and second page...

Read only

Former Member
0 Likes
853

Hi Rayeez,

I am not fully sure but I suggest some tips,may be this will work for you.

in the 'start_form' function module ,there is a parameter to specify from which page the contents has to be printed or try in control_form function module in which u can specify the page break.

regards,

kranthi namala,

Bristlecone India Ltd.

91+98803.62839.