Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RAISE ERROR_OCCURRED

alejandro_romero2
Participant
0 Likes
404

hi gyus i have a problem i want to display an error message in my interaction center web client so i try this

SELECT SINGLE OBJECT_ID INTO NUMOPERACION FROM CRMD_ORDERADM_H

WHERE

DESCRIPTION_UC EQ IS_ORDERADM_H_WRK-DESCRIPTION.

IF SY-SUBRC eq 0.

RAISE ERROR_OCCURRED.

ENDIF.

but the error message does not appear. what should i do?

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
347

Hello Alejandro

I am not aware how your IC web client works but perhaps the following hints may be useful:

"IF SY-SUBRC eq 0.  " ?! Or should this be <>?
 IF ( syst-subrc NE 0 ).
"  RAISE ERROR_OCCURRED.  " no message, just exception
  MESSAGE 'Error' TYPE 'I' RAISING error_occurred.
ENDIF.

Regards

Uwe

Read only

alejandro_romero2
Participant
0 Likes
347

thanks i solve the problem