SAP Reports / Programs

RSSOUSCO SAP ABAP Report - Consistency check of user tables







RSSOUSCO is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Some users receive error messages when sending or receiving documents...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 RSSOUSCO into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

SBCS_USCO - BCS: Consistency of Users
SO55 - User consistency check


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 RSSOUSCO. "Basic submit
SUBMIT RSSOUSCO AND RETURN. "Return to original report after report execution complete
SUBMIT RSSOUSCO VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Consistency check of user tables
Text Symbol: 062 = Number of users for which SO_KEY could be generated
Text Symbol: 063 = Number of users for which no SO_KEY could be generated subsequently
Text Symbol: 064 = Number of users for which no entry exists in table USR21
Text Symbol: 065 = No. of users with address assignment (SOUD with SO_KEY)
Text Symbol: 066 = Number of users for which no entry exists in table USRADR
Text Symbol: 067 = Number of users for which person group <> BC01 is in address
Text Symbol: 068 = Number of users with address reference which is no longer in CAM
Text Symbol: 069 = Number of users with SOUD-USADR<>SPACE / SO_KEY in ADCP=SPACE and no subseq.generation possible
Text Symbol: 070 = Number of users for which SO_KEY was generated subsequently
Text Symbol: 071 = Number of users with SO_KEY to which a more recent object is assigned
Text Symbol: 072 = Number of users for which no change in address assignment was required
Text Symbol: 073 = Number of users for which no where-used list could be created subsequently
Text Symbol: 080 = Error while deleting where-used list reference :
Text Symbol: 082 = Number of users for which no entry exists in table USR21 (user administration)
Text Symbol: 084 = Check and create address consistency
Text Symbol: 100 = While deleting office info, person group in CAM could not be set to 'SODE'
Text Symbol: 104 = User deleted nevertheless
Text Symbol: 105 = No error - user may have had incorrect address reference and was deleted nevertheless
Text Symbol: 107 = Although address data exists for this user, no where-used list could be created
Text Symbol: 108 = Where-used list for address for this user was included in address management
Text Symbol: 110 = No address assigned in SAP address management - please assign for :
Text Symbol: 112 = Error in address management - no address data available
Text Symbol: 116 = Log address consistency for SOUD records w/o address (USRADR = SPACE)
Text Symbol: 117 = Log address consistency for SOUD records with address (USRADR <> SPACE)
Text Symbol: 118 = No person address found in SAP user administration
Text Symbol: 119 = No company address found in SAP user administration
Text Symbol: 120 = Central address management returned no SO_KEY
Text Symbol: 121 = SO_KEY was generated subsequently for this user :
Text Symbol: 130 = Error while changing user group to BC01
Text Symbol: 131 = Person number in table ADRP
Text Symbol: 132 = Person group successfully changed to BC01 - user checked nevertheless
Text Symbol: 202 = No address from address management could be entered when creating office information for the SAP user
Text Symbol: 203 = Check whether an address exists for the SAP user(s) or
Text Symbol: 204 = whether general user addresses are available in your system.
Text Symbol: 205 = (Does an entry exist in table USR21 with valid address number and person number?)
Text Symbol: 206 = No address exists in new SAPoffice for SAP user(s)
Text Symbol: T01 = Object





