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

Send an invoice in the moment it saved....

Hi,

I don't know if it's possible but it's a requirement: In the transaction VF01 (create an invoice) in the moment when it's being saved the user want to send and email with the invoice attached. I develop a program to do that but in the tr VF03, in the moment they select output invoice they choose by email and sent it. But now they want that in the moment the create the invoice, it send by email automatically. Is it possible??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2005 at 10:53 AM

    Hi Laura,

    Inside function group XVVF you will find several customer user exits for the AC process.

    The invoice is stored via functions in the include: MV60AF0B_BELEG_SICHERN and this include calls to the function module RV_ACCOUNTING_DOCUMENT_CREATE. Inside this FM you will find several customer exits (search for CALL CUSTOMER-FUNCTION). When double-clicking on the quoted number behind this call you go to a customer exit function module (of function group XVVF). Inside is a Z-INCLUDE. Create that include by double clicking and you can put your payload into that include.

    Also inside are several user-exits that you could use.

    Hope this helps you on your way.

    Regards,

    Rob.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 04, 2005 at 11:18 AM

    Hi Laura,

    I would give message output a try:

    - it's possible to execute them immediately

    - it's possible to assign medium 'simple mail'

    But: simple mail might not be enough to fit customer requirements.

    You got already some experience in fetching output of smartforms and sending an e-mail with pdf attachment - just define your own output program and add these steps in 'processing' form-routine.

    Advantage: you will have possibility to send mail twice, you have feedback in invoice, how often output was created... in user-exits no such overview will be available.

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2005 at 09:38 PM

    You can do this using standard output processing. You need to have a understing of how to configure output types. If you know how to do this, then you know that there is a communication strategy tied to an output type and that there are communication types tied to communication strategies. You need to use a communication type that your system uses for sending emails. If you don't know how to configure output types, then you need to get someone to help you with that. It's too much to explain it here. You also need to be using one of the standard processing programs for the output(or a copy of it). That program will understand how to utilize the communication strategy. If you have created your own program, then you will need to look at one of the standard programs and understand how to handle the emailing. When you create the condition records for the output type, you specify which partner to use to determine where the email will go. For example, we use the bill to partner. The email will then go to the email address stored in the customer master for the bill to on the invoice. Through configuration of the output type, you can make the emails happen automatically when the invoice is created.

    Hope this points you in the right direction.

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 06, 2005 at 07:58 AM

    Hi Laura,

    If you have SAP Work Flow activate and implimented, then you can achive funcionalilty very easily.

    Create a work flow Standards Task whihc will be triggered when Invoice is created.Then in work flow task you can have node to send an email with invoice attached..

    Sushil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2005 at 08:46 PM

    I will go with Brians answer to this post!

    Need to maintain "Output determination using condition technique" in SPRO.

    additional requirements need to be setup for e-mailing invoices for certian conditions using transaction VOFM for requirements -> output.

    Lastly, condition records need to be maintained for the output type to be selected.

    I know that this is a little heavy on the configuration side, but the functional guys at your place will be able to help you out, this is the cleaner approach as it eliminates maintenance from updrades.

    hope that helps!

    Rishi

    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.