cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can i Cannge the WF_INITIATOR for SRM Approval Workflow.

Former Member
0 Likes
149

Hi Experts,

I am facing issue related to sendor name format.

Whenever SRM approval workflow gets triggered then corresponding responsible user(Approver) gets a mail in their SAP inbox.

I checked in the system these workflow runs using RFC_USER user.So approver gets mail with sendor information as RFC_USER i.e. "Sent: Jun 17, 2011 by RFC_USER, Functional ID "

My requirement is to replace this RFC_USER with some other generic user.

Can anybody tell me please how can i achieve this.

Thanks,

Rupendra Pandey

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hello,

Usually, if I want to do anything unusual with mails from workflow then I create a step which calls a task which calls a new method of my BOR object which calls fm SO_NEW_DOCUMENT_ATT_SEND_API1. In that we can specify Sender name different from WF_BATCH or RFC_USER.

Check the following Code for sending mail.

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

document_data = doc_chng

put_in_outbox = 'X'

sender_address = 'SAPSCHED'

sender_address_type = 'B'

  • IMPORTING

  • SENT_TO_ALL =

  • NEW_OBJECT_ID =

TABLES

packing_list = objpack

object_header = objhead

contents_bin = html_tab

contents_txt = objtxt

  • CONTENTS_HEX =

  • OBJECT_PARA =

  • OBJECT_PARB =

receivers = 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