cancel
Showing results for 
Search instead for 
Did you mean: 

Getting cx_mdm_server_rc_code exception

0 Kudos

Hi,

I am trying to connect to MDM ABAP API through class based connection. We are using MDM5.5 SP05 Patch 2, Server Build 5.5.42.3. I have also created allow.ip file under server folder of MDM. But When I try to connect, it creates the api instance successfully but when i call "lr_api->mo_accessor->connect( ls_language ).", it throws "cx_mdm_server_rc_code " exception. Kindly help me in resolving this. Its urgent.

Thanks & Regards,

Gaurav

Accepted Solutions (1)

Accepted Solutions (1)

michael_theis
Active Contributor
0 Kudos

Hi Gaurav,

the exception may have several reasons. Anyways, if you catch the exception you're able to get the RC respectively the corresponding long text of the error which can give you a hint on what's going wrong:

CATCH cx_mdm_server_rc_code INTO lr_exception.
CALL METHOD lr_exception->if_message~get_text RECEIVING result = lv_string.

will display the message text in lv_string.

BR Michael

0 Kudos

Hi Michael,

I got it fixed by doing the same what u suggested. I saw the message in the exception - it said "User does not exist". The reason was my user id was created in lower case in MDM but SAP passes the same in upper case. So now the issue is resolved. Thanks. Points rewarded.

Gaurav

Answers (0)