Skip to Content
0

ADDRESS ENDADDRESS line wrap to next line in SAPScript

Dec 04, 2017 at 09:25 AM

55

avatar image

Hello Experts,

I am using below syntax for printing address in my sap script.

ADDRESS  TYPE &TBCO_ALL-ADDR_TYPE&
   ADDRESSNUMBER &TBCO_ALL-ADDRNUMBER(K)&
   PERSONNUMBER  &TBCO_ALL-PERSNUMBER(K)&
   FROMCOUNTRY   &TBCO_ALL-FROMCOUNTRY&
  ENDADDRESS

The Postal Code/City part of address is coming together. Issue is, it is exceeding my page window. it is ommiting few characters.

How to wrap it so that it will come to next line of the window.

Thanks,

Manoj

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Vijaya Simha Chintarlapalli Reddy Dec 07, 2017 at 01:49 PM
0
&TBCO_ALL-FPOSTALCODE&(K) K is the maximum availble value 
Show 3 Share
10 |10000 characters needed characters left characters exceeded

Dear Vijaya,

How it will stop text overflow in page window ?

0

Window type should be changed to VAR if your using constant ?

0

No Vijaya. Its not working. Its still over lapping the text to the right side box.

0
Manoj Mohanty Dec 14, 2017 at 02:24 PM
0

Dear Experts,

Trying to use Enhancement SZAD0001 to amend the text if it is exceeding certain length.

I have gone through FM EXIT_SAPLSADR_001 documentation. I am not able to understand below point.

This customer function module is called in the SAP function module ADDRESS_INTO_PRINTFORM when the address format key of the recipient country is in the customer name range 900 - 999.

Issue is, my enhancement is not getting triggered after implementing it using CMOD. Where is this address format key ?

Thanks in advance,

Manoj

Share
10 |10000 characters needed characters left characters exceeded
Manoj Mohanty Dec 15, 2017 at 01:09 PM
0

Hello Experts,

I have got some information from below thread.

https://archive.sap.com/discussions/thread/3420512

@Ansumesh Samal - Thanks for the valuable information.

After maintaining an address routine 900 in T005A, it is triggering the routine.

Now how to break the line if text is exceeding certain length ?

Also how to align address as per standard if nothing is passed ?

Thanks,

Manoj

Share
10 |10000 characters needed characters left characters exceeded