cancel
Showing results for 
Search instead for 
Did you mean: 

Sending PDF output attachment in e-mail to external users from BSP

Former Member
0 Kudos

Hi All,

Please gothrough the below requirement details :

Requirement Details:

Need to achieve the functionality of sending a PDF attachment of invoice to an external

e-mail address from the BSP Application.

Implementation Details:

The Print out Output determination is already done in the system. We are using SAP R/3 4.7 (620)

In the Transaction VF03 in the initial screen there is a menubar "Billing document" and underneath that menu there is a menu item called "Issue". If we click the "Issue" menu item all the output that are already proposed will be visible and we can select the printout Output determination and can issue a printout.

I had created a FM to call from BSP and that function module will take the Invoice number as input and will call the "VF03" transaction using BDC and will trigger the Sapscript Printout . I see the the sapscript in the spool after I call the Function module .

But I don't know how I can get the Spool request number for that Function module call from BSP page ????

I got struck in this approach...

If I know the Spool number after calling the function module the it's very easy to call the following FM's for sending a e-mail with the Invoice PDF attachment.

CONVERT_OTFSPOOLJOB_2_PDF

QCE1_CONVERT

SO_NEW_DOCUMENT_ATT_SEND_API1

Please let me know if anyone can help me in this ...

Please reply ASAP.

Thanks,

Greetson

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

Check out these weblogs.

/people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp

/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface

Regards

Raja