cancel
Showing results for 
Search instead for 
Did you mean: 

ADDRESS - ENDADDRESS

Former Member
0 Kudos

Hi All

I have a question regarding this command. I have a problem where NAME2 is not coming through when I pass address number. I was wondering how can I pass address number to ADDRESS - ENDADDRESS and receive back NAME2. I tried using PRIORITY 2 and LINES 10, Have I done this correctly below or is my syntax incorrect?

ADDRESS DELIVERY PARAGRAPH PRIORITY 2 LINES 10

ADDRESSNUMBER &PEKKO-ADRN2(K)&

FROMCOUNTRY &LFA1-LAND1&

ENDADDRESS.

Accepted Solutions (1)

Accepted Solutions (1)

former_member156446
Active Contributor
0 Kudos

Answers (1)

Answers (1)

Former Member
0 Kudos

This content is copy&pasted from above. No ponits should be assigned

-


hi

Check this syntax

/:ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]

/: TITLE title

/: NAME name1[,name2[,name3[,name4]]]

/: PERSON name of natural person [TITLE form of address]

/: PERSONNUMBER number of the personen

/: DEPARTMENT department

/: STREET street name HOUSE house number

/: LOCATION additional location information

/: POBOX po box

/: POSTCODE post code / zip_code

/: CITY city1[,city2]

/: NO_UPPERCASE_FOR_CITY

/: REGION county / state

/: COUNTRY recipient country [LANGUAGE language code]

/: COUNTRY_IN_REC_LANG

/: LANG_FOR_COUNTRY language key

/: FROMCOUNTRY sender country

/: ADDRESSNUMBER address number

/: ENDADDRESS

chek if u have Name2 , even if u donot get it use ABAP Subroutine (PERFORM ENDPERFORM) get the required fields..

use Function module ADDRESS_INTO_PRINTFORM

surya

Edited by: suryareddy on Nov 19, 2009 7:10 AM

Edited by: Julius Bussche on Nov 19, 2009 8:37 PM

Former Member
0 Kudos

If you copy&paste again, then your user ID will be drag&dropped.

You have been warned..

Former Member
0 Kudos

That sort of answered my question because in the link I can see the syntax of priority and lines... but I was more interested in how to change the address format that comes back from ADRNR being passed.

Edited by: Brad Gorlicki on Nov 19, 2009 9:50 PM

brad_bohn
Active Contributor
0 Kudos

If you're sure that there's a NAME2 value for the address number (yeah, I know, dumb question), then you really need to check the address layout key and/or the ADDRESS_INTO_PRINTFORM call. You can test the call directly in the SE37 workbench with the address number in question. What does the NUMBER_OF_USED_LINES export parameter show? You definitely don't want to use PRIORITY = 2 because that means 'override the standard setting and omit NAME2 if there aren't enough lines'. The fact that you specified that and didn't get the value might mean that there are too many other lines involved, though that's hard to believe with 10 lines.

former_member156446
Active Contributor
0 Kudos

try changing the &LFA1-LAND1& and see if Name2 is coming for any other country/land1

Former Member
0 Kudos

I removed the LAND1 reference with no luck. Yep I know NAME2 overrides anything else but I just wanted to see if it would appear. It seems to be using the shortform address no matter what I change? (ADDRESS_INTO_PRINTFORM)

I think I will just specify the NAME2 manually and remove address number.

Thanks for your help.