Skip to Content

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

Sending a mail

Hi experts,

I need some help plz:

I'm using the module function: SO_NEW_DOCUMENT_ATT_SEND_API1 to send a sap mail.

I'd like: when the addressees connect to SAP, they receive a popup to prevent them that they have new mail.

This is my code:

LOOP AT wt_user INTO ws_user.
    MOVE ws_user-users TO reclist-receiver.
    reclist-rec_type = 'B'.
    reclist-express = ws_user-express.
    APPEND reclist.
  ENDLOOP.

* Sending the document
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = doc_chng
      put_in_outbox              = 'X'
    TABLES
      packing_list               = objpack
      object_header              = objhead
      contents_bin               = objbin
      contents_txt               = objtxt
      receivers                  = reclist
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      operation_no_authorization = 4
      OTHERS                     = 99.

Do you have any idea?

Regards,

Mehdi

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