I am providing a vendor address number from LFA1-ADRNR. There are one or two fields in the vendor master that are...
not filled in, so my Smart Form prints out a blank line. The users do not want this blank line printed out in the form. Is there any way in Smart Forms that I can prevent printing out blank address lines?
It seems like you are using an address node, and not a free-form text node with explicit address fields, which was the way things used to be done in SAPscript. This is good. The key strength in address nodes is the standardized way they rely upon address numbers and a few other key pieces of information to format addresses properly and consistently. However, a minor negative is that we lose some of the fine-tuned control available to us with explicit address formatting from SAPscript (e.g. deliberately suppressing certain lines).
Here is a simple test to simulate how a vendor address will look on output:
- Go to vendor display (transaction FK03)
- Select a vendor
- Click on the address option under 'General data' and press enter
- On the next screen, click the 'print preview' icon
The address which appears should resemble the one you see on your Smart Form output. From here you can click on the 'change parameters' icon to tweak the settings. One of these settings, maximum number of lines, is something which you have control over in your Smart Form's address node. Perhaps reducing this number will squeeze out the blank lines you currently see. Once you determine the proper value, update it within your form's address node. If the address appears fine in vendor display, but not on your form, double-check the address node to see if something else might be wrong with it (e.g. sending country).
Incidentally, the 'print preview' and 'change parameters' icons are available for other address types in SAP as well. They provide a quick diagnostic to determine if addresses are printing correctly on a form.
Dig Deeper on SAP selection and implementation
Related Q&A from Mark Smithson
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
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