SAP Reports / Programs | Basis Components | Middleware | RFC(BC-MID-RFC) SAP BC

RS_UPDATE_TRUST_RELATIONS SAP ABAP Report - Update Trust Relationships to System (SAP Note 1491645)







RS_UPDATE_TRUST_RELATIONS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report is used to update the trust relationships of all system that trust the current system (in accordance with SAP Note 1498973)...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 RS_UPDATE_TRUST_RELATIONS 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 RS_UPDATE_TRUST_RELATIONS. "Basic submit
SUBMIT RS_UPDATE_TRUST_RELATIONS AND RETURN. "Return to original report after report execution complete
SUBMIT RS_UPDATE_TRUST_RELATIONS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Update Trust Relationships to System (SAP Note 1491645)
Text Symbol: 162 = Already updated
Text Symbol: 169 = Apply SAP Note 1498973 in the target system.
Text Symbol: 170 = Trust relationship already updated
Text Symbol: 171 = Already updated
Text Symbol: 172 = To modify the timeout, select a line and choose "Connect"
Text Symbol: 182 = To display details, select a line and choose "Error Details"
Text Symbol: 214 = Error Details
Text Symbol: 216 = Connect
Text Symbol: 220 = Trust Relationships and Accessibility of Trusting Systems
Text Symbol: 226 = Saved Trusted Connection
Text Symbol: 235 = New connection attempt
Text Symbol: 244 = Kernel too old
Text Symbol: 245 = Apply kernel patch as in SAP Note 1491645
Text Symbol: 402 = Compiling list for system:
Text Symbol: 403 = Error when opening an RFC connection
Text Symbol: 404 = Select one line only
Text Symbol: 405 = No trust relationships exist
Text Symbol: 406 = to the current ABAP system
Text Symbol: 407 = HMAC key created and saved in current system
Text Symbol: 408 = .
Text Symbol: 409 = Update
Text Symbol: 410 = Select the updateable connections only
Text Symbol: 411 = Select "Manual Logon" only
Text Symbol: 412 = A new logon window will appear.
Text Symbol: 413 = Do not close this window.
Text Symbol: 001 = Yes
Text Symbol: 002 = No
Text Symbol: 111 = Display Error Details
Text Symbol: 112 = Error Details
Text Symbol: 114 = Manual Logon
Text Symbol: 117 = Profile parameter "rfc/security_key" will be void after the system settings are changed (see SAP Note 1491645).
Text Symbol: 118 = You should remove this parameter after the report has run. Do you want to run the report?
Text Symbol: 120 = Profile Parameter "rfc/security_key"
Text Symbol: 122 = Missing authorization for updating the trust relationship in the calling system
Text Symbol: 125 = To update, choose "Update"
Text Symbol: 128 = Updateable
Text Symbol: 129 = Logon error





Text Symbol: 130 = Not updateable
Text Symbol: 132 = Ready to update
Text Symbol: 133 = Authorization error
Text Symbol: 134 = Missing authorization for updating trust relationship in target system
Text Symbol: 135 = Connection error
Text Symbol: 136 = Trust relationship error
Text Symbol: 137 = Delete trust relationship using transaction SMT1 in target system and create it again
Text Symbol: 138 = Prerequisites not met
Text Symbol: 139 = Connection attempt with configured timeout
Text Symbol: 141 = To log on, select a line and choose "Manual Logon"
Text Symbol: 143 = Unexpected error
Text Symbol: 145 = Generated Connection with Load Balancing
Text Symbol: 146 = Generated Connection Without Load Balancing
Text Symbol: 156 = Timeout


INCLUDES used within this REPORT RS_UPDATE_TRUST_RELATIONS

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:

TH_USER_INFO CALL FUNCTION 'TH_USER_INFO' IMPORTING act_sessions = l_act_sessions max_sessions = l_max_sessions.

SLIC_GET_LICENCE_NUMBER CALL FUNCTION 'SLIC_GET_LICENCE_NUMBER' IMPORTING license_number = gl_license_nr.

RFC_SYSTEM_INFO CALL FUNCTION 'RFC_SYSTEM_INFO' IMPORTING rfcsi_export = l_rfcsi EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-120 "#EC * text_question = l_question text_button_1 = 'Ja'(001) text_button_2 = 'Nein'(002) default_button = '2' display_cancel_button = ' ' IMPORTING answer = l_answer EXCEPTIONS OTHERS = 1.

