SAP Reports / Programs

RSADRCK2 SAP ABAP Report - User without address (mass update)







RSADRCK2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for - RSADRCK2 (available for Rel...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 RSADRCK2 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 RSADRCK2. "Basic submit
SUBMIT RSADRCK2 AND RETURN. "Return to original report after report execution complete
SUBMIT RSADRCK2 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: PROT = Display log
Selection Text: TEST = Test run (without updates)
Title: User without address (mass update)
Text Symbol: 007 = Error in FM ADDR_MEMORY_SAVE.
Text Symbol: 008 = Error in FM NUMBER_GET_NEXT. SY-SUBRC:
Text Symbol: 002 = Error in FM ADDR_PERS_COMP_GET_ARRAY. SY-SUBRC:
Text Symbol: 003 = -->
Text Symbol: 004 = Error in FM ADDR_PERS_COMP_MAINTAIN_COMPL.
Text Symbol: 005 = SY-SUBRC:
Text Symbol: 006 = Error in FM ADDR_PERSON_NUMBER_GET.


INCLUDES used within this REPORT RSADRCK2

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:

SCC1_CHECK_CC_IS_ACTIVE CALL FUNCTION 'SCC1_CHECK_CC_IS_ACTIVE' IMPORTING is_running = g_cc_is_running.

ADDR_PERS_COMP_GET_ARRAY CALL FUNCTION 'ADDR_PERS_COMP_GET_ARRAY' IMPORTING returncode = rc TABLES address_pers_in_comp_selection = selection_tab address_pers_in_comp_value = value_tab * ADDRESS_PERS_IN_COMP_INFO = error_table = error_tab * ADDRESS_PERS_IN_COMP_TEXT = EXCEPTIONS parameter_error = 1 internal_error = 2 OTHERS = 3.

ADDR_MEMORY_SAVE CALL FUNCTION 'ADDR_MEMORY_SAVE' * EXPORTING * EXECUTE_IN_UPDATE_TASK = ' ' EXCEPTIONS address_number_missing = 1 person_number_missing = 2 internal_error = 3 database_error = 4 reference_missing = 5 OTHERS = 6.

SUSR_USER_FIND_ADDR_FOR_CREATE CALL FUNCTION 'SUSR_USER_FIND_ADDR_FOR_CREATE' EXPORTING user_name = p_iusr21-bname IMPORTING addr3_complete = address_data EXCEPTIONS no_address_found = 1 OTHERS = 2.

ADDR_PERS_COMP_MAINTAIN_COMPL CALL FUNCTION 'ADDR_PERS_COMP_MAINTAIN_COMPL' EXPORTING updateflag = 'I' addr3_complete = address_data person_group = 'BC01' * ACCEPT_COUNTRY_FOR_COMM = ' ' * importing * returncode = addr_return * TABLES * ERROR_TABLE = EXCEPTIONS parameter_error = 1 address_not_exist = 2 person_not_exist = 3 relation_not_exist = 4 handle_exist = 5 internal_error = 6 OTHERS = 7.

ADDR_PERSON_NUMBER_GET CALL FUNCTION 'ADDR_PERSON_NUMBER_GET' EXPORTING person_handle = pers_handle person_reference = persref IMPORTING person_number = upd_usr21-persnumber * RETURNCODE_NUMBERRANGE = EXCEPTIONS internal_error = 1 person_handle_not_exist = 2 parameter_error = 3 OTHERS = 4.

ADDR_PERSON_NUMBER_GET CALL FUNCTION 'ADDR_PERSON_NUMBER_GET' EXPORTING person_handle = pers_handle person_reference = persref IMPORTING person_number = ins_usr21-persnumber * RETURNCODE_NUMBERRANGE = EXCEPTIONS internal_error = 1 person_handle_not_exist = 2 parameter_error = 3 OTHERS = 4.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' "*1777i+ EXPORTING nr_range_nr = '01' object = 'ADRNR' * QUANTITY = '1' * SUBOBJECT = ' ' * TOYEAR = '0000' * IGNORE_BUFFER = ' ' IMPORTING number = p_default_addrnumber * QUANTITY = * RETURNCODE = EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 OTHERS = 7.



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 RSADRCK2 or its description.