on 09-10-2008 2:49 PM
Hi sap guru's,
I have a dought...please give me solution.
In script iam displaying delivery address using
"Address and Endaddress "..
actuvally i displayed address like " street,
city,
country".
If i want to change the details like "city , country". how to change?? plz help me in this case...
If you're providing the addrnumber in ADDRESS - ENDADDRESS the only way to change the format would be via the enhancement spot SZAD0001. It's won't be easy if you've never done it before, look up 'Address layout key' and you might find some help.
It would be easier to add a perform using the addrnumber to get the address in the SADR structure. Then use ADDRESS - ENDADDRESS and pass all the SADR values except COUNTRY and REGION. Then put Region, Country after the ENDADDRESS.
And if this is a mailing address be aware you won't be following postal regulations if you put the country on the same line as the region. B)
All in all it's alot of trouble to go through just to save one line.
Example
/: PERFORM GET_SADR1 IN PROGRAM ZZAPFM06P
/: USING &ADDRNUMBER&
/: CHANGING &SADR1-NAME1&
/: CHANGING &SADR1-NAME2&
/: CHANGING &SADR1-NAME3&
/: CHANGING &SADR1-NAME4&
/: CHANGING &SADR1-STRAS&
/: CHANGING &SADR1-PFACH&
/: CHANGING &SADR1-PSTL2&
/: CHANGING &SADR1-PSTLZ&
/: CHANGING &SADR1-ORT01&
/: CHANGING &SADR1-ORT02&
/: CHANGING &SADR1-REGIO&
/: CHANGING &SADR1-LAND1&
/: ENDPERFORM
/: ADDRESS DELIVERY PARAGRAPH T1
/: NAME &SADR1-NAME1&
/: STREET &SADR1-STRAS&
/: CITY &SADR1-ORT01&, &SADR1-ORT02&
/: POSTCODE &SADR1-PSTLZ&
/: FROMCOUNTRY 'CA'
/: ENDADDRESS
T1 &SADR1-REGIO&, &SADR1-LAND1&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
If my understanding is correct, you can change the text of the particular filed ( in the line editor of SE71 ) if you want to change those details. If not clear ,post your requirement clearly and what exactly you want to change.
Regards,
Hema.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My req is i want to display delivery address with some changes...
Presently displaying address like this:
Address
CCCC,
h.no: 123,
kk mangla,
Bangal,
Kalkatta,
India.
Endaddress.
____________________
but i want to display with small change..
Address
CCCC,
h.no: 123,
kk mangla,
Bangal,
Kalkatta, India ****change made here**
Endaddress.
i think than you need to print address speperately i mean without address endaddress using.cause its formatting is by default.but am not very much sure.
you can try like this:
firrst fetch address number than print address by different variable like
use TAB between city and country and define like this in script.
P1 &City& ,, &country&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.