cancel
Showing results for 
Search instead for 
Did you mean: 

smartform mail to external id

Former Member
0 Kudos

Hi,

I'm using FM ' SO_NEW_DOCUMENT_ATT_SEND_API1 ' to send mails to sap id. but when i tries it giving non sap id i.e. external mail id, it did not deliver.

Please tell me what is the procedure to send mail to external id's?.

Also tell me how to create a distribution list with multiple user-id's in SAP.

Regards,

Subbu.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
   wa_it_reclist-express = c_X.                        " X

    wa_it_reclist-rec_type = c_U.                       "U -> Internet address give this to send to external id

    APPEND wa_it_reclist TO it_reclist.  
* Sending Mail

    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

     EXPORTING

      document_data                  = w_doc_chng

      put_in_outbox                  = c_X            "X

*     COMMIT_WORK                    =

*    IMPORTING

*     SENT_TO_ALL                    =

*     NEW_OBJECT_ID                  =

     TABLES

      packing_list                   = it_objpack

      object_header                  = wa_objhead

      contents_bin                   = it_objbin

      contents_txt                   = it_objtxt

*     CONTENTS_HEX                   =

*     OBJECT_PARA                    =

*     OBJECT_PARB                    =

        receivers                    = it_reclist

     EXCEPTIONS

       too_many_receivers            = 1

       document_not_sent             = 2

       document_type_not_exist       = 3

       operation_no_authorization    = 4

       parameter_error               = 5

       x_error                       = 6

       enqueue_error                 = 7

       OTHERS                        = 8 . 
   

Answers (5)

Answers (5)

Former Member
0 Kudos

answered

Former Member
0 Kudos

HI Karthi,

Regards,

Sravanthi

Former Member
0 Kudos

Hi,

Go to transaction SCOT and check the status of the mail you have sent, if there are any errors this would list you the problem.

Regards,

Raghavendra

Former Member
0 Kudos

Hi,

[]

[]

Former Member
0 Kudos

[Duplicate Post |;