We have created a 10-page PO using Smart Forms. The page numbering window behaves rather oddly. Instead of showing:...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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).
Dig Deeper on SAPscript and Smart Forms
Related Q&A from Mark Smithson
An SAP user is working with an SAPscript form to create the form development for an Invoice List, and wants to know if it's possible to migrate the ...continue reading
An SAP user is trying to align a barcode in the center of a defined window on an SAP Smart Form.continue reading
An SAP user is looking to fix an error with a packing slip print-out in an SAP Smart Form.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.