Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SMSY- Runtime Error CALL_FUNCTION_REMOTE_ERROR

Dear Experts,

In Solution Manager while I retrieve my Products system SID - Read System Data Remote function

I am encountering the below dump

Runtime Errors CALL_FUNCTION_REMOTE_ERROR

Information on where terminated

Termination occurred in the ABAP program "CL_DIAGLS_EVENT_HANDLER=======CP" -

in "NOTIFY_JAVA".

The main program was "SAPLSMSY_MAIN ".

In the source code you have the termination point in line 56

of the (Include) program "CL_DIAGLS_EVENT_HANDLER=======CM009".

User and Transaction

Client.............. 777

User................ "BASIS"

Language key........ "E"

Transaction......... "SMSY "

Transactions ID..... "BA3384E0C7F3F17DB854002655548B98"

Program............. "CL_DIAGLS_EVENT_HANDLER=======CP"

Screen.............. "SAPLSMSY_MAIN 0001"

Screen line......... 18

Source Code

" Create Log

LR_LOGGER = CL_DIAGLS_LOG=>CREATE_LOG(

IM_CALLER_STR = 'CL_DIAGLS_EVENT_HANDLER'

IM_EXTERNAL_ID = LV_NOTIF_DESCR

IM_SUB_OBJECT = CL_DIAGLS_LOG=>CO_NOTIF_SUB_OBJECT ).

" Log

CONCATENATE 'Java Notification received: ''' IM_LANDSCAPE_CLASS_NAME ''', id ''' "#EC NOT

IM_LANDSCAPE_ID ''', action ''' IM_EVENT_ACTION '''.'

INTO LV_MESSAGE.

LR_LOGGER->ADD_LOG_INFO(

IM_MESSAGE = LV_MESSAGE ).

" Notify Java -


LR_LOGGER->ADD_LOG_START_DURATION(

IM_MESSAGE = 'Starting notifying Java Listeners...' ). "#EC NOTEXT

" Check the RFC Dest

CALL FUNCTION 'RFC_PING' DESTINATION 'WEBADMIN'

EXCEPTIONS

COMMUNICATION_FAILURE = 1

SYSTEM_FAILURE = 2.

IF SY-SUBRC = 0. "Connection is ok...

LR_LOGGER->ADD_LOG_INFO(

IM_MESSAGE = 'Found WEBADMIN destination.' ). "#EC NOTEXT

" Call Java

LV_EVENT_ACTION =

CL_DIAGLS_EVENT_ACTION_TYPE=>CO_DELETED->GET_ACTION_TYPE( ).

CALL FUNCTION 'FM_DIAGLS_NOTIFY_JAVA'

DESTINATION 'WEBADMIN'

EXPORTING

IM_BASE_LANDSCAPE_ID = LV_LANDSCAPE_ID

IM_BASE_LANDSCAPE_CLASS = IM_LANDSCAPE_CLASS_NAME

IM_ACTION = LV_EVENT_ACTION

IMPORTING

EXP_RC = LV_RETURN_CODE

EXP_RC_MSG = LV_RC_MESSAGE.

IF LV_RETURN_CODE = 0.

LR_LOGGER->ADD_LOG_INFO(

IM_MESSAGE = 'Java listener called successfully.' ). "#EC NOTEXT

ELSE.

" Log

CONCATENATE 'Java listeners called with errors.: error code ''' LV_RETURN_CODE ''',

LV_RC_MESSAGE '''.' INTO LV_MESSAGE.

LR_LOGGER->ADD_LOG_ERROR( LV_MESSAGE ).

ENDIF.

ELSE.

LR_LOGGER->ADD_LOG_ERROR(

Kindly help us.

BR,

Jai

Former Member
Not what you were looking for? View more on this topic or Ask a question