之前用,每天都会收到邮件,可是现在只有出错了才发
我一直以为是哪里有个设置,后来才发现,原来是SAP版本不一样啊…
LOOP AT g_t_data INTO l_s_data.
IF ( NOT l_s_data-wished IS INITIAL AND
l_s_data-wished <> l_s_data-status ) OR
( l_s_data-wished IS INITIAL AND
( l_s_data-status = 'X' OR l_s_data-status = 'R' ) ).
l_error = 'X'.
EXIT.
ENDIF.
ENDLOOP.
IF l_error = 'X'.
MESSAGE s051(rsar) WITH text-009 '' '' ''.
* ---- Get message ----
CALL METHOD cl_rsra_communication=>get_message
EXPORTING
i_variant = 'RSPC_MONITOR_MAIL'
RECEIVING
r_r_message = l_r_message.
这是现在的,SE38--》RSPC_MONITOR
原来的是这样:
LOOP AT g_t_data INTO l_s_data.
IF ( NOT l_s_data-wished IS INITIAL AND
l_s_data-wished <> l_s_data-status ) OR
( l_s_data-wished IS INITIAL AND
( l_s_data-status = 'X' OR l_s_data-status = 'R' ) ).
EXIT.
ENDIF.
ENDLOOP.
IF sy-subrc = 0.
MESSAGE s051(rsar) WITH text-009 '' '' ''.
* ---- Get message ----
CALL METHOD cl_rsra_communication=>get_message
EXPORTING
i_variant = 'RSPC_MONITOR_MAIL'
RECEIVING
r_r_message = l_r_message.
太有意思了,后来一看,原来这里版本比较新...额...囧rz