Skip to Content

Force Upper Case City in Smart Forms Addresses

In a form I'm modifying, the address node is set in a way that it accepts a maximum of 4 lines to accommodate 1 line for the vendor name, an extra line for the vendor additional location like department, a 3rd line for the street address and the 4th line for the city, state and zip code. The address is always located in the US.

It prints perfectly in a vendor that requires 4 lines. For 3-line vendor address, it also prints USA for the country which is not desired as all our vendors are located in the US. I fixed this by filling in the "Sending country" with "US". This disables the country printing.

My problem is now the city which is not being converted to upper case. Before when the country is being printed, function module ADDRESS_INTO_PRINTFORM converts the city to upper case but when the "Sending country" is populated, it doesn't convert the city to upper case.

Short of modifying our vendor master to capitalize all cities within the address, is there a Smartforms setting or user exit I can use to accomplish the above, that is forcing the city to upper case?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Feb 15, 2018 at 07:39 PM

    You just can use the address_into_printform exists to create your own routine. So I do not see the problem as you have everything found you need.

    I expect, that you want to change it on all output when there is this requirement and so the exit in the function is the best place to be:-)

    OF course, you could also call the function itself and get the table back, where all the information is identified and do it in your driver-program, but I do not see an advantage of that way.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 15, 2018 at 08:11 PM

    Hi Florian,

    I was not calling the function module address_into_printform directly from a custom code. It is being called by smartforms itself during printing, specifically on our payment runs. This FM is being called on a lot of places like vendor invoice creation, etc. I'm just wondering if there is a user exit, BADI or anything I can do to make the city portion capitalized.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.