SAP Reports / Programs

RSADRLSM02 SAP ABAP Report - Fill regional structure with postal code, city, streets, ...







RSADRLSM02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Read in postal codes, cities, districts, streets, PO Boxes This program puts data in the regional structure, i...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RSADRLSM02 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RSADRLSM02. "Basic submit
SUBMIT RSADRLSM02 AND RETURN. "Return to original report after report execution complete
SUBMIT RSADRLSM02 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: CT_FROM = Start position city
Selection Text: LANGU = Default create language
Selection Text: LG_CITY = log. file name city
Selection Text: LG_CPART = log. file name district
Selection Text: LG_PBOX = log. file name PO Boxes
Selection Text: LG_PCODE = log. file name postal codes
Selection Text: LG_PROT = log. file name log
Selection Text: LG_STRT = log. file name streets
Selection Text: MEM_MAX = maximum table size [kByte]
Selection Text: NMBRDRAW = internal no. assign. if nec.
Selection Text: NUC = Non Unicode
Selection Text: PC_FROM = Postal code restart position
Selection Text: RESTART = Automatic restart
Selection Text: ST_FROM = Start position streets
Selection Text: UC = Unicode
Selection Text: COUNTRY = D .
Title: Fill regional structure with postal code, city, streets, ...
Text Symbol: 103 = Invalid City in Separate Postal Code, District or PO Box Maintenance
Text Symbol: 102 = District Name Specified in Street is Ambiguous. Maintain District Key
Text Symbol: 101 = Invalid District in Street Initialized
Text Symbol: 100 = Invalid Postal Code in Street Initialized
Text Symbol: 099 = Street Refers to Invalid City
Text Symbol: 098 = Invalid Postal Code in District Initialized
Text Symbol: 097 = Maintain PO Boxes, Districts, Postal Codes for Non-Processed Cities
Text Symbol: 096 = PO Boxes
Text Symbol: 095 = Districts
Text Symbol: 094 = District Used in Streets
Text Symbol: 093 = District Deletion Error
Text Symbol: 092 = Postal Code Used in Streets
Text Symbol: 091 = PO Box Area is Incomplete - PO Box is Not Processed
Text Symbol: 090 = PO Box Postal Code is Not Flagged as Such or is Missing
Text Symbol: 088 = District is Assigned to No City or a Non-Existant One
Text Symbol: 087 = Street is Assigned to No City or a Non-Existant One
Text Symbol: 086 = District is not assigned to a city
Text Symbol: 085 = PO Box is Assigned to No City or a Non-Existant One
Text Symbol: 084 = Postal code is not assigned to a city
Text Symbol: 104 = The Street Section Has no Street Key
Text Symbol: 105 = Invalid Region in City Initialized





Text Symbol: 106 = No City Name, City Initialized
Text Symbol: 107 = Invalid County in Region Initialized
Text Symbol: 108 = Invalid Township in County Initialized
Text Symbol: 200 = Internal call error
Text Symbol: 201 = Internal function module error
Text Symbol: 202 = Internal function module table parameter inconsistency
Text Symbol: 203 = Program was terminated
Text Symbol: 204 = Foreign lock at function module call
Text Symbol: 205 = Statistic
Text Symbol: 206 = Problems During Call
Text Symbol: 300 = Invalid Processing Flag
Text Symbol: 301 = PO Box Postal Codes is Not Used in City
Text Symbol: 302 = Object
Text Symbol: 303 = Street Number
Text Symbol: 304 = PO Box is not numerical - PO box is not processed
Text Symbol: 305 = Indicator delivery postal code or PO box postal code of postal code was deleted
Text Symbol: 306 = Indicator for postal code (delivery or PO box postal code) cannot be deleted because dependent data exists
Text Symbol: 307 = Input file format
Text Symbol: 032 = Saved restart position is initial. Start immediately
Text Symbol: 031 = Street creation problems (old number, city -> new number)
Text Symbol: 030 = Successfully created streets (old number, city -> new number)
Text Symbol: 029 = Streets for which external number assign. is not possible:
Text Symbol: 028 = Log file read error
Text Symbol: 027 = not processed:
Text Symbol: 026 = deleted:
Text Symbol: 025 = updated:
Text Symbol: 024 = Created:
Text Symbol: 023 = Maint. Instructions Read:
Text Symbol: 022 = Streets
Text Symbol: 021 = Cities
Text Symbol: 020 = Postal codes
Text Symbol: 019 = deleted when deleting cities:
Text Symbol: 015 = Postal code could not be created after update error
Text Symbol: 014 = Street Maint. Ended at:
Text Symbol: 013 = City Maint. Ended at:
Text Symbol: 012 = Postal Code Maint. Ended at:
Text Symbol: 011 = Problems entering street for city (change)
Text Symbol: 010 = Problems entering street for city (read)
Text Symbol: 009 = City already exists (streets created nevertheless)





