cancel
Showing results for 
Search instead for 
Did you mean: 

Email Configuration in Process chain

Former Member
0 Kudos

Hi Gurus

I am doing email notification configuration in process chain but when I go to "maintain Recipient List" I can find only 4 Recipient Type , Would you pl advise how can I add more types for example SMS , Fax number etc...

Also I don't see any users added to the Recipient list and when I try to add them which Type i should select for the company's ID?

Appreciate your help

Kris

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member181964
Active Contributor
0 Kudos

Hi,

You can also trugger email from Program, and use this program in Process chain.

check it in

&----


*& Report ZTEST_FM

&----


REPORT ztest_fm.

DATA : is_doc_chng TYPE sodocchgi1,

it_objtxt TYPE STANDARD TABLE OF solisti1,

is_objtxt TYPE solisti1,

it_objpack TYPE STANDARD TABLE OF sopcklsti1,

is_objpack TYPE sopcklsti1,

it_objbin TYPE STANDARD TABLE OF solisti1,

is_objbin TYPE solisti1,

it_reclist TYPE STANDARD TABLE OF somlreci1,

is_reclist TYPE somlreci1,

w_lines_tx TYPE i.

is_doc_chng-obj_descr = 'Auto genareted Mail'.

is_objtxt-line = 'This is an automatically generated mail. Please do not reply to it.'(028).

APPEND is_objtxt TO it_objtxt.

is_objtxt-line = space.

APPEND is_objtxt TO it_objtxt.

DESCRIBE TABLE it_objtxt LINES w_lines_tx.

READ TABLE it_objtxt INTO is_objtxt INDEX w_lines_tx.

is_doc_chng-doc_size = ( w_lines_tx - 1 ) * 255 + STRLEN( is_objtxt ).

CLEAR is_objpack-transf_bin.

is_objpack-head_start = 1.

is_objpack-head_num = 0.

is_objpack-body_start = 1.

is_objpack-body_num = w_lines_tx.

is_objpack-doc_type = 'RAW'.

APPEND is_objpack TO it_objpack.

is_reclist-receiver = '(Give your id here)'.

is_reclist-rec_type = 'U'.

APPEND is_reclist TO it_reclist.

CLEAR is_reclist.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = is_doc_chng

put_in_outbox = 'X'

commit_work = 'X'

TABLES

packing_list = it_objpack

contents_txt = it_objtxt

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.

IF sy-subrc 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

*Note: You can alter this program as per your requirement. For this SCOT need to be configured

You can add mutiple users list and also you can get users mail ids from tables. i.e. you can read the mail ids from tables, for this ask ABAPer to do it.*

Thanks

Reddy

Former Member
0 Kudos

Hi,

Which version u are using now I think u r working on BW 3.5. In BW/BI 7.0 you will find all these

Recipient type which u r required.

and for company's ID select Recipient type as Internet address

Hope this helps you

Regards,

Rakesh

Former Member
0 Kudos

To select company's ID you can select Internet Address type.

Abhijit