Application Development 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: 

Display Formpage in smartform

Former Member
0 Kudos

hi,

in CREDIT MEMO smartform, i have to display page number and total form pages ( e.g- 1 of 10 ), i am using sfsy variable formpages,it is working properly for total pages upto 9, but when total pages are 10 or greater than 10 it displays as 1 of *, then i tried displaying it by &sfsy-formpages(Z4.0)&, now this is also not working.

please help.

regards,

Rajyalaxmi

9 REPLIES 9

Former Member
0 Kudos

Hi,

This is because of the type of the window you use. Change the window type of the page number window to Final Window. This will solve your problem.

former_member188685
Active Contributor
0 Kudos

If you can change the window type from Secondary to Final Window

Then your problem will be resolved.

Former Member
0 Kudos

hi,

do one thing .declare one Global variable type I.

gv_pages type i.

In program lines assgin from pages to that global varialble .

gv_pages = sfsy-formpages.

pages/&gv_pages&.

Just try like this ..

Regards,

kumar.

Former Member
0 Kudos

please tell me where to change the window type

regards,

rajyalaxmi

0 Kudos

In the general Attributes of the window you can change the type of the window.

0 Kudos

Click on the window on Left Tree.

Now you can see the Right side General Attributes

There you can see a list box

Window type

Main window
Secondary window
Copies window
Final window

choose the Final Window ,

Former Member
0 Kudos

Hi,

You can use &SFSY-FORMPAGES(3Z)& instead of &SFSY-FORMPAGES&

I think it will work.

Reward if it is useful.

Former Member
0 Kudos

i am working on 4.6c version, window general attribute contains only 1 check box 'main window'

please help, what to do?

0 Kudos

Create a new window, this will be a FINAL WINDOW, create a text, write SFSY-FORMPAGES(4ZC) and put on where you want to show the total pages.