on 06-12-2008 5:45 PM
Hi friends,
While creating repository using ABAP API i am getting error 'Connection not trusted'. Sample code is given below what can be the possible problem?
DATA lv_log_object_name TYPE mdm_log_object_name.
DATA ls_dbms_auth_inf TYPE mdm_dbms_auth_info.
DATA ls_config_info TYPE mdm_config_information.
DATA ls_dbms_info TYPE mdm_dbms_info.
DATA ls_rep_info TYPE mdm_repository_info.
DATA lv_connection_name TYPE string.
DATA ls_repository_language TYPE mdm_cdt_language_code.
DATA lv_errstr TYPE string.
*Logical connection name for all operations (maintained in customizing)
lv_log_object_name = 'API_SAMPLE'.
*gets config object from customizing
CALL FUNCTION 'MDM_CONF_GET_SINGLE_API_CONFIG'
EXPORTING
iv_log_object_name = lv_log_object_name
IMPORTING
es_config_info = ls_config_info
EXCEPTIONS
ex_api_usage_error = 1
ex_provider_error = 2
ex_kernel_error = 3
ex_server_rc_code = 4
ex_not_supported = 5
OTHERS = 6.
IF sy-subrc = 0.
WRITE: / 'Successfully got configuration ', lv_log_object_name.
ELSE.
WRITE: / 'Error during MDM_CONF_GET_SINGLE_API_CONFIG: ', sy-subrc.
EXIT.
ENDIF.
*fills dbms authority info structure
ls_dbms_auth_inf-dbms_user_name = 'Admin'.
ls_dbms_auth_inf-dbms_password = ''.
*fills dbms info structure
ls_dbms_info-host_name = ls_config_info-dbms_host.
ls_dbms_info-db_type = ls_config_info-dbms_type.
*fills repository info structure
ls_rep_info-repository_name = 'API_SAMPLE'.
ls_rep_info-repository_description = 'created using mdm abap api'.
ls_rep_info-repository_port = 2037.
ls_rep_info-repository_partition = 0.
*creation of repository
CALL FUNCTION 'MDM_ADMIN_CREATE_REPOSITORY'
EXPORTING
iv_log_object_name = lv_log_object_name
is_dbms_auth_information = ls_dbms_auth_inf
is_repository_information = ls_rep_info
is_dbms_information = ls_dbms_info
EXCEPTIONS
ex_api_usage_error = 1
ex_provider_error = 2
ex_kernel_error = 3
ex_server_rc_code = 4
ex_not_supported = 5
OTHERS = 6.
IF sy-subrc = 0.
WRITE: / 'Successfully created repository ', lv_log_object_name.
ELSE.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO lv_errstr.
WRITE: / lv_errstr.
EXIT.
ENDIF.
Hi,
Just Restart your MDM Server, problem might get solved.
Hope it will Help you,
Rewards if Useful......
Mandeep Saini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
While creating repository using ABAP API i am getting error 'Connection not trusted'. Sample code is given below what can be the possible problem?
I would like to ask whether you have tested the connection between MDM and the R3 side using a simpler test program.
If not, then the problem may be with the initial Configuration done in the MDMAPIC transaction.
Also as the Error says that the Connection is not trusted - A trusted connection is made when the Allow.ip and the Deny.ip are configured according to our requirement. Mention the IP address of the R3 system in the Allow.ip which will be accessing MDM server. And then place this Allow.ip file in the MDM server folder.
I hope these config are already done.
Hope this helps.
Thanks and Regards
Nitin jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.