Skip to Content
0
Dec 01, 2006 at 03:00 AM

Email Stock Transfer Order

309 Views

I have this requirement to email STO to the respective recipient. I have done the following:

1. Copied form MEDRUCK to ZSTOMEDRUCK

2. Copied program SAPFM06P to ZSAPFM06P

3. Copied FMs ME_READ_PO_FOR_PRINTING to ZME_READ_PO_FOR_PRINTING and changed all the related statements in ZSAPFM06P to call this Z FM.

4. The same thing done to FM ME_PRINT_PO.

5. Created an output type ZSTO and assign print program ZSAPFM06P and form ZSTOMEDRUCK with medium type = 1

6. Created another output type ZSTE and assign the same print program and form with medium type = 5.

Test:

I assign ZSTO & ZSTE in the message screen of ME22N for the STO, then I go to ME9F and I am able to preview the STO under output ZSTO.

My biggest problem now is when I assign ZSTE to the same STO, it will be sent to my email address (external) as a blank attachment. It means that at the email header, I can see a paperclip symbol, indicating that there is an attachment, but when I open the email. I can't find any attachement.

Please help!! Many many thanks!