on 11-19-2009 3:50 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.