cancel
Showing results for 
Search instead for 
Did you mean: 

email from usage decision

muhamed_faisal
Active Participant
0 Kudos

Dears

Please tell me what are the step required to sending email from usage decision

give me a details answer

Faisal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

There are different followup action sthat are defined in std sap

QCC3->Inspection lot completion->Define Follow-Up Actions-->Follow-Up Actions

MAIL

Send a standard mail when the usage decision is made

MAIL2

Send a mail with the usage decision data when the usage decision is made

MAIL3

Send mail with the usage decision data and a long text when the usage decision is made

MANUAL

Execute follow-up action manually (no function)

Every Follwup action has function module like "QFOA_UD_LONGTEXT_SENDING". That belongs to Mail:3.

So when you assign this followup action aginst the UD code in QS51 --->after UD system trigger mail as per setting in customization & function module.

http://help.sap.com/saphelp_46c/helpdata/en/18/438976449011d189420000e829fbbd/content.htm

Seek the help of abper for chnaging or creating new function module as per your requirement.

muhamed_faisal
Active Participant
0 Kudos

Hi sujit

Thank you for the detail answer

I try the way as per in your answer by selecting MAIL in QS51 follow up action

and i got a mail to my in box itslef when i give a UD

what are the setting required if i want to send a mail to any other user having sap user id... or is it possible to send mail to external id aslo

thanks in advance

Faisal

Former Member
0 Kudos

what are the setting required if i want to send a mail to any other user having sap user id... or is it possible to send mail to external id aslo

This is possible by changing the function module in the Followup action & desinging your own.

Take help of abaper to design a function module like

SO_DOCUMENT_SEND_API1

SAPoffice: Send new document with attachments via RFC

SO_NEW_DOCUMENT_ATT_SEND_API1

(In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)

SAPoffice: Send new document with attachments via RFC

Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject.

Answers (1)

Answers (1)

Former Member
0 Kudos

1\ Use Tcode QS51 and maintain follow-up action 'Mail' or anyother you defined .

2\ When UD, follow-up action is trigered and mail is sent.