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

display address

Former Member
0 Likes
1,352

Hi experts,

Iam working on smartforms and used SAP address to display address of the customer.In the program lines i have given code like this.

read table t_hdb index 1.

g_adrnr = t_hdb-adrnr1.

in the address number i have givne &g_adrnr&

In the t_hdb i have 5 records with 5 different address numbers.So i have to get 5 reports,and every report i should get different Address of the customers.How can i do that?

reward guaranteed

cheers

kaki

Hi experts,

Iam working on smartforms and used SAP address to display address of the customer.In the program lines i have given code like this.

read table t_hdb index 1.

g_adrnr = t_hdb-adrnr1.

in the address number i have givne &g_adrnr&

In the t_hdb i have 5 records with 5 different address numbers.So i have to get 5 reports,and every report i should get different Address of the customers.How can i do that?

reward guaranteed

cheers

kaki

10 REPLIES 10
Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,320

u can do it in /:address

/:end address

Read only

0 Likes
1,320

Hi,

Where can i do this? Iam working on Smartforms.Can you tell me step by step.

Read only

0 Likes
1,320

Hi,

check this thread..

regards

vijay

Read only

0 Likes
1,320

in text editor u can give

/: ADDRESS PARAGRAPH AS

/: TITLE &ANRED&

/: NAME &NAME1&, &NAME2&, &NAME3&, NAME4&

/: STREET &STRAS&

/: POBOX &PFACH& CODE &PSTL2&

/: CITY &ORT01&, &ORT02&

/: POSTCODE &PSTLZ&

/: COUNTRY &LAND1&

/: REGION &REGIO&

/: FROMCOUNTRY &INLND&

/: ADDRESSNUMBER &ADRNR&

/: ENDADDRESS

Read only

0 Likes
1,320

ADDRESS_INTO_PRINTFORM , u can also use this fn module in ur program.

Read only

0 Likes
1,320

Hi hyma,

I found FM ADDR_GET.

Can you tell me how to use this FM into smartforms text editor.

Iam trying to use

/: ADDRESS

/:

/: ENDADDRESS

but same thing iam getting in the output.Not the value.

Where iam doing wrong?Do you have any example for the to display multiple address?

Read only

0 Likes
1,320

u cant use fn module in text editor, use that in the print profram.

u can use the fn module what i mentioned too

Read only

0 Likes
1,320

You mean to say i have to use FM in se38 and i have to call the ITAB into SF text.In that i have to call itab values like

/: ADDRESS PARAGRAPH AS

/: TITLE &

itab-ANRED

&

/: NAME &NAME1&, &NAME2&, &NAME3&, NAME4&

/: STREET &STRAS&

/: POBOX &PFACH& CODE &PSTL2&

/: CITY &ORT01&, &ORT02&

/: POSTCODE &PSTLZ&

/: COUNTRY &LAND1&

/: REGION ®IO&

/: FROMCOUNTRY &INLND&

/: ADDRESSNUMBER &ADRNR&

/: ENDADDRESS

Is it ? In that case address alignment get distrubed??

Read only

0 Likes
1,320

i mean , one of the above two methods.

if u use fn module, then no need to use

/:adrres /:end address

Read only

0 Likes
1,320

you could create an address element in the smartform by righ-clicking and then clicking on create address, in the window that opens up check the organizational address radio button and then fill the address number field with address number you are getting from your se38 program &ADRNR& along with a text element before the address element which prints a label like 'BILL TO PARTY: ' or 'SHIP TO PARTY: ' as required.