Text Symbol: 008 = End time:
Text Symbol: 007 = Create city street error
Text Symbol: 006 = Create city error (streets not created)
Text Symbol: 004 = Create postal code error
Text Symbol: 003 = Error when reading file
Text Symbol: 002 = File open error
Text Symbol: 001 = Start time:
Text Symbol: 083 = Postal code deletion error
Text Symbol: 082 = City deletion error
Text Symbol: 081 = City Cannot be Deleted Because Streets Still Refer to It
Text Symbol: 080 = Street deletion error
Text Symbol: 071 = City update error (streets are not processed)
Text Symbol: 070 = Postal code update error
Text Symbol: 065 = Enter at most one restart position
Text Symbol: 063 = Invalid dataset type in file
Text Symbol: 062 = Invalid dataset status in a file
Text Symbol: 061 = Specify country
Text Symbol: 060 = Choose table size not less than 10.000 kB
Text Symbol: 056 = Restart after cancel
Text Symbol: 055 = Restart position not found
Text Symbol: 051 = Serious find physical file name/path internal error
Text Symbol: 050 = No physical file name/path found for logical name
Text Symbol: 048 = Street section processing settings
Text Symbol: 047 = Restart after program termination settings
Text Symbol: 046 = General Settings
Text Symbol: 045 = Logical filenames for input and output files
Text Symbol: 042 = Ext. Lock when Deleting Street
Text Symbol: 041 = Ext. Lock when Deleting City
Text Symbol: 040 = Cancellation: Specify at Least One Source File
Text Symbol: 039 = Specify log output file
Text Symbol: 037 = Choose no restart and specify start position
Text Symbol: 036 = No restart data. Start immediately
Text Symbol: 035 = Street restart
Text Symbol: 034 = City restart
Text Symbol: 033 = Postal code restart


INCLUDES used within this REPORT RSADRLSM02

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

TR_WRITE_LOG



CALL FUNCTION 'TR_WRITE_LOG' EXPORTING iv_log_type = 'MEMORY' * IV_LOGNAME_FILE = * IV_LOGNAME_DB = iv_logname_memory = c_protfile iv_append_mode = l_append_mode iv_condense = c_no TABLES it_msgs = l_prot_msg_tab[] EXCEPTIONS invalid_input = 1 file_access_error = 2 db_access_error = 3 OTHERS = 4.

TR_WRITE_LOG CALL FUNCTION 'TR_WRITE_LOG' EXPORTING iv_log_type = 'MEMORY' * IV_LOGNAME_FILE = * IV_LOGNAME_DB = iv_logname_memory = c_protfile iv_append_mode = l_append_mode iv_condense = c_no TABLES it_msgs = l_prot_msg_tab[] EXCEPTIONS invalid_input = 1 file_access_error = 2 db_access_error = 3 OTHERS = 4.

TR_READ_AND_DISPLAY_LOG CALL FUNCTION 'TR_READ_AND_DISPLAY_LOG' EXPORTING iv_log_type = 'MEMORY' * IV_LOGNAME_FILE = * IV_LOGNAME_DB = iv_logname_memory = c_protfile * IV_TITLEBAR = * IV_HEADING = * IV_TIMESTAMP = iv_top_line = '0' iv_display_level = '1' iv_with_long_text_icon = c_yes iv_with_refresh_icon = c_no * IV_WITH_LEVEL = c_no iv_language = sy-langu EXCEPTIONS invalid_input = 1 access_error = 2 OTHERS = 3.

SZRS_S_ADRCITY_DELETE CALL FUNCTION 'SZRS_S_ADRCITY_DELETE' EXPORTING x_country = country x_city_code = cities_wa-city_code x_upd_online = c_yes x_no_dialog = c_yes IMPORTING y_db_update = l_db_updated EXCEPTIONS not_found = 1 foreign_lock = 2 cancelled = 3 general_fault = 4 OTHERS = 5.

