2006 Feb 07 5:37 AM
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
2006 Feb 07 5:43 AM
2006 Feb 07 5:44 AM
Hi,
Where can i do this? Iam working on Smartforms.Can you tell me step by step.
2006 Feb 07 5:49 AM
2006 Feb 07 5:51 AM
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 ®IO&
/: FROMCOUNTRY &INLND&
/: ADDRESSNUMBER &ADRNR&
/: ENDADDRESS
2006 Feb 07 5:53 AM
ADDRESS_INTO_PRINTFORM , u can also use this fn module in ur program.
2006 Feb 07 6:18 AM
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?
2006 Feb 07 6:25 AM
u cant use fn module in text editor, use that in the print profram.
u can use the fn module what i mentioned too
2006 Feb 07 6:29 AM
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??
2006 Feb 07 6:32 AM
i mean , one of the above two methods.
if u use fn module, then no need to use
/:adrres /:end address
2006 Feb 07 6:39 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |