cancel
Showing results for 
Search instead for 
Did you mean: 

Last Page in Smartforms

Former Member
0 Kudos

Hi,

I 'm doing a invoice smartforms with lot of page in function to the number of element in a table in the main window.

I have First page and next page in my smartforms.

I want in the last page that they are 1 différent window compared to the first.

What condition i need to do, to display just this window in the last page.

Thanks for your reply.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For the first page....yes ...they would be equal...

If you have any PAGE number window in your FIRST page ...

then use program lines under that window which ofcourse should be FINAL window then only the SFSY-FORMPAGES would calculated correctly ...

in the program lines ...

IF SFSY-PAGE = SFSY-FORMPAGES.

lv_last_page_flag = 'X'.

ENDIF.

then use the flag as a condition to trigger the command and the window.

Hope this is clear.

Regards,

Ram

Answers (10)

Answers (10)

Former Member
0 Kudos

it's solve.

I have create 2 final window.

First Window : condition : SFSY-PAGE <> SFSY-FORMPAGES so in the next page i have the window i need.

Second Window : condition : SFSY-PAGE = SFSY-FORMPAGES so in the last page i have the window i need.

Thanks a lot.

Former Member
0 Kudos

yep it's clear and he calculater pages correctly.

Former Member
0 Kudos

Hi,

Create a new page with the window you would like to display

In the first page create a final window and under that create command node to trigger new page and give the name of the new page with window (created now).

Dont forget to mention the condition in the condition tab

sfsy-page = sfsy-formpages

since it is final window it will first set the formpages and checks for the condition .

regards

padma

Former Member
0 Kudos

thanks for your reply, I'm testing

ram : SFSY-PAGE = SFSY-FORMPAGES, i think it's always equals.

Former Member
0 Kudos

Hi,

In the end of the NEXT page use a command and use the condition as mentioned in my earlier reply and mention the page as Go to ...LAST page.

Else put the window in the NEXT page and use a command as mentioned above to trigger the window in the last page.

Regards,

Ram

Former Member
0 Kudos

Hi,

Simply make the window as FINAL and use the condition as ....

SFSY-PAGE = SFSY-FORMPAGES to the window.

And also position the window appropriately.

Regards,

Ram

Former Member
0 Kudos

In the condition tab of the window which you want to be at the last page only click on the checkbox 'only after end of main window', so it will printed only after your main window in printed.

With luck,

Pritam.

Former Member
0 Kudos

Thanks for your reply.

Yes, i have what i need in my last page, but how can I specify that i'm in the last page?

former_member181995
Active Contributor
0 Kudos

create only that window in last page.nothing else.

Amit.

former_member181995
Active Contributor
0 Kudos

Sr,

in your last page there should be only one window which you desired.

Amit.

Former Member
0 Kudos

Thanks for your reply but :

I have first page, next page and last page.

First page it's ok. The next page ok too.

i'm doing that the "next page" of the "next page" is the next page and not the last page.

But I don't know how to do to have a specific last page who are not a next page or a first page.

exemple :

page 1 > First page ok

page 2 > Next page ok

page 3 > Next page ok

page 4 > Last page not ok.

I can have 4 page as 100 page, and i want the last page was different that the next page and first page.

Former Member
0 Kudos

Hi

go to condition of the window.... -> at last you will find only on page ... - > mentioned last page name there.

With Regards

Nikunj shah