Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem to send an e-mail

Former Member
0 Likes
425

HI

I need to send a mail in the transaction SOST but I only want to send my e-mail, no are the emails that are in the list. How can I do that?

Maybe is a simple question but I need to do that correct!

Thanks!

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
400

You can't single them out, you need to send them all or none. If those mails are not to be sent at all, you can simply delete them and then run the send process for just your mail.

Regards,

Rich Heilman

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
401

You can't single them out, you need to send them all or none. If those mails are not to be sent at all, you can simply delete them and then run the send process for just your mail.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
400

Hello,

If I correctly understood ur question:

In the menu <b>Send process - - > Repeat send</b>

In order to send the email use this code:


DOC_DATA-OBJ_DESCR = 'Bewertete vorerfasste Rechnungen'.
        CONCATENATE 'EBELN' 'EBELP' 'LIFNR' 'BELNR'
                   INTO WA_OBJCONT-LINE SEPARATED BY SPACE.
        APPEND WA_OBJCONT TO OBJCONT.
        CLEAR WA_OBJCONT.
        APPEND WA_OBJCONT TO OBJCONT.
        CONCATENATE WA_MRMRSEG-EBELN WA_MRMRSEG-EBELP S_RBKP_NEW-LIFNR
                    WA_MRMRSEG-BELNR INTO WA_OBJCONT-LINE
                    SEPARATED BY SPACE.
        APPEND WA_OBJCONT TO OBJCONT.
        WA_RECEIVER-EXPRESS = 'X'.
        WA_RECEIVER-REC_TYPE = 'U'.
        WA_RECEIVER-RECEIVER = L_R_ADR6-SMTP_ADDR.
        APPEND WA_RECEIVER TO RECEIVER.

        CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
             EXPORTING
                  DOCUMENT_DATA              = DOC_DATA
             IMPORTING
                  NEW_OBJECT_ID              = OBJECT_ID
             TABLES
                  OBJECT_CONTENT             = OBJCONT
                  RECEIVERS                  = RECEIVER
             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.


Regards,

Vasanht