SZRS_DB_STRT_FORALL_CITY CALL FUNCTION 'SZRS_DB_STRT_FORALL_CITY' * EXPORTING * X_ACTUAL = IMPORTING y_count = l_count TABLES t_adrstreet = l_streets EXCEPTIONS not_found = 1 OTHERS = 2 .

SZRS_S_ADRSTREET_DELETE CALL FUNCTION 'SZRS_S_ADRSTREET_DELETE' EXPORTING x_country = country x_strt_code = l_streets_wa-strt_code x_upd_online = c_yes x_no_dialog = c_yes EXCEPTIONS not_found = 1 foreign_lock = 2 cancelled = 3 general_fault = 4 OTHERS = 5.

SZRS_S_ADRCITY_DELETE CALL FUNCTION 'SZRS_S_ADRCITY_DELETE' EXPORTING x_country = country x_city_code = cities_wa-city_code x_upd_online = c_yes x_no_dialog = c_yes IMPORTING y_db_update = l_db_updated EXCEPTIONS not_found = 1 foreign_lock = 2 cancelled = 3 general_fault = 4 OTHERS = 5.

SZRS_S_ADRPSTCODE_DELETE CALL FUNCTION 'SZRS_S_ADRPSTCODE_DELETE' EXPORTING x_country = country x_post_code = pcodes_wa-post_code x_upd_online = c_yes x_no_dialog = c_yes * IMPORTING * Y_DB_UPDATE = EXCEPTIONS not_found = 1 foreign_lock = 2 cancelled = 3 general_fault = 4 OTHERS = 5 .

SZRS_S_ADRSTREET_DELETE CALL FUNCTION 'SZRS_S_ADRSTREET_DELETE' EXPORTING x_country = country x_strt_code = x_auto_street_save-adrstreetd-strt_code x_upd_online = c_yes x_no_dialog = c_yes * IMPORTING * Y_DB_UPDATE = EXCEPTIONS not_found = 1 foreign_lock = 2 cancelled = 3 general_fault = 4 OTHERS = 5.

SZRS_S_ADRSTREET_CHANGE CALL FUNCTION 'SZRS_S_ADRSTREET_CHANGE' EXPORTING x_country = country x_langu = langu x_strt_code = x_auto_street_save-adrstreetd-strt_code x_upd_online = c_yes x_no_dialog = c_yes * X_NO_OTHER = x_auto = x_auto_street_save * X_OBJ = * IMPORTING * Y_DB_UPDATE = * Y_EXIT_TYPE = * Y_NEW_ADRSTREET = * Y_NEW_ADRSTREETT = EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 input_error = 4 invalid_auto = 5 OTHERS = 6.

SZRS_S_ADRSTREET_CREATE_MASS CALL FUNCTION 'SZRS_S_ADRSTREET_CREATE_MASS' EXPORTING x_country = country x_langu = langu x_city_code = l_city_save x_upd_online = c_yes x_auto = x_auto_mass IMPORTING y_count = l_strts_created TABLES err_tab = error_table EXCEPTIONS no_country = 1 no_langu = 2 no_city = 3 city_not_found = 4 general_fault = 5 OTHERS = 6.

SZRS_S_ADRSTREET_CREATE CALL FUNCTION 'SZRS_S_ADRSTREET_CREATE' EXPORTING x_country = country x_langu = langu x_strt_code = strt_code_new x_city_code = two_cities_street_wa-city_code * X_NRNR = x_upd_online = c_yes x_no_dialog = c_yes x_auto = two_cities_street_wa-auto EXCEPTIONS existing = 1 foreign_lock = 2 number_error = 3 general_fault = 4 input_error = 5 invalid_auto = 6 error_message = 7 OTHERS = 8.

SZRS_S_ADRCITY_CHANGE CALL FUNCTION 'SZRS_S_ADRCITY_CHANGE' EXPORTING x_country = country x_langu = langu x_city_code = x_auto_city-adrcityd-city_code x_upd_online = c_yes x_no_dialog = c_yes * X_NO_OTHER = x_auto = x_auto_city x_obj = x_obj_city "907u * IMPORTING * Y_DB_UPDATE = * Y_EXIT_TYPE = * Y_NEW_ADRCITY = * Y_NEW_ADRCITYT = EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 input_error = 4 invalid_auto = 5 OTHERS = 6 .

