Skip to Content
0
Former Member
May 23, 2008 at 03:21 PM

Avoid printing the Country name in the SAP Script

573 Views

Hi All,

I am printing the address of the ship to customer in SAP script using ADDRESS and ENDADDRESS. The address is formatting based on the country code that I am passing in the COUNTRY parameter. Everything looks fine. But here my requirement is It has to display the address according to COUNTRY parameter and it should display all the part of the address except country name.

I am using the following syntax

/: ADDRESS PARAGRAPH AD LINES 7

/: NAME &IT_SOLDTO_ADDRS-NAME1&, &IT_SOLDTO_ADDRS-NAME2&

/: STREET &IT_SOLDTO_ADDRS-STRAS&

/: POBOX &IT_SOLDTO_ADDRS-PFACH& CODE &IT_SOLDTO_ADDRS-PSTL2&

/: CITY &IT_SOLDTO_ADDRS-ORT01&, &IT_SOLDTO_ADDRS-ORT02&

/: POSTCODE &IT_SOLDTO_ADDRS-PSTLZ&

/: COUNTRY &IT_SOLDTO_ADDRS-LAND1&

/: REGION &IT_SOLDTO_ADDRS-REGIO&

/: ENDADDRESS

for example if I pass COUNTRY = 'DE', it is printing country name as 'GERMANY'.

Please advise me how to avoid the country name alone from printing in the address.

It is very urgent requirement. Points will be awarded for helpful answers.

Regards,

Yellappa.