cancel
Showing results for 
Search instead for 
Did you mean: 

ADDRESS ENDADDRESS line wrap to next line in SAPScript

MKM
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

MKM
Active Participant
0 Kudos

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

MKM
Active Participant
0 Kudos

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

VijayCR
Active Contributor
0 Kudos
&TBCO_ALL-FPOSTALCODE&(K) K is the maximum availble value 
MKM
Active Participant
0 Kudos

Dear Vijaya,

How it will stop text overflow in page window ?

VijayCR
Active Contributor
0 Kudos

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

MKM
Active Participant
0 Kudos

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