SAP Mail like Microsoft Outlook



1

Create a new Function named  ‘ZSEND_EMAIL_MASTER’

 

Import Parameters: 

All import parameters are optional.

2

 

I_SENDER: Sender e-mail address

I_SUBJECT: Mail Subject

I_SLINE1: X Coordinates of the screen

I_SLINE2: Y Coordinates of the screen

 

Export Parameters:

3

E_RETURN: Show the status of the sending process.

 

Tables:

All Tables are optional

4

IT_RECEIVERS: Receiver List

IT_CC: CC List

IT_BCC: BCC List

IT_BODY: Mail Body

IT_ATTACHMENT: Attachment File Path List

Sample Code:

FUNCTION ZSEND_EMAIL_MASTER.

*”———————————————————————-

*”*”Local Interface:

*”  IMPORTING

*”     VALUE(I_SENDER) TYPE  STRING OPTIONAL

*”     VALUE(I_SUBJECT) TYPE  STRING OPTIONAL

*”     REFERENCE(I_SLINE1) TYPE  INTEGER DEFAULT 3

*”     REFERENCE(I_SLINE2) TYPE  INTEGER DEFAULT 10

*”  EXPORTING

*”     VALUE(E_RETURN) TYPE  BAPIRET2

*”  TABLES

*”      IT_RECEIVERS TYPE  STRING_TABLE OPTIONAL

*”      IT_CC TYPE  STRING_TABLE OPTIONAL

*”      IT_BCC TYPE  STRING_TABLE OPTIONAL

*”      IT_BODY TYPE  STRING_TABLE OPTIONAL

*”      IT_ATTACHMENT TYPE  STRING_TABLE OPTIONAL

*”———————————————————————-

* Subject 

lv_subject      = i_subject.

* Alıcılar

lt_input_to[]   = it_receivers[].

* CC dekiler

lt_cc[]         = it_cc[].

* Attachment

lt_attachment[] = it_attachment[].

* Mail Body

lt_body[]       = it_body[].

* Sender

ls_input_sender = i_sender.

call screen 100 starting at i_sline1 i_sline2.

ENDFUNCTION.

 

Screenshots:

TO LIST

5

CC LIST

6

ATTACHMENT

7

Please send an e-mail to anilozgen@gmail.com to get detailed information…

 

 

 

 

Leave a comment

Your email address will not be published. Required fields are marked *