Text Symbol: T02 = Number
Text Symbol: 001 = Check log:
Text Symbol: 002 = New Office users:
Text Symbol: 003 = Office users with new delete flags:
Text Symbol: 004 = Records deleted in SOUD:
Text Symbol: 005 = Records deleted in SOUB:
Text Symbol: 006 = Records changed in SOUB:
Text Symbol: 007 = New records in SOUB:
Text Symbol: 008 = Records deleted in SOUC:
Text Symbol: 009 = Records changed in SOUC:
Text Symbol: 010 = New records in SOUC:
Text Symbol: 011 = ERROR CALLING SO_USER_DELETE:
Text Symbol: 012 = ERROR CALLING SO_USER_AUTOMATIC_INSERT:
Text Symbol: 014 = TEST ONLY
Text Symbol: 015 = w/o addr.cons.
Text Symbol: 020 = SOUD has no address, please run RSSOUADR.
Text Symbol: 021 = SOUD has an address which does not exist.
Text Symbol: 022 = SOUD has an address but no internal flag.
Text Symbol: 023 = SADRP for which internal flag is set but no SOUD.
Text Symbol: 024 = Insert SADR7 records for internal users
Text Symbol: 030 = No address in SAP address management for :
Text Symbol: 031 = found )
Text Symbol: 032 = No SO_KEY could be generated for SAP user
Text Symbol: 035 = No address in table ADCP (CAM) for :
Text Symbol: 036 = ( PERS_GROUP <> BC01 i.e. no address for :
Text Symbol: 037 = Inconsistency in address management for
Text Symbol: 038 = SO_KEY in address management = SPACE
Text Symbol: 039 = and could not be generated subsequently !
Text Symbol: 040 = Please inform your administrator
Text Symbol: 042 = For user :
Text Symbol: 043 = more up-to-date SO_KEY assigned in SAPoffice
Text Symbol: 044 = Old SO_KEY :
Text Symbol: 045 = New SO_KEY :
Text Symbol: 046 = User had no SAPoffice - created for :
Text Symbol: 047 = SAPoffice without valid SAP user - deleted for :
Text Symbol: 050 = Error while changing person group from BC01 to SODE
Text Symbol: 051 = No address entry found in SAP user administration
Text Symbol: 052 = No where-used list reference could be created for user :
Text Symbol: 060 = Users and addresses ------------------------------------------





Text Symbol: 061 = Number of users w/o address assignment ( SOUD w/o SO_KEY )


INCLUDES used within this REPORT RSSOUSCO

INCLUDE RSSOCONS.


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:

SO_OFFICE_USER_DELETE_IN_VB call function 'SO_OFFICE_USER_DELETE_IN_VB' exporting sapname = soud_tab-sapnam exceptions operation_no_authorization = 1 sap_name_not_exist = 2 user_not_exist = 3 x_error = 4 others = 5.

SO_USER_AUTOMATIC_INSERT call function 'SO_USER_AUTOMATIC_INSERT' exporting sapname = itab_usr02-bname send_mail_if_no_address = off importing usradr = so_key exceptions no_insert = 1 sap_name_exist = 2 x_error = 3 sap_name_not_exist = 4 others = 5.

SO_NEW_DOCUMENT_SEND_API1 call function 'SO_NEW_DOCUMENT_SEND_API1' exporting document_data = doc_data document_type = 'RAW' put_in_outbox = ' ' importing new_object_id = object_id
tables * OBJECT_HEADER = object_content = objcont * OBJECT_PARA = object_parb = objparb receivers = receiver exceptions others = 1000.

SO_OFFICE_DEQUEUE_API1 call function 'SO_OFFICE_DEQUEUE_API1'.

SO_USER_SO_KEY_GENERATE * CALL FUNCTION 'SO_USER_SO_KEY_GENERATE' * EXPORTING * SAPNAM = SOUD_TAB_1-SAPNAM * IMPORTING * SO_KEY = TP_SO_KEY * EXCEPTIONS * SAP_NAME_NOT_EXIST = 1 * X_ERROR = 2 * NO_ADDRESS_REFERENCE = 3 * OTHERS = 4.

SO_USER_ADDR_REFERENCE_CHANGE call function 'SO_USER_ADDR_REFERENCE_CHANGE' exporting sapname = soud_tab_2-sapnam * so_key = soud_tab_2-usradr "TR 7.1 SO_KEY was never regarded for 'R'

SO_USER_ADDR_REFERENCE_CHANGE call function 'SO_USER_ADDR_REFERENCE_CHANGE' exporting sapname = soud_tab_2-sapnam * so_key = soud_tab_2-usradr "TR 7.1 SO_KEY was never regarded for 'R'

ADDR_PERSON_GROUP_CHANGE * call function 'ADDR_PERSON_GROUP_CHANGE' * exporting * person_number = itab_addr3_val-persnumber ** PERSON_HANDLE = ' ' * new_person_group = intern_user * exceptions * parameter_error = 1 * internal_error = 2 * person_not_exist = 3 * others = 4.

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.

ADDR_PERS_COMP_SO_KEY_CREATE call function 'ADDR_PERS_COMP_SO_KEY_CREATE' importing returncode_numberrange = tp_returncode_num returncode = tp_returncode tables key_table = tp_szadr_so_key_tab3 * ERROR_TABLE = exceptions internal_error = 1 no_entries_in_key_table = 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.

SO_USER_ADDR_REFERENCE_CHANGE call function 'SO_USER_ADDR_REFERENCE_CHANGE' exporting sapname = soud_tab_2-sapnam so_key = soud_tab_2-usradr changeflag = 'I' "INSERT exceptions sap_name_not_exist = 1 sap_office_not_exist = 2 reference_error = 3 no_addr_for_so_key = 4 so_key_is_space = 5 parameter_error = 6 x_error = 7 others = 8.

SO_USER_ADDR_REFERENCE_CHANGE call function 'SO_USER_ADDR_REFERENCE_CHANGE' exporting sapname = soud_tab_2-sapnam so_key = soud_tab_2-usradr "10.01.01

SO_USER_ADDR_REFERENCE_CHANGE call function 'SO_USER_ADDR_REFERENCE_CHANGE' exporting sapname = soud_tab_2-sapnam changeflag = 'I' "INSERT exceptions sap_name_not_exist = 1 sap_office_not_exist = 2 reference_error = 3 no_addr_for_so_key = 4 so_key_is_space = 5 parameter_error = 6 x_error = 7 others = 8.

ADDR_PERS_COMP_GET_ARRAY call function 'ADDR_PERS_COMP_GET_ARRAY' importing returncode = addr_rcode tables address_pers_in_comp_selection = itab_addr3_sel address_pers_in_comp_value = itab_addr3_val * ADDRESS_PERS_IN_COMP_INFO = * ERROR_TABLE = * ADDRESS_PERS_IN_COMP_TEXT = exceptions parameter_error = 1 internal_error = 2 others = 3.

SUSR_USER_ADDRESSKEY_GET call function 'SUSR_USER_ADDRESSKEY_GET' exporting bname = sapnam importing persnumber = tp_persnumber addrnumber = tp_addrnumber IDADTYPE = lp_idadtype exceptions address_not_found = 1 others = 2.

ADDR_PERS_COMP_SO_KEY_CREATE call function 'ADDR_PERS_COMP_SO_KEY_CREATE' importing returncode_numberrange = tp_returncode_num returncode = tp_returncode tables key_table = tp_szadr_so_key_tab3 * ERROR_TABLE = exceptions internal_error = 1 no_entries_in_key_table = 2 others = 3.

SO_USER_ADDR_REFERENCE_CHANGE



call function 'SO_USER_ADDR_REFERENCE_CHANGE' exporting sapname = sapnam so_key = tp_szadr_so_key_tab3-so_key IDADTYPE = lp_idadtype "Central Person Concept "TR 7.10

SO_USER_ADDR_REFERENCE_CHANGE call function 'SO_USER_ADDR_REFERENCE_CHANGE' exporting sapname = soud_tab_2-sapnam so_key = soud_tab_2-usradr changeflag = 'I' exceptions sap_name_not_exist = 1 sap_office_not_exist = 2 reference_error = 3 no_addr_for_so_key = 4 so_key_is_space = 5 parameter_error = 6 x_error = 7 others = 8.



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