on 07-23-2009 2:31 AM
Hi all,
Does anyone know why the STREET is not displayed on form?
GV_STREET is defined as global variable, I have debugged into SAPscript, the value for GV_STREET is there, but somehow it just cannot display on the form.
/: ADDRESS PARAGRAPH AS
/: TITLE &ADRS-ANRED&
/: NAME &ADRS-NAME1&, &ADRS-NAME2&, &ADRS-NAME3&, &ADRS-NAME4&
/: STREET &GV_STREET&
/: POBOX &ADRS-PFACH& CODE &ADRS-PSTL2& CITY &ADRS-PFORT&
/: POSTCODE &ADRS-PSTLZ&
/: REGION &ADRS-REGIO&
/: CITY &ADRS-ORT01&, &ADRS-ORT02&
/: COUNTRY &GV_LAND1&
/: FROMCOUNTRY &GV_SPRAS&
/:ENDADDRESS
Please advice and thanks in advance.
Hi,
The STREET will not get print as you have not specified DELIVERY part in ADDRESS command.
The complete ADDRESS command is
/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
If you add DELIVERY in that it will print the STREET value also.
DELIVERY
Means that the address should be formatted as a complete delivery address, using the street name and number rather than the P.O. Box.
Ex
/: ADDRESS
/: TITLE 'Firma'
/: NAME 'Schneider & Co', 'Finanzberatung'
/: STREET 'Kapitalgasse 33'
/: POBOX '12345' CODE '68499'
/: POSTCODE '68309'
/: CITY 'Mannheim'
/: COUNTRY 'DE'
/: FROMCOUNTRY 'DE'
/: ENDADDRESS
This produces the following output address:
Firma
Schneider & Co
Finanzberatung
Postfach 12345
68499 Mannheim
/: ADDRESS DELIVERY
/: TITLE 'Firma'
/: NAME 'Schneider & Co', 'Finanzberatung'
/: STREET 'Kapitalgasse 33'
/: POBOX '12345' CODE '68499'
/: POSTCODE '68309'
/: CITY 'Mannheim'
/: COUNTRY 'DE'
/: FROMCOUNTRY 'DE'
/: ENDADDRESS
This produces the following output address:
Firma
Schneider & Co
Finanzberatung
Kapitalgasse 33
68309 Mannheim
Regards
Bala Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bala,
I have added DELIVERY after ADDRESS
/: ADDRESS DELIVERY PARAGRAPH AS
/: TITLE &ADRS-ANRED&
/: NAME &ADRS-NAME1&, &ADRS-NAME2&, &ADRS-NAME3&, &ADRS-NAME4&
/: STREET &GV_STREET&, &GV_STREET2&
/: POBOX &ADRS-PFACH& CODE &ADRS-PSTL2& CITY &ADRS-PFORT&
/: POSTCODE &ADRS-PSTLZ&
/: REGION &ADRS-REGIO&
/: CITY &ADRS-ORT01&, &ADRS-ORT02&
/: COUNTRY &GV_LAND1&
/: FROMCOUNTRY &GV_SPRAS&
/:ENDADDRESS
But the STREET is still not able to display. I tried to check the syntax and it gives me "HOUSE or command end expected".
Do you know what does it mean?
Hi Bala,
Really appreciate your help.
If I try
/: HOUSE &GV_STREET2&
I got this error: Command between ADDRESS-ENDADDRESS not allowed
/: STREET &GV_STREET&, &GV_STREET2& HOUSE
I got this error: HOUSE or command end expected
Both are not working
I may need to have street3 and street4 information.
Please help and advice again. Thanks.
Hi,
Refer this link
http://help.sap.com/saphelp_nw04/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm
Regards
Bala Krishna
Hi,
What you do is Concatenate all the Street address into a single field with a Subroutine program, so a single variable will hold your all the Street1, street2,....(gv_street, gc_street2.... into a single field) and it can be printed easily.
As there is no variant for street1, street2 as in the case of name1, name2.
So by concatenating you can easily get that.
Regards
Bala Krishna
Edited by: Bala Krishna on Jul 23, 2009 4:40 PM
Some hit and try:
1. Reduce some Street value to a very small value( say just one or two charachters) and then run the script.
2. Copy this to another script. Remove the windows above and left to the window that has this address and now run the new one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just a try, increase your window size and see.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi wong,
how about COUNTRY and FROMCOUNTRY ?
Thanks
venkat.O
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.