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

format address in sap script

Former Member
0 Likes
1,831

Hi,

I have a requirement in which i have to modify address displayed using sap script. The address is displayed using ADDRESS... ENDADDRESS. There is only one street field available. I need to display STREET1, STREET2 and STREET3. In the case of names, there is a provision to display up to four names seperated by commas. Please advise what can be done in this situation.

I had tried to use another field for street but most of the fields are already used.

Thanks a lot in advance.

1 ACCEPTED SOLUTION
Read only

DavidLY
Product and Topic Expert
Product and Topic Expert
0 Likes
1,080

Hello,

The standard ADDRESS command really does not

support fields like name_co, street2 and street3. If you

want to print these fields, you can enter the address into

central address management. After that print the address via:

/: ADDRESS

/: ADDRESSNUMBER adress number

/: FROMCOUNTRY sender country

/: ENDADDRESS

where 'address number' is the number of the address. On this

way you will get all fields of the address.

Regards,

David

6 REPLIES 6
Read only

DavidLY
Product and Topic Expert
Product and Topic Expert
0 Likes
1,081

Hello,

The standard ADDRESS command really does not

support fields like name_co, street2 and street3. If you

want to print these fields, you can enter the address into

central address management. After that print the address via:

/: ADDRESS

/: ADDRESSNUMBER adress number

/: FROMCOUNTRY sender country

/: ENDADDRESS

where 'address number' is the number of the address. On this

way you will get all fields of the address.

Regards,

David

Read only

Former Member
0 Likes
1,080

Hi David ,

I have a similar requirement as you are discussing. I am using the same logic what you have said above but the thing is I am not getting the District field (ORT02) by using the standard.

Can you please tell me if I need to do any setting to get the field by passing address number.

You have used the word central address management , can you tell me how do I do that.

Need your support for closing the issue ...

Thanks

Raj

Read only

Former Member
0 Likes
1,080

Good day,

Check this forum it will help you.

Regards and Best wishes.

Read only

Former Member
0 Likes
1,080

Hi,

Thanks a lot for your valuable time.

I was not able to do anything. I had to discuss and make the client understand. Hence I had addedd Street1 and Street 2 after the Name1/Name2 in the NAME field and then Street3 under the STREET.

I had to manipulate it. In case, if i could have done in any better way, Please let me know as it would be helpful in future.

Thank you.

Niranchan.

Read only

Former Member
0 Likes
1,080

Use FM ADDRESS_INTO_PRINTFORM to get the whole address.

Pass the address number to ADDRESS_NUMBER and ADDRESS_TYPE as 1. You will get all the streets maintained in address from parameter ADDRESS_PRINTFORM_TABLE.

You have to call the FM using PERFORM ENDPERFORM statement in the script.

Read only

Former Member
0 Likes
1,080

no comments.