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

to post a mail from ABAP program

suman_lakkimsetty2
Participant
0 Likes
566

dear friends

how to post a mail to SAP inbox of a particular user from ABAP program.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
542

If search forum you will get lots of results

4 REPLIES 4
Read only

Former Member
0 Likes
543

If search forum you will get lots of results

Read only

Former Member
0 Likes
542

get the spool no of the program

we have standard program rstxpdf4 through that convert it to pdf

and through f.m SO_NEW_DOCUMENT_ATT_SEND_API1 u can send mail.

  • CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

  • EXPORTING

  • DOCUMENT_DATA = x_document_data

  • PUT_IN_OUTBOX = 'X'

  • COMMIT_WORK = 'X'

  • TABLES

  • PACKING_LIST = it_packing_list

  • CONTENTS_BIN = it_contents_bin

  • CONTENTS_TXT = it_contents_txt

  • RECEIVERS = it_receivers

  • 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 .

*

  • IF SY-SUBRC <> 0.

  • retcode = sy-subrc.

  • perform protocol_update.

  • else .

Read only

Former Member
0 Likes
542

Hi,

There are lot of post for your query spend some time to search you will get good answers.

Below link will be one of them.

Cheers!!

VEnk@

Read only

Former Member
0 Likes
542

Hai,

Kindly Search in SDN. You will get lots of thread regarding send mail.

https://forums.sdn.sap.com/click.jspa?searchID=18156250&messageID=6179285

Regards,

Harish