cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

0 Kudos

Hello together,

thanks for your answers at the moment, but I have an additional question:

Must I have to different printprograms, I mean one for medium1 and one for medium 5 ( including RVADOPFO ? ).

Shoul I read the NAST-USNAM then in the second printprogram ?

My problem is, we have an older z_program without RVADOPFO.

How should I realize in detail ? Can you give me a little step-by-step information ?

Thanks for your answers.

Best Regards

Claus

Edited by: Claus on Nov 12, 2009 2:14 PM

Former Member
0 Kudos

Hi

No need of two different print program. One print program is suffucient for both print and e-mail.

Only two settings are required in condition record.

0 Kudos

Thanks for your answer.

Which two settings are required in detail ?

But I need for sure the RVADOPFO in my program, is that correct ?

I can not need my old z_program, right ?

Do you have more detailed information for me ?

Thanks.

Regards

Claus

Former Member
0 Kudos

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

Answers (2)

Answers (2)

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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