on 06-05-2009 1:20 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.