SZRS_S_ADRCITY_CREATE CALL FUNCTION 'SZRS_S_ADRCITY_CREATE' EXPORTING x_country = country x_langu = langu x_city_code = x_auto_city-adrcityd-city_code * X_NRNR = x_upd_online = c_yes x_no_dialog = c_yes x_auto = x_auto_city * IMPORTING * Y_DB_UPDATE = * Y_NEW_COUNTRY = * Y_NEW_LANGU = * Y_NEW_CITY_CODE = * Y_EXIT_TYPE = * Y_NEW_ADRCITY = * Y_NEW_ADRCITYT = EXCEPTIONS existing = 1 foreign_lock = 2 number_error = 3 general_fault = 4 input_error = 5 invalid_auto = 6 OTHERS = 8.

SZRS_S_ADRCITY_CHANGE CALL FUNCTION 'SZRS_S_ADRCITY_CHANGE' EXPORTING x_country = country x_langu = langu x_city_code = x_auto_city-adrcityd-city_code x_upd_online = c_yes x_no_dialog = c_yes * X_NO_OTHER = x_auto = x_auto_city * X_OBJ = * IMPORTING * Y_DB_UPDATE = * Y_EXIT_TYPE = * Y_NEW_ADRCITY = * Y_NEW_ADRCITYT = EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 input_error = 4 invalid_auto = 5 OTHERS = 6 .

SZRS_S_ADRCITY_PROVIDE CALL FUNCTION 'SZRS_S_ADRCITY_PROVIDE' EXPORTING x_country = country x_langu = langu x_city_code = cities_wa-city_code x_wmode = '1' "Display IMPORTING y_auto = l_y_auto EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 OTHERS = 4.

SZRS_S_ADRCITY_CHANGE CALL FUNCTION 'SZRS_S_ADRCITY_CHANGE' EXPORTING x_country = country x_langu = langu x_city_code = cities_wa-city_code x_upd_online = c_yes x_no_dialog = c_yes x_auto = l_x_auto x_obj = l_x_obj "907i EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 input_error = 4 invalid_auto = 5 OTHERS = 6.

SZRS_S_ADRPSTCODE_CREATE CALL FUNCTION 'SZRS_S_ADRPSTCODE_CREATE' EXPORTING x_country = country x_post_code = x_auto_plz-adrpstcdd-post_code * X_NRNR = x_upd_online = c_yes x_no_dialog = c_yes x_auto = x_auto_plz * IMPORTING * Y_DB_UPDATE = * Y_NEW_COUNTRY = * Y_NEW_POST_CODE = * Y_EXIT_TYPE = * Y_NEW_ADRPSTCODE = EXCEPTIONS existing = 1 foreign_lock = 2 number_error = 3 general_fault = 4 input_error = 5 invalid_auto = 6 wrong_format = 7 error_message = 8 OTHERS = 9.

SZRS_S_ADRPSTCODE_CHANGE CALL FUNCTION 'SZRS_S_ADRPSTCODE_CHANGE' EXPORTING x_country = country x_post_code = x_auto_plz-adrpstcdd-post_code x_upd_online = c_yes x_no_dialog = c_yes * X_NO_OTHER = x_auto = x_auto_plz * X_OBJ = * IMPORTING * Y_DB_UPDATE = * Y_EXIT_TYPE = * Y_NEW_ADRPSTCODE = EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 input_error = 4 invalid_auto = 5 OTHERS = 6 .

SZRS_S_ADRPSTCODE_CREATE CALL FUNCTION 'SZRS_S_ADRPSTCODE_CREATE' EXPORTING x_country = country x_post_code = x_auto_plz-adrpstcdd-post_code * X_NRNR = x_upd_online = c_yes x_no_dialog = c_yes x_auto = x_auto_plz * IMPORTING * Y_DB_UPDATE = * Y_NEW_COUNTRY = * Y_NEW_POST_CODE = * Y_EXIT_TYPE = * Y_NEW_ADRPSTCODE = EXCEPTIONS existing = 1 foreign_lock = 2 number_error = 3 general_fault = 4 input_error = 5 invalid_auto = 6 wrong_format = 7 error_message = 8 OTHERS = 9.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL' * EXPORTING * _SYNCHRON = c_no EXCEPTIONS OTHERS = 1.

