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: 

Exporting Query Output to Excel and sending it as an Email

rajavelu_vijayakumar
Participant
0 Kudos


Hi All,

There is a requirement from the business as to export the output of a Query to Excel and subsequently mailing the same to a specified list of users.

The Query should be run in the background Weekly.

We have created the Query as per user requirement but stuck up with exporting to Excel after running in the background and mailing the same.

Please give your valuable feedback on the above requirement.

Awaiting an early reply.

Regards,

R Vijayakumar

1 REPLY 1

former_member226239
Contributor
0 Kudos

For sending the email you can make use of the following 2 standard classes.

CL_BCS

CL_DOCUMENT_BCS (to attach the document to the email)

-Chandra