cancel
Showing results for 
Search instead for 
Did you mean: 

problem in printing address in sapscript

Former Member
0 Kudos

Hi all,

Im trying to print the address of vendor in one form.

I have used address endaddress to print the address of the vendor.

But Im not able to display the full address.

See below code:

/: ADDRESS PARAGRAPH NL
/:  NAME &W_LIFNR-NAME1&, &W_LIFNR-NAME2&, &W_LIFNR-NAME3&,&W_LIFNR-NAME4&
/:  STREET      &W_LIFNR-STRAS&
/:  POBOX       &'PO Box,,' W_LIFNR-PFACH& CITY &W_LIFNR-ORT01&
/:  POSTCODE    &W_LIFNR-PSTLZ&
/:  FROMCOUNTRY &GD_CTRY_TEXT&
/: ENDADDRESS

In this name, street and po box are printing..and other fields are not printing.

for from country..in debugging im getting message like Parameter too long.

Pls correct me where it is going wrong.

Rgs,

priiya

Accepted Solutions (0)

Answers (1)

Answers (1)

royolav_johansen
Explorer
0 Kudos

FROMCOUNTRY is a field which should contain the code for the departure country,

like field VBKA-SLAND. Country on address is connected to customizing, check documentation for field

T005-XADDR. You can also test this address in XD03 by hitting the print button on address view.

Fastest way of fixing this is only moving &GD_CTRY_TEXT& after the endaddress line like this:

/: ENDADDRESS

/ &GD_CTRY_TEXT&

But then the country would show up twice if it is customized to show up-

Edited by: Roy Olav Johansen on Aug 20, 2010 1:40 PM