RFC_SYSTEM_INFO CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION l_dest IMPORTING rfcsi_export = l_rfcsi EXCEPTIONS OTHERS = 1.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light info = 'Umsetzbar'(128) IMPORTING RESULT = gl_icon_green_light.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_yellow_light info = 'Anmeldefehler'(129) IMPORTING RESULT = gl_icon_yellow_light.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light info = 'Nicht umsetzbar'(130) IMPORTING RESULT = gl_icon_red_light.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_complete info = 'Bereits umgesetzt'(162) IMPORTING RESULT = gl_icon_complete.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING taskname = p_task EXCEPTIONS OTHERS = 0.

RFC_ACCESS_TRUSTED_SEC_KEY CALL FUNCTION 'RFC_ACCESS_TRUSTED_SEC_KEY' EXPORTING mode = 'O' IMPORTING security_key = l_old_seckey EXCEPTIONS authority_not_available = 1 invalid_mode = 2 mode_execution_failed = 3 OTHERS = 4.






CALCULATE_HASH_FOR_CHAR CALL FUNCTION 'CALCULATE_HASH_FOR_CHAR' EXPORTING alg = 'SHA1' data = l_old_seckey_string IMPORTING hash = old_seckey_hashed * HASHLEN = * HASHX = * HASHXLEN = EXCEPTIONS unknown_alg = 1 param_error = 2 internal_error = 3 OTHERS = 4.

RFC_READ_R3_DESTINATION CALL FUNCTION 'RFC_READ_R3_DESTINATION' EXPORTING destination = l_mydest authority_check = ' ' IMPORTING loadbalancing = l_loadbalancing systemid = l_systemid systemnr = l_systemnr server = l_server group = l_group client = l_client EXCEPTIONS OTHERS = 1.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = l_text_str EXCEPTIONS OTHERS = 0.

RFC_UPDATE_TRUST_RELATION CALL FUNCTION 'RFC_UPDATE_TRUST_RELATION' DESTINATION conn-destname STARTING NEW TASK conn-taskname CALLING callback_meth ON END OF TASK EXPORTING old_seckey_hashed = gl_old_seckey_hashed new_seckey = l_new_seckey only_test = only_test EXCEPTIONS communication_failure = 1 MESSAGE l_msg system_failure = 2 MESSAGE l_msg OTHERS = 3.

TH_ERR_GET CALL FUNCTION 'TH_ERR_GET' IMPORTING detail = conn-message.

RFC_ACCESS_TRUSTED_SEC_KEY CALL FUNCTION 'RFC_ACCESS_TRUSTED_SEC_KEY' EXPORTING mode = 'R' IMPORTING security_key = hmac_seckey EXCEPTIONS authority_not_available = 1 invalid_mode = 2 mode_execution_failed = 3 OTHERS = 4.

RFC_ACCESS_TRUSTED_SEC_KEY CALL FUNCTION 'RFC_ACCESS_TRUSTED_SEC_KEY' EXPORTING mode = 'C' EXCEPTIONS authority_not_available = 1 invalid_mode = 2 mode_execution_failed = 3 OTHERS = 4.

RFC_ACCESS_TRUSTED_SEC_KEY CALL FUNCTION 'RFC_ACCESS_TRUSTED_SEC_KEY' EXPORTING mode = 'R' IMPORTING security_key = hmac_seckey EXCEPTIONS authority_not_available = 1 invalid_mode = 2 mode_execution_failed = 3 OTHERS = 4.

RFC_UPDATE_TT_DELEGATION CALL FUNCTION 'RFC_UPDATE_TT_DELEGATION' STARTING NEW TASK 'WRAPPER' CALLING callback_meth_wrapper ON END OF TASK EXPORTING old_seckey_hashed = gl_old_seckey_hashed new_seckey = gl_hmac_seckey only_test = only_test trusting_dest = destination taskname_in = taskname EXCEPTIONS communication_failure = 1 MESSAGE l_msg system_failure = 2 MESSAGE l_msg OTHERS = 3.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING taskname = -taskname EXCEPTIONS OTHERS = 0.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'RFC_TT_RELATION' CHANGING ct_fieldcat = ttupdate=>gt_fieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

HELP_OBJECT_SHOW CALL FUNCTION 'HELP_OBJECT_SHOW' EXPORTING dokclass = 'RE' doklangu = sy-langu dokname = sy-repid TABLES links = ttupdate=>links EXCEPTIONS OTHERS = 3.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'RFC_TT_CONNECTION_INFO' CHANGING ct_fieldcat = ttupdate=>gt_fieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

RFC_IS_GUI_ON CALL FUNCTION 'RFC_IS_GUI_ON' EXPORTING login_check = space IMPORTING on = l_guiflag.

SAPGUI_SET_PROPERTY CALL FUNCTION 'SAPGUI_SET_PROPERTY' DESTINATION 'SAPGUI' EXPORTING property = 'ACTIVATE' value = abap_true EXCEPTIONS OTHERS = 0.



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