Printing addresses without a country line using SAPscript
The address key is handy for printing addresses, but what if you don't want the country name printed? Expert Mark Smithson lets you know how to disable the country line.
ADDRESS PARAGRAPH AS
This works fine, except that it adds UNITED STATES OF AMERICA as the last line of the address. How can I get rid of it?
I prefer using the address key, as you have done. It requires fewer command lines and is thus a bit cleaner. But there is a parameter you can add that will suppress the country line for domestic addresses. Just above the ADDRESSNUMBER line, insert a FROMCOUNTRY line that will tell the form that this is a domestic address. That should suppress the USA text.
Dig Deeper on SAP development and programming languages
Related Q&A from Mark Smithson
How to fix a slip print-out error in an SAP Smart Form
An SAP user is looking to fix an error with a packing slip print-out in an SAP Smart Form. Continue Reading
Setting soft breakpoints in ABAP that reside in Smart Forms
I've always set hard-coded breakpoints in ABAP code that reside in a Smart Form. Is it possible to set soft breakpoints instead? Continue Reading
Problems with the output device 'LOCL'
I am setting up shop papers (PM) in Smart Forms using Helvetica font. The shop papers were designed with output device LOCL. The output changes (... Continue Reading