cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript query ADDRESS PARAGRAPH AS...ENDADDRESS

Former Member
0 Kudos

good day experst...

i have a query regarding ADDRESS PARAGRAPH AS...ENDADDRESS...

ADDRESS PARAGRAPH AS

TITLE &LFA1-ANRED&

NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-STRAS&, &ANAME1&,

LOCATION &ANAME2&,

STREET &ANAME1&, &ANAME2&

POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

CITY &LFA1-ORT01&

POSTCODE &LFA1-PSTLZ&

REGION &LFA1-REGIO&

ENDADDRESS

ADDRESS PARAGRAPH AS

COUNTRY &LFA1-LAND1&

ENDADDRESS

my problem with this is i cannot display LOCATION &ANAME2&, when i print my Purchased order form...

&ANAME2& - Street3 address of the vendor i get this in TCODE MKVZ under Street Address

please help how can i display this...

thank you

Accepted Solutions (1)

Accepted Solutions (1)

former_member387317
Active Contributor
0 Kudos

Hi Bernadette,

Check out the table entry in tables ADRC and LFA1

Also check if it's just Typo..

&ANAME1&, instead of &LFA1-ANAME1&,

LOCATION &LFA1-ANAME2&, instead of LOCATION &LFA1-ANAME2&, OR LOCATION &LFA1-NAME2&,

Check whether you forgot to keep the workaread name before fileld... etc..

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

Answers (1)

Answers (1)

Former Member
0 Kudos

Check this

LOCATION &ANAME2&,

STREET &ANAME1&, &ANAME2&

Same variable &ANAME2& is used twice, check is the value coming in second time.

If not value is blank. Else check the type of line that you specify in first column . it should be same in both lines.

You have to use command line /: .

Hope this helps you.

Former Member
0 Kudos

hello experts...

im sorry i fortgot to comment the line STREET... this is the original code...

regarding &ANAME1& and &ANAME2& is not in table LFA1...

if u can check in tcode MKVZ we can see there the vendor Street Address.

ANAME1 = Street 2.

ANAME2 = Street 3.

In PO print preview &ANAME1& is being display but &ANAME2& which is under LOCATION is not...

this is the original code...

ADDRESS PARAGRAPH AS

TITLE &LFA1-ANRED&

NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-STRAS&, &ANAME1&,

LOCATION &ANAME2&,

POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

CITY &LFA1-ORT01&

POSTCODE &LFA1-PSTLZ&

REGION &LFA1-REGIO&

ENDADDRESS

ADDRESS PARAGRAPH AS

COUNTRY &LFA1-LAND1&

ENDADDRESS

Please help me on this...

Thank you

Former Member
0 Kudos

hello,,,

and also ANAME1 and ANAME2 is not available in LFA1 but in ADRC table it is available

field STR SUPPL1, STR SUPPL2... how can i add this...

thank you

former_member156446
Active Contributor
0 Kudos

try to change from country &LFA1-LAND1& in debugger and see if that makes any diff.

Former Member
0 Kudos

Solved already...