I recently had the Problem that when used page numbering in Smartform like this

&SFSY-FORMPAGES& / &SAPSCRIPT-FORMPAGES&

in long documents it showed:

1/*
2/*

but later

10/25
11/25

It seems that the length of the second part FORMPAGES is related to the length of the first part, and that why there is not enough space anymore for the 25. * is typically used as a starting char, when there is content longer than the space available.

So i found an override for this with formatting options.

&SFSY-FORMPAGES(3ZC)& / &SAPSCRIPT-FORMPAGES(3ZC)&

where :
3 = output length of data
Z = suppress leading zeroes
C = compress blank spaces



Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Team Lead
Contact : serkurumsal@yandex.com