SAP EXIT_SAPLSADR_001 Function Module for









EXIT_SAPLSADR_001 is a standard exit saplsadr 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for exit saplsadr 001 FM, simply by entering the name EXIT_SAPLSADR_001 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XSAD
Program Name: SAPLXSAD
Main Program: SAPLXSAD
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLSADR_001 pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'EXIT_SAPLSADR_001'"
EXPORTING
ADDRESS_TYPE = "Address type: 1,2 or 3
DESTINATION_COUNTRY_FIELDS = "Recipient country record
DESTINATION_COUNTRY_TEXT = "Recipient country text (in sender language)
SENDER_COUNTRY_FIELDS = "Sender country record
RECEIVER_LANGUAGE = "Recipient language (for text elements)
NUMBER_OF_LINES = "Maximum number of lines for format
STREET_HAS_PRIORITY = "Flag: Street has priority over PO Box
* IV_NATION = "
* IV_NATION_' ' = "
* IV_NATION_USED = "
* IV_PERSON_ABOVE_ORGANIZATION = "
ADRS1_NAME_FIELDS = "Address fields (Type 1)
ADRS2_NAME_FIELDS = "Address fields (Type 2)
ADRS3_NAME_FIELDS = "Address fields (Type 3)
ADRS_POST_FIELDS = "Postal address fields (Type 1,2,3)
ADDRESS_NUMBER = "Address number
ADDRESS_HANDLE = "Address handle
PERSON_NUMBER = "Person number
PERSON_HANDLE = "Person handle

IMPORTING
DATA_CARRIER_LINE = "Data carrier address
DATA_CARRIER_LINE_IS_COMPLETE = "Flag: DATA_CARRIER_LINE is complete
DATA_CARRIER_LINE_0 = "Second Line for Data Carrier
SHORT_FORM_LINE = "Address in short form (optional)
SHORT_FORM_S_LINE = "Short Form Inc. Street
SHORT_FORM_LINE_WO_NAME = "Short Form Street and City

CHANGING
LINE_PRIORITY = "Line suppresion sequence
* CV_LANGU_CREA = "

TABLES
ADDRESS_LINES = "Formatted address
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
ADDRESS_INTO_PRINTFORM Address Format According to Post Office Guidelines
ADDRESS_INTO_PRINTFORM_OLD_001
ADDRESS_SHOW_PRINTFORM Display a formatted address in a popup
ADDRESS_SHOW_PRINTFORM_OLD
ADDR_COMPOSE_STREET_LINE
ADDR_DEFAULT_SENDER_COUNTRY
ADDR_LANGUAGE_MAP_TO_VERSION
ADDR_SADR_CUSTOMER_FUNC_001
ADDR_VERSION_MAP_TO_LANGUAGE

IMPORTING Parameters details for EXIT_SAPLSADR_001

ADDRESS_TYPE - Address type: 1,2 or 3

Data type: SZAD_FIELD-ADDR_TYPE
Optional: No
Call by Reference: No ( called with pass by value option)

DESTINATION_COUNTRY_FIELDS - Recipient country record

Data type: T005
Optional: No
Call by Reference: No ( called with pass by value option)

DESTINATION_COUNTRY_TEXT - Recipient country text (in sender language)

Data type: T005T
Optional: No
Call by Reference: No ( called with pass by value option)

SENDER_COUNTRY_FIELDS - Sender country record

Data type: T005
Optional: No
Call by Reference: No ( called with pass by value option)

RECEIVER_LANGUAGE - Recipient language (for text elements)

Data type: T002-SPRAS
Optional: No
Call by Reference: No ( called with pass by value option)

NUMBER_OF_LINES - Maximum number of lines for format

Data type: ADRS-ANZZL
Optional: No
Call by Reference: No ( called with pass by value option)

STREET_HAS_PRIORITY - Flag: Street has priority over PO Box

Data type: ADRS-WAREN
Optional: No
Call by Reference: No ( called with pass by value option)

IV_NATION -

Data type: ADRC-NATION
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NATION_SPACE -

Data type: T_BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NATION_USED -

Data type: ADRC-NATION
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_PERSON_ABOVE_ORGANIZATION -

Data type: T_BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADRS1_NAME_FIELDS - Address fields (Type 1)

