Application Development 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: 

Attach a document in workflow

venuarun
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hi Arun

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

regards,

Archer

0 Kudos

Hi Dengyong,

By using Tmg.

Regards

Arun VS

0 Kudos

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

former_member196651
Contributor
0 Kudos

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

0 Kudos

Hi Abijith,

Actually i want to send the created record along with mail

regards

Arun Vs

former_member196651
Contributor
0 Kudos

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