Q

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?

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

Dig deeper on SAPscript and Smart Forms

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close