Skip to Content

ADDRESS ENDADDRESS line wrap to next line in SAPScript

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 07, 2017 at 01:49 PM
    &TBCO_ALL-FPOSTALCODE&(K) K is the maximum availble value 
    Add comment
    10|10000 characters needed characters exceeded

  • Dec 14, 2017 at 02:24 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 15, 2017 at 01:09 PM

    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

    Add comment
    10|10000 characters needed characters exceeded