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: 

RSVTPROT Copy to custom program to send email and attachement

indu_07
Explorer
0 Kudos
552

I have a requirement where, RSVTPROT report needs to be copied to Z program with following changes:

1. Modify selection screen to input email address

2. Add logic to send email with 2 attachments which are basically ALV outputs in std program RSVTPROT

Please advise how I should go about it. My main concern is copying of std report. What all I must take care here.

4 REPLIES 4

jmodaal
Active Contributor
0 Kudos
479

Hello,

reading your question gives me the impression that your requirement is to send (periodically?) logs of table changes to some receivers via email...?

If so, then there is no need to copy an SAP standard program (which is often a bad idea). You can schedule RSVTPROT in a job and send the output to a distribution list. Find here a description.

Kind regards

Jan

indu_07
Explorer
0 Kudos
479

Thank you for your response. Currently, we have a variant. Upon F8 on this program, it gives 2 views option in a popup. When we choose 1 we get ALV output.

Selection screen:

Upon execution we get below popup with views option that can be selected to see the ALV report.

Actual ALV output can be seen after selecting one of the above views.

My Requirement: I need to send the first 2 views data as separate attachments over a mail.

My challenge is if I run this program in background, spool shows only these views list and not its content. Also there is no exit available to send mail and attachments. Please help here.

Sandra_Rossi
Active Contributor
0 Kudos
479

Please use the COMMENT button for comments, asking for complements, adding details, replying to a comment or a proposed solution or to the OP question, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

Or even update your question, via menu Actions > Edit.

indu_07
Explorer
0 Kudos
479

Thank you for your response. Currently, we have a variant. Upon F8 on this program, it gives 2 views option in a popup. When we choose 1 we get ALV output.

Selection screen:

Upon execution we get below popup with views option that can be selected to see the ALV report.

Actual ALV output can be seen after selecting one of the above views.

My Requirement: I need to send the first 2 views data as separate attachments over a mail.

My challenge is if I run this program in background, spool shows only these views list and not its content. Also there is no exit available to send mail and attachments. Please help here.