SAPscript Control Statement ADDRESS

When using the ADDRESS control statement, the processing order is a little different. First, the system outputs general information (ABAP Dictionary structure STXADDRESS) that may be needed to actually format the address:

  • STXADDRESS-TDPARGRAPH (option PARAPGRAPH of the ADDRESS statement)

  • STXADDRESS-TYPE (option TYPE of the ADDRESS statement), values 1, 2, or 3

  • STXADDRESS-NUMBER (number of the address)

  • STXADDRESS-FROM_COUNT (country key of the sender country)

  • STXADDRESS-RECEIVER_L (country key of the recipient country)

  • STXADDRESS-PRIORITY (priority rule, option PRIORITY of the ADDRESS statement)

  • STXADDRESS-DELIVERY (flag whether the option DELIVERY was set for the ADDRESS statement (‘X’) or not (Space))

  • STXADDRESS-ANZZL (option LINES of the ADDRESS statement)

  • STXADDRESS-PERSONNUMB (person number)

  • STXADDRESS-COUNT_IRL (flag whether country is in recipient language)

  • STXADDRESS-LANG_COUNT (language for country)

  • STXADDRESS-NO_UPPER (flag whether no uppercase for city)

Then immediately follows the structure of the actual address, depending on the type.

Type1

Type 2

Type 3

     

ADRS1-TITLE_TEXT

ADRS2-TITLE_PERS

ADRS3-TITLE_COMP

ADRS1-NAME1

ADRS2-NAME_PERS

ADRS3-NAME1

ADRS1-NAME2

 

ADRS3-NAME2

ADRS1-NAME3

 

ADRS3-NAME3

ADRS1-NAME4

 

ADRS3-TITLE_PERS

   

ADRS3-NAME_PERS

   

ADRS3-DEPARTMENT

This is followed by

ADRSx-NAME_CO

ADRSx-STREET

ADRSx-HOUSE_NUM1

ADRSx-STR_SUPPL1

ADRSx-STR_SUPPL2

ADRSx-CITY1

ADRSx-CITY2

ADRSx-POST_CODE1

ADRSx-POST_CODE2

ADRSx-POST_CODE3

ADRSx-PO_BOX

ADRSx-PO_BOX_LOC

ADRSx-LOCATION

ADRSx-REGION

ADRSx-LAND1

where x equals 1, 2, or 3