2023 Nov 03 12:18 PM
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.
2023 Nov 03 12:42 PM
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
2023 Nov 06 5:53 AM
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.
2023 Nov 06 8:23 AM
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.
2023 Nov 06 3:21 PM
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.