cancel
Showing results for 
Search instead for 
Did you mean: 

Total Pages in Smartforms

Former Member
0 Kudos

Hi,

How to get total number of Pages in a Smartform ?

I am displaying Customer Statement in Smartform...

In Main window I am display one table and in another window (same page, in the bottom) I am displaying values from another table.

I want to display certain text below these tables but only in the last page. How to do it ??

( I tried SFSY-PAGE = SFSY_FORMPAGES( and JOBPAGES) in the conditions but no use )

Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

jay_dalwadi
Participant
0 Kudos

after main windows.

&SFSY-PAGE& of &SFSY-FORMPAGES&

aidan_black
Active Contributor
0 Kudos

Hi Rahju,

Try using a late processing window(type Final Window) for the window with the page total.

In your Smartform, double click on the window node. Now select the tab strip 'General attributes'. Here you can select the 'Window type'. The type 'Final window' is the 'late processing window'.

Regards,

Aidan

Former Member
0 Kudos

Hi Raghu,

Write a code using COMMAND control which breaks the page..inside this count the pages...

lv_page = sfsy-formpages + lv_page.

And at the end of page display the total...

hope this may work..

regards.,

Prashant

naimesh_patel
Active Contributor
0 Kudos

You can set the checkbox "Only After End of Main Window" on your Text node under the Conditions tab.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Naimesh,

I tried that... if I put that condition ... no text is display.. any guess y ?

naimesh_patel
Active Contributor
0 Kudos

Make sure your Window which contains the Text is after the Main Window in the sequence.

Regards,

Naimesh Patel