cancel
Showing results for 
Search instead for 
Did you mean: 

Output of SapScript to E-mail?

Former Member
0 Kudos

Hi,

I have a requirement when the driver program (custom program) for sapscript is executed ,the output of sapscript has to be sent as a email attachment to desired people(s) Email accounts .

How can I do it?.. could you provide any points for thisu2026.

Thanks in advance .

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on May 8, 2009 10:22 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Get the output data in the OTF format in close_form under table OTFDATA

CALL FUNCTION 'CLOSE_FORM'

  • IMPORTING

  • RESULT =

  • RDI_RESULT =

TABLES

OTFDATA =

Call below mentioned function module to convert otf format of smart form to pdf format

CALL FUNCTION 'CONVERT_OTF'.

Convert PDF from 132 to 255.

For sending mail

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'.

Answers (0)