Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

address update in the smartforms - help in smartforms

Former Member
0 Likes
1,489

hi folks,

I need to display the address in the smartform in a particular format like this:

Target

120 Adams Ave

LINCOLN MN 55120-1234

where as using the 'address node' in the smartform the address gets displayed like this,

Company

Target

120 Adams Ave

LINCOLN MN 55120

USA.

How can I change to the required format?

Thanks in advance

Santhosh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,196

Hi

I suggest to not use the Address statement of Smartform which is a pre-formatted block.

You can use your own address layout selecting data in the ADRC table with your add number.

Hope it helps,

Erwan.

7 REPLIES 7
Read only

Former Member
0 Likes
1,196

Hi Santosh

Go to your form, See if 'Company' is hardcoded on the Smartform? If yes, remove it.

And for 'USA', see if there is any field like 'land'/'land1' there? If yes, remove it.

Regards

Ashish Jain

Read only

Former Member
0 Likes
1,197

Hi

I suggest to not use the Address statement of Smartform which is a pre-formatted block.

You can use your own address layout selecting data in the ADRC table with your add number.

Hope it helps,

Erwan.

Read only

Former Member
0 Likes
1,196

Santhosh, according to the SmartForms on-line documentation, FM ADDRESS_INTO_PRINTFORM is used to format the address according to country standards. You can implement a user exit to format the address in any format you want. Also, to get rid of the USA, put US in the SENDING COUNTRY BOX. Hope this helps.

Buster Hale

Read only

Vinod_Chandran
Active Contributor
0 Likes
1,196

Hi Santosh,

Two ways you can format the address.

1. Instead of using the address node, have a text node and give fields for the address. You can get the complete address using the function module ADDR_GET.

2. Otherwise implementing the user exit SZAD0001. You can get an extensive help on this in the exit (SMOD).

Thanks

Vinod

Read only

0 Likes
1,196

Thanks Vinod I went ahead did that. It really helped.

Read only

0 Likes
1,196

hi Vinod,

I used that approach before your posting and got it, but definitely thanks.

Read only

Former Member
0 Likes
1,196

Hi Santhosh,

I am also getting that COMPANY when i used address node.

Can you please share the complete solution here.

Thanks

Kiran