SZRS_S_ADRSTREET_PROVIDE CALL FUNCTION 'SZRS_S_ADRSTREET_PROVIDE' EXPORTING x_country = country x_langu = langu x_strt_code = used_strt_codes_wa-further x_wmode = '1' "(Display) IMPORTING * Y_OBJ = y_auto = street_db EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 OTHERS = 4.

SZRS_S_ADRCITY_PROVIDE CALL FUNCTION 'SZRS_S_ADRCITY_PROVIDE' EXPORTING x_country = country x_langu = langu x_city_code = ct_wa-city_code * x_wmode = '1' "(Display) "907d x_wmode = '2' "(Change) "907i IMPORTING y_obj = city_obj "907u y_auto = city_db EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 OTHERS = 4.

SZRS_S_ADRSTREET_PROVIDE CALL FUNCTION 'SZRS_S_ADRSTREET_PROVIDE' EXPORTING x_country = l_country x_langu = l_langu x_strt_code = street-adrstreetd-strt_code x_wmode = '1' "(Display) IMPORTING * Y_OBJ = y_auto = y_auto EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 OTHERS = 4.

SZRS_S_ADRSTREET_CHANGE CALL FUNCTION 'SZRS_S_ADRSTREET_CHANGE' EXPORTING x_country = l_country x_langu = l_langu x_strt_code = y_auto-adrstreetd-strt_code x_upd_online = c_yes x_no_dialog = c_yes * X_NO_OTHER = x_auto = street * X_OBJ = * IMPORTING * Y_DB_UPDATE = * Y_EXIT_TYPE = * Y_NEW_ADRSTREET = * Y_NEW_ADRSTREETT = EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 input_error = 4 invalid_auto = 5 error_message = 6 OTHERS = 7.

SZRS_S_ADRCITY_PROVIDE CALL FUNCTION 'SZRS_S_ADRCITY_PROVIDE' EXPORTING x_country = country x_langu = langu x_city_code = ls_streets-city_code x_wmode = '1' "(Display) IMPORTING * Y_OBJ = y_auto = l_auto EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 OTHERS = 4.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

FILE_GET_NAME call function 'FILE_GET_NAME' exporting * CLIENT = SY-MANDT logical_filename = &1 * OPERATING_SYSTEM = SY-OPSYS * PARAMETER_1 = ' ' * PARAMETER_2 = ' ' * USE_PRESENTATION_SERVER = ' ' * WITH_FILE_EXTENSION = ' ' * USE_BUFFER = ' ' importing * EMERGENCY_FLAG = * FILE_FORMAT = file_name = &2 exceptions file_not_found = 1 others = 2.

SZRS_S_ADRCITY_PROVIDE CALL FUNCTION 'SZRS_S_ADRCITY_PROVIDE' EXPORTING x_country = country x_langu = langu x_city_code = cities_wa-city_code x_wmode = '1' "(Display) IMPORTING * Y_OBJ = y_auto = l_auto EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 OTHERS = 4.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "*955i

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'ADDR_PARAMETER_SET' * IMPORTING * GROUP = * INCLUDE = * NAMESPACE = * STR_AREA = EXCEPTIONS function_not_exist = 1 OTHERS = 2 .

ADDR_PARAMETER_SET CALL FUNCTION 'ADDR_PARAMETER_SET' EXPORTING iv_parameter_name = 'RSADRLSM02_RUNNING' iv_parameter_value = iv_status.

SZRS_S_ADRPSTCODE_CHANGE CALL FUNCTION 'SZRS_S_ADRPSTCODE_CHANGE' EXPORTING x_country = iv_country x_post_code = x_auto_plz-adrpstcdd-post_code x_upd_online = c_yes x_no_dialog = c_yes x_auto = x_auto_plz * X_OBJ = * IMPORTING * Y_DB_UPDATE = * Y_EXIT_TYPE = * Y_NEW_ADRPSTCODE = EXCEPTIONS not_found = 1 foreign_lock = 2 general_fault = 3 input_error = 4 invalid_auto = 5 OTHERS = 6.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RSADRLSM02 or its description.