on 02-14-2018 11:58 PM
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?
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.
b
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
~Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.