cancel
Showing results for 
Search instead for 
Did you mean: 

How to send mail with delivery output attachment to someone using custom report?

0 Kudos
1,835

I have one Ztransaction which displays multiple deliveries as an ALV. Now if I select any row of delivery and click on custom created menu button(send mail) then it should send one mail with delivery attachment to the user.
How to achieve it?
Problem: For different deliveries , there can be different sap scripts and program. So, I can not go to each program and from FM: close_form get OTF data?
Still need solution for it.

View Entire Topic
0 Kudos

Finally, after calling two subroutines of report RSNAST00:

I sent output to spool and then I read output from spool by following ways:

First read spool no. generated by FM RSPO_FIND_SPOOL_REQUESTS:

Then read pdf data from spool using FM: CONVERT_OTFSPOOLJOB_2_PDF:

Now LT_BIN_DATA contains data in binary format. Just use it for attachment.