Skip to Content
Former Member
May 14, 2010 at 03:09 PM

Unable to send email when PO is created in R/3 from SRM


Hi all,

My requirement is as follows:

I need to send an email to the requestor of PO (for each item in PO) when a PO is created. The PO is created from SRM.

I have coded the functionality in the User Exit EXIT_SAPMM06E_013.

I have used the BAPI 'BAPI_USER_GET_DETAIL' to get the details of the requestor and the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send email.The receiver details are populated as follows

*-- Receiver list
  lv_receiver-rec_type           = 'U'.
  lv_receiver-com_type           = 'INT'.
  lv_receiver-notif_del          = 'X'.
  lv_receiver-notif_ndel         = 'X'.

  lv_receiver-receiver = p_emailid.
  append lv_receiver to li_receiver.

Now when I create a PO in R/3 the email is generated successfully to the requestor but, if I create it from SRM I can see the entry in SOST with red entry saying 'No delivery to xxxxx, as recipient unknown'. The same recipient has recieved email when PO is created from R/3.

Can you please tell me why it is happening when created from SRM. Any settings needs to be done. Please let me know.