cancel
Showing results for 
Search instead for 
Did you mean: 

sfsy-formpages printing as # when total number of pages is > 9

Former Member
0 Kudos

Hi,

I know there is a sap note related to this..but not able to understand it properly..can anyone give me the easier solution to solve the problem ....Thanks in advance..

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi Sweta,

As others have also told that to make the window in which you are printing &sfsy-formpages& from variable window to final window, in final window it will print the proper page number.

With luck,

Pritam.

Former Member
0 Kudos

There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)&

eg&SFSY-FORMPAGES(3ZC)&--->3-outputlen,c-condense,z-delete leading zeroes

the various text formatting options in Smartforms:

&symbol(Z)& Omit Leading Zeros

&symbol(S)& Omit Leading Sign

&symbol(<)& Display Leading Sign to the Left

&symbol(>)& Display Leading Sign to the Right

&symbol(C)& Compress Spaces

&symbol(.N)& Display upto N decimal places

&symbol(T)& Omit thousands separator

&symbol(R)& Right justified

&symbol(I)& Suppress output of the initial value

Former Member
0 Kudos

Hi,

Click the Window where you have defined Page number.

Now go to text Editor->Cut(Ctrl+X) the &sfsy-formpages& .

Now goto menu path INSERT->Symbols->New.

Now in the New screen Put the &sfsy-formpages& in Input of Symbol name. Click tick button.

Again goto Text Editor Replace &sfsy-formpages4(4CZ)& as &sfsy-formpages0(4CZ)&.

Now go to back , check and Activate. Problem is solved.

Regards,

Sujit

Former Member
0 Kudos

Hi sweta,

In case if you have assign window to your sy-formpages then change that particular window type as FINAL WINDOW then your problem will be resolved.

Regards,

Sravanthi

Former Member
0 Kudos

hi swetha

Declare the window as FINAL WINDOW where you are printing sfsy-formpages.

Reward if it is usefull,

Regards,

KP

former_member188685
Active Contributor
0 Kudos

Simple Solution:-

what ever the window you are print the page numbers , change that window Type To "FINAL".

If you Don't know how to change follow this..

Double click on the Window (on which you are showing the page numbers) .

Right side Area, you can see General Attributes , in that you can find the Window Type

It is Dropdown List box, Choose the "FInal Type" From it.

Save and Activate. Now test the smartform.

naimesh_patel
Active Contributor
0 Kudos

Use &SFSY-FORMPAGES(4ZC)& instead of the &SFSY-FORMPAGES& to print the total number of pages.

This will not print * or # till 9999 pages.

Regards,

Naimesh Patel