2008 Oct 30 11:10 AM
hi,
i need to send an email to one of the email id if the data doesnot exist for the values i have given in the selction screen.
i used FM 'EFG_GEN_SEND_EMAIL'
Please see my code below.
IF gt_final[] IS INITIAL.
PERFORM SEND_MAIL.
ENDIF.
**************************************************************
SEND_MAIL
****************************************************************
gt_msg-line = 'The set report could not be generated.
APPEND gt_msg.
CLEAR: gt_msg-line,gt_msg.
CONCATENATE sy-sysid 'job failured' INTO
l_email_hdr SEPARATED BY space.
l_email_sndr = sy-sysid .
l_email_recvr = p_recvr(mail id mentioned in the selcetion screen).
CALL FUNCTION 'EFG_GEN_SEND_EMAIL'
EXPORTING
i_title = l_email_hdr
i_sender = l_email_sndr
i_recipient = l_email_recvr
TABLES
i_tab_lines = gt_msg.
do i need to change anything else.
hi,
i need to send an email to one of the email id if the data doesnot exist for the values i have given in the selction screen.
i used FM 'EFG_GEN_SEND_EMAIL'
Please see my code below.
IF gt_final[] IS INITIAL.
PERFORM SEND_MAIL.
ENDIF.
**************************************************************
SEND_MAIL
****************************************************************
gt_msg-line = 'The set report could not be generated.
APPEND gt_msg.
CLEAR: gt_msg-line,gt_msg.
CONCATENATE sy-sysid 'job failured' INTO
l_email_hdr SEPARATED BY space.
l_email_sndr = sy-sysid .
l_email_recvr = p_recvr(mail id mentioned in the selcetion screen).
CALL FUNCTION 'EFG_GEN_SEND_EMAIL'
EXPORTING
i_title = l_email_hdr
i_sender = l_email_sndr
i_recipient = l_email_recvr
TABLES
i_tab_lines = gt_msg.
do i need to change anything else.
2008 Oct 30 11:52 AM