Ask the Expert

When asterisks attack in the page numbering window

We have created a 10-page PO using Smart Forms. The page numbering window behaves rather oddly. Instead of showing:
Page 1 of 10,
Page 2 of 10,
. . .
Page 9 of 10,
Page 10 of 10

it shows:
Page 1 of *,
Page 2 of *,
. . .
Page 9 of *,
Page 10 of 10

Have you encountered this same kind of problem before?

    Requires Free Membership to View

Yes, I have. This problem can pop up in both SAPscript and Smart Forms. When there is not enough room to output all in the information in a form field, SAP replaces the first character with an asterisk. For these particular fields, the system appears to have reserved only one character – hence, the '*'.

In the present case, the solution is to override the default output length for the total pages field. In Smart Forms one way to do so is to change the field to read: &SFSY-FORMPAGES(3ZC)&. In SAPscript, the corresponding change would be: &SAPSCRIPT-FORMPAGES(3ZC)&.

The information inside the parentheses represents formatting options, as follows:

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

For further details and related notes see Note 588352 in the SAP Service Marketplace (http://service.sap.com).
 

This was first published in April 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: