cancel
Showing results for 
Search instead for 
Did you mean: 

Printing terms & conditi & sending the script o/p to PO creator as e-mail

Former Member
0 Kudos

Hi,

In our requirement we have already an output type 'NEU' for printing the PO output. We are using standard print program

SAPFM06P and form name is ZOUM_F001_PO

In addition to this we have created two more output types say 'ZNE1' & 'ZNE2'.

When user triggers output type 'ZNE1' the output should be similar as with output type 'NEU' with addition of terms and condition.

When user triggers output type 'ZNE2' the SAP output generated above should be sent as e-mail.

For output type 'ZNE1' :

Please provide me some inputs regarding should i need to embed any code in SAPFM06P with the help of any enhancement or should i create a new page in the form ZOUM_F001_PO which was used for the output type 'NEU'.

For output type 'ZNE2':

For sending SAP script output as e-mail do i need to do changes in standard print program SAPFM06P .

Please help me out.

Regards,

Bhanu.R

Accepted Solutions (0)

Answers (1)

Answers (1)

andrs_sarcevic
Contributor
0 Kudos

Hi Bhanuphani,

To send a Sapscript as e-mail, you need to convert the spool request to PDF and send the e-mail with the PDF attached.

Please, check out for the first step FM CONVERT_ABAPSPOOLJOB_2_PDF and CONVERT_OTFSPOOLJOB_2_PDF.

To send the e-mail, check FM SO_NEW_DOCUMENT_ATT_SEND_API1 and Class CL_BCS.

There are plenty of examples in SDN.

Cheers,

Andrés.