cancel
Showing results for 
Search instead for 
Did you mean: 

How to have a default page at the end for scripts?

former_member228751
Contributor
0 Kudos

Hi,

I have two pages defined in the script.

FIRST - next page NEXT.

NEXT - next page NEXT.

But now the requirement is to have a default 3 (default like some lines) pages at the end.

E.g. If I have 5 pages in the output, I should get 8 pages having last 3 pages as some continuous texts..

How can I do it? How to have a default page at the end?

P.S. - I have created thrid page with a window having a standard text which contains all the three pages continuous text.

I have used NEW-PAGE command also to call third page but still does not work.

Thanks,

Sachin

Edited by: Sachin Dandekar on Aug 18, 2009 3:32 PM

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member228751
Contributor
0 Kudos

I have defined in basic settings also.

The thing is that

For 4 pages I am getting:

for page1 &SAPSCRIPT-FORMPAGES& is 0

for page2 &SAPSCRIPT-FORMPAGES& is 1

for page3 &SAPSCRIPT-FORMPAGES& is 2

for page4 &SAPSCRIPT-FORMPAGES& is 3

Dont know whats the reason?

Sachin

Former Member
0 Kudos

Hi Sachin ,

Check in debugging . Hope u will get the solution .

Regards,

Rediez.

former_member228751
Contributor
0 Kudos

Hi Rahul,

Page counter MODE is INC only in Standard Attributes of the Last Page.

But still facing same issue. As far as I know SAPSCRIPT-FORMPAGES will store total number of pages of the output. But here for first page I am getting its value as 0 and second page is 1.

Thanks,

Sachin

former_member187457
Active Contributor
0 Kudos

Try to set the Mode to START for First page...

in the Basic Setting have you given the First page name..plz check that also..

Edited by: Rahul Keshav on Aug 20, 2009 6:25 PM

Former Member
0 Kudos

Hi Sachin ,

Assume that first 5 will be displaying the data and next 3 pages will be some text - totally 8 pages of data u want as o/p .

assume that first page as page1

Second page as page2

............................... 3

................................4

............................

................................ page8

u can give in first page(page1) next page page2

page2 nextpage page3

page3 nextpage page4

page4 nextpage page5

page5 nextpage page6

page6 nextpage page7

page7 nextpage page8

page8 nextpage page1

Hope this will be helpful . Please letme know if there any queries on this .........

Regards,

Rediez.

former_member228751
Contributor
0 Kudos

Hi Ruchi,

Thanks a lot.

I am able to print the last page at the end now.

For printing page number I am wirting in one of the window as:

Page &PAGE& Of &SAPSCRIPT-FORMPAGES(C)&.

But for 2 page output,I am getting as

Page 1 of 1

Page 2 of 1.

Ideally it should be:

Page 1 of 2

Page 2 of 2.

Pleas help.

Thanks,

Sachin

former_member187457
Active Contributor
0 Kudos

Hi SD,

Change the Page counter MODE to INC in Standard Attributes of the Page....

thnx

Rahul

Former Member
0 Kudos

Hi Sachin ,

Page &PAGE& Of &SAPSCRIPT-FORMPAGES(C)&.

in the above statement remove the (C) and try it..

Hope it will help you. Please let me know any issues in this ....

Regards ,

Rediez.

Edited by: Rediez on Aug 20, 2009 5:13 PM

former_member228751
Contributor
0 Kudos

Hi Ruchi,

I have created page last and calling an include which has all the texts.

ALso in NEXT page. in MAIN window, I have written NEW PAGE LAST command. But still it does not print the last page.

Can anyone help me out?

Thanks,

Sachin

Former Member
0 Kudos

Have u called the element (under which u r calling last page ) in driver program

call the element with function write_form.

this will definetly solve ur problem because i faced the same problem as urs.....

Former Member
0 Kudos

create new page called last and put next page as last.

now create an element in the script like :-

/E test

if .....

/: new-page last

endif.

now in ur driver program

call the element with write form.

Let me know in case of problem

Thanks,

Ruchi