cancel
Showing results for 
Search instead for 
Did you mean: 

Issue related to ADDRESS ... ENDADDRESS in SAP Script

Former Member
0 Kudos

Hi All,

I have a issue using ADDRESS .... ENDADDRESS in SAP Script.

ADDRESS PARAGRAPH AS

TITLE &WA_LFA1-ANRED&

NAME &WA_LFA1-NAME1&, &WA_LFA1-NAME2&

STREET &WA_LFA1-STRAS& HOUSE &WA_ADRC2-STR_SUPPL3&

POBOX &WA_LFA1-PFACH& CODE &WA_LFA1-PSTL2&

CITY &WA_LFA1-ORT01&, &WA_LFA1-ORT02&

POSTCODE &WA_LFA1-PSTLZ&

COUNTRY &WA_LFA1-LAND1&

REGION &WA_LFA1-REGIO&

FROMCOUNTRY &WA_T001-LAND1&

ENDADDRESS

I am using above code for printing vendor address.

Though Name3 & Name4 are not declared but their values are getting displayed if value is available.

Though Street2, Street3 are not declared but their values are getting displayed if value is available.

Even title should not be displayed if available also.

I want only below fields to be displayed:

Name 1

Name 2

Street/House Number

Street 4

Postal Code/City

Country Name (This one declared below ADDRESS ... ENDADDRESS)

I don't want to dislay other fields if they have value also.

How it is possible!

Thanks in advance.

Thanks,

Deep.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Deep,

Basically the variables that u havent mentioned in the sap script will never be printed.

In the code u have not mentioned the variables Name3, Name4, Street2, Street3...so they will never be displayed.

Please check your code again...i think somewhere u must have written

&WA_LFA1-NAME3&

&WA_LFA1-NAME3&

etc

if so please remove them. Otherwise the code u have written is perfectly fine.

or else in ur driver program, dont move all the values to workarea...move only the values that u need to display and use them in ur script.

Regards,

Radhika

Answers (0)