Skip to Content
avatar image
Former Member

Print normal invoice and send invoice as pdf to creator of invoice

Hello to all,

this is my first post in this big, special and great community.

Many thanks to all people in background for realizing and customizing !

I have a request to print the normal invoice and to send the invoice as pdf copy to the creator of the invoice at the same time.

Using include RVADOPFO and medium 5 would be the correct solution, if I could use the email field in customer master data entering the mail adress of the creator.

But it is not possible, the field is used otherwise.

Can anybody help me to solve the problem ?

Thanks in advance and regards

Claus

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 03, 2009 at 10:51 AM

    Hi Claus,

    I would like to add to solution given above.

    For second output, In the print program you can read the user who has created the output, this is available in NAST-USNAM. then you can read his email id in PA0105 (assuming you are maintaining this in SAP).

    You can maintain condition record for output with billing type with timing 4.

    Thus whenever you save the invoice, the creator will receive the mail with PDF.

    Hope this is helpful, let me know if you need anything.

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      One Print Program is sufficient to generate the Print invoice and send the Invoices as PDF to customer.

      In the NACE transaction code , In the OUTPUT TYPE define a output with the Transaction medium as 1 & 5

      In the CONDITION RECORDS in VV33 also maintain the MEDIUM as 1 and 5

      Alternatively you can you one program to generate the PDF and save to your LOCAL file and send to customer

      The PROGRAM to generate the PDF is RSTXPDFT4

      Please check them and let us know your feedback

      regards,

      santosh

  • avatar image
    Former Member
    Nov 03, 2009 at 10:15 AM

    Hi Claus

    You could do this by having 2 output types defined in T Code NACE one for print output (Medium 1) & Dispatch Time --> Send with application transaction (Option 3)

    and the other for Medium 5 (External Send) & Dispatch Time --> Send with application transaction (Option 3)

    When you issue the print output from the first output type, it will go to the printer, where as the second one will be created as a spool request. Now you need to schedule a job to send this as mail attachment (PDF).

    ...

    regards

    Sundar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 17, 2009 at 08:35 AM

    Hello to all,

    thanks again for your answers.

    But I assume, there is a missunderstanding.

    I will not send a PDF to the customer. The request is to send a PDF to the creator of the invoice.

    Unfortunately I have no possibiltiy to use HR-datas of the user.

    So in the first step I have to set the user email address hardcoded in the printprogram.

    That is the request.

    Thanks for further answers and

    Kind regards

    Claus

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      No need to hard code the e-mail id.

      Current user e-mail id can be maintained at SU01 tcode and the same can be retrieved by some FM. Take help of ABAPer to retrieve the email info.

      try and revert