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

Attach a document in workflow

venuarun
Active Participant
0 Likes
1,114

Hi all,

How to attach a data in mail when a new record was created in the database table ? The data means the new record  for example

Employee name that should come with the mail when a record is created .

Regards

Arun VS

6 REPLIES 6
Read only

Former Member
0 Likes
1,041

Hi Arun

How did you create data in database table? by run report(only one report or more) or by TMG(SM30)?

regards,

Archer

Read only

0 Likes
1,041

Hi Dengyong,

By using Tmg.

Regards

Arun VS

Read only

0 Likes
1,041

Then you just need bounding a routine for TMG event 02, in this routine, write your send email logic, For send email, i think you can search so many threads in SCN about it.

just refer this bounding routine link, http://wiki.scn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS

regards,

Archer

Read only

former_member196651
Contributor
0 Likes
1,041

Hi Arun,

What is your exact requirement? Do you want to send a mail whenever a row is added? If so then you can do this using the CL_BCS_MESSAGE.

Thanks & Regards,

Abijith

Read only

0 Likes
1,041

Hi Abijith,

Actually i want to send the created record along with mail

regards

Arun Vs

Read only

former_member196651
Contributor
0 Likes
1,041

Hi Arun,

Instead of sending the details of the row as an attachment, can't you send the same as content of the mail. If so the things will be easy.

Regards,

Abijith