Data type: ADRS1_NAME
Optional: No
Call by Reference: No ( called with pass by value option)

ADRS2_NAME_FIELDS - Address fields (Type 2)

Data type: ADRS2_NAME
Optional: No
Call by Reference: No ( called with pass by value option)

ADRS3_NAME_FIELDS - Address fields (Type 3)

Data type: ADRS3_NAME
Optional: No
Call by Reference: No ( called with pass by value option)

ADRS_POST_FIELDS - Postal address fields (Type 1,2,3)

Data type: ADRS_POST
Optional: No
Call by Reference: No ( called with pass by value option)

ADDRESS_NUMBER - Address number

Data type: ADRC-ADDRNUMBER
Optional: No
Call by Reference: No ( called with pass by value option)

ADDRESS_HANDLE - Address handle

Data type: SZAD_FIELD-HANDLE
Optional: No
Call by Reference: No ( called with pass by value option)

PERSON_NUMBER - Person number

Data type: ADRP-PERSNUMBER
Optional: No
Call by Reference: No ( called with pass by value option)

PERSON_HANDLE - Person handle

Data type: SZAD_FIELD-HANDLE
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for EXIT_SAPLSADR_001

DATA_CARRIER_LINE - Data carrier address

Data type: SZAD_FIELD-ADDR_DC
Optional: No
Call by Reference: No ( called with pass by value option)

DATA_CARRIER_LINE_IS_COMPLETE - Flag: DATA_CARRIER_LINE is complete

Data type: T_BOOL
Optional: No
Call by Reference: No ( called with pass by value option)

DATA_CARRIER_LINE_0 - Second Line for Data Carrier

Data type: SZAD_FIELD-ADDR_DC
Optional: No
Call by Reference: No ( called with pass by value option)

SHORT_FORM_LINE - Address in short form (optional)

Data type: SZAD_FIELD-ADDR_SHORT
Optional: No
Call by Reference: No ( called with pass by value option)

SHORT_FORM_S_LINE - Short Form Inc. Street

Data type: SZAD_FIELD-ADDR_SHORT
Optional: No
Call by Reference: No ( called with pass by value option)

SHORT_FORM_LINE_WO_NAME - Short Form Street and City

Data type: SZAD_FIELD-ADDR_SHORT
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for EXIT_SAPLSADR_001

LINE_PRIORITY - Line suppresion sequence

Data type: SZAD_FIELD-PRIORITY
Optional: No
Call by Reference: No ( called with pass by value option)

CV_LANGU_CREA -

Data type: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for EXIT_SAPLSADR_001

ADDRESS_LINES - Formatted address

Data type: ADRS_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EXIT_SAPLSADR_001 Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_address_type  TYPE SZAD_FIELD-ADDR_TYPE, "   
lt_address_lines  TYPE STANDARD TABLE OF ADRS_TAB, "   
lv_line_priority  TYPE SZAD_FIELD-PRIORITY, "   
lv_data_carrier_line  TYPE SZAD_FIELD-ADDR_DC, "   
lv_destination_country_fields  TYPE T005, "   
lv_destination_country_text  TYPE T005T, "   
lv_sender_country_fields  TYPE T005, "   
lv_receiver_language  TYPE T002-SPRAS, "   
lv_number_of_lines  TYPE ADRS-ANZZL, "   
lv_street_has_priority  TYPE ADRS-WAREN, "   
lv_iv_nation  TYPE ADRC-NATION, "   
lv_iv_nation_space  TYPE T_BOOLE, "   
lv_iv_nation_used  TYPE ADRC-NATION, "   
lv_iv_person_above_organization  TYPE T_BOOLE, "   
lv_cv_langu_crea  TYPE SY-LANGU, "   
lv_adrs1_name_fields  TYPE ADRS1_NAME, "   
lv_data_carrier_line_is_complete  TYPE T_BOOL, "   
lv_adrs2_name_fields  TYPE ADRS2_NAME, "   
lv_data_carrier_line_0  TYPE SZAD_FIELD-ADDR_DC, "   
lv_short_form_line  TYPE SZAD_FIELD-ADDR_SHORT, "   
lv_adrs3_name_fields  TYPE ADRS3_NAME, "   
lv_adrs_post_fields  TYPE ADRS_POST, "   
lv_short_form_s_line  TYPE SZAD_FIELD-ADDR_SHORT, "   
lv_address_number  TYPE ADRC-ADDRNUMBER, "   
lv_short_form_line_wo_name  TYPE SZAD_FIELD-ADDR_SHORT, "   
lv_address_handle  TYPE SZAD_FIELD-HANDLE, "   
lv_person_number  TYPE ADRP-PERSNUMBER, "   
lv_person_handle  TYPE SZAD_FIELD-HANDLE. "   

  CALL FUNCTION 'EXIT_SAPLSADR_001'  "
    EXPORTING
         ADDRESS_TYPE = lv_address_type
         DESTINATION_COUNTRY_FIELDS = lv_destination_country_fields
         DESTINATION_COUNTRY_TEXT = lv_destination_country_text
         SENDER_COUNTRY_FIELDS = lv_sender_country_fields
         RECEIVER_LANGUAGE = lv_receiver_language
         NUMBER_OF_LINES = lv_number_of_lines
         STREET_HAS_PRIORITY = lv_street_has_priority
         IV_NATION = lv_iv_nation
         IV_NATION_SPACE = lv_iv_nation_space
         IV_NATION_USED = lv_iv_nation_used
         IV_PERSON_ABOVE_ORGANIZATION = lv_iv_person_above_organization
         ADRS1_NAME_FIELDS = lv_adrs1_name_fields
         ADRS2_NAME_FIELDS = lv_adrs2_name_fields
         ADRS3_NAME_FIELDS = lv_adrs3_name_fields
         ADRS_POST_FIELDS = lv_adrs_post_fields
         ADDRESS_NUMBER = lv_address_number
         ADDRESS_HANDLE = lv_address_handle
         PERSON_NUMBER = lv_person_number
         PERSON_HANDLE = lv_person_handle
    IMPORTING
         DATA_CARRIER_LINE = lv_data_carrier_line
         DATA_CARRIER_LINE_IS_COMPLETE = lv_data_carrier_line_is_complete
         DATA_CARRIER_LINE_0 = lv_data_carrier_line_0
         SHORT_FORM_LINE = lv_short_form_line
         SHORT_FORM_S_LINE = lv_short_form_s_line
         SHORT_FORM_LINE_WO_NAME = lv_short_form_line_wo_name
    CHANGING
         LINE_PRIORITY = lv_line_priority
         CV_LANGU_CREA = lv_cv_langu_crea
    TABLES
         ADDRESS_LINES = lt_address_lines
. " EXIT_SAPLSADR_001




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLSADR_001

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single ADDR_TYPE FROM SZAD_FIELD INTO @DATA(ld_address_type).
 
 
"SELECT single PRIORITY FROM SZAD_FIELD INTO @DATA(ld_line_priority).
 
"SELECT single ADDR_DC FROM SZAD_FIELD INTO @DATA(ld_data_carrier_line).
 
 
 
 
"SELECT single SPRAS FROM T002 INTO @DATA(ld_receiver_language).
 
"SELECT single ANZZL FROM ADRS INTO @DATA(ld_number_of_lines).
 
"SELECT single WAREN FROM ADRS INTO @DATA(ld_street_has_priority).
 
"SELECT single NATION FROM ADRC INTO @DATA(ld_iv_nation).
 
 
"SELECT single NATION FROM ADRC INTO @DATA(ld_iv_nation_used).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_cv_langu_crea).
 
 
 
 
"SELECT single ADDR_DC FROM SZAD_FIELD INTO @DATA(ld_data_carrier_line_0).
 
"SELECT single ADDR_SHORT FROM SZAD_FIELD INTO @DATA(ld_short_form_line).
 
 
 
"SELECT single ADDR_SHORT FROM SZAD_FIELD INTO @DATA(ld_short_form_s_line).
 
"SELECT single ADDRNUMBER FROM ADRC INTO @DATA(ld_address_number).
 
"SELECT single ADDR_SHORT FROM SZAD_FIELD INTO @DATA(ld_short_form_line_wo_name).
 
"SELECT single HANDLE FROM SZAD_FIELD INTO @DATA(ld_address_handle).
 
"SELECT single PERSNUMBER FROM ADRP INTO @DATA(ld_person_number).
 
"SELECT single HANDLE FROM SZAD_FIELD INTO @DATA(ld_person_handle).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!