Skip to Content
author's profile photo Former Member
Former Member

Automatically generate an email per invoice containing a copy of the invoic

hi

i am working on a requirement, where i have to trigger EMAIL when saving an INVOICE via VF01/VF02.

My requirement is to convert the sap script to PDF and send that to finance processing centre via email. this should happen for new invoice creation and for changed invoice.

I have done the configuration in NACE for billing document type V3.

i would like to understand the following things

1) should there be any code to be written when saving INVOICE?

2) or does it workout if we configure in NACE AND VV31?

3) if in the ocnfiguration i mention as PDF output type will the form get converted into PDF type?or should there be coding be done to convert it?

4)where do i put the email id of the person whom this form has to go?

5) should i make a Zcopy of script and print program?

searched before posting the query but couldnt get more understanding as email has to trigger when saving INVOICE.i know sending email when selecting output options.

regards

Moorthy

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2012 at 11:12 AM

    If you have to send mail at the time of Creation or updation of invaoices , then you have to find appropriate Use exit to send mail.

    Just call you Sap Script in the exit then convert your sap script to PDF format .

    Finally using function module (CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1') you can send the mail to appropriate person . Also you can pass mail id in the function module under tables " Receivers " .

    Thanks....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2012 at 12:37 PM

    in nace, select V3-> then click output types -> select the output type -> double click on processing routine-> select external send and make the entries for the driver program and the script.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi

      the configuration mentioned by you works when i have to trigger INVOICE from output options.

      But here i have to trigger invoice when i creation/updation is done.let me know in the enhancement point for the program SAPMV60A how should i call the form.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2012 at 01:31 PM

    Hi

    Yes , in my opinion you can call SAP Script in User Exit through open_form & Close_form . My only concern is , if the script gives some error then this may or may not affect the saving of you Invoice thus created .

    Please make sure to handle this scenerio .

    Thanks ....

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.