cancel
Showing results for 
Search instead for 
Did you mean: 

Change Address in SmartForms

Former Member
0 Kudos

Hai,

i have a doubt in smartforms 'if u want to change the address in smartforms what can i do? is there any event or not.

plz tell me.

Edited by: Alvaro Tejada Galindo on Apr 2, 2008 6:10 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi kanigiri reddy ,

If you are intended to change address dynamically based on ADDRESS NUMBER. Just follow the below steps...

1) declare the gloabal variable in global definitions.

        v_adrnr type kna1-adrnr
2)  Place the program lines before the addresswindow ....write the query like.....
       select single adrnr from kna1 
                                  into v_adrnr
                                  where kunnr eq waitab-kunnr.

3) go to address --> general attributes --> Address Number place the &v_adrnr&

Then you work will be done.....

If you are looking something else ....please little bit elaborate ur requirement,.....

All the very best.....

Regards,

Sreenivasa Sarma.K.

Former Member
0 Kudos

hi reddy,

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).

regards

karthik

<REMOVED BY MODERATOR>

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

Edited by: Alvaro Tejada Galindo on Apr 2, 2008 6:10 PM

Former Member
0 Kudos

Hi,

When u create a address window..

In edit mode u have to give the address code ( 4-digit).

Address code represents the address of the company. U can change this address code to achieve ur requirement.

Regards

Syed A