on 04-01-2014 1:10 PM
Hello!
We got a requirement from one customer. We should send our invoices as PDF-Attachment via E-Mail but the attachment must have a variable filename. At the Moment we can send invoice as PDF-Attachment but only with a fix filename.
How can we change the filename in our Adobe Forms?
Best Regards
Markus
Hi Markus,
how are you saving PDF file, is it saved in Application server from where it is attached to Outlook automatically ?
If so, it should be controlled programmatically in your driver program
As a workaround, can you save the pdf in your PC with different file name and try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Florian!
We are printing an invoice with SAPSCRIPT on a Output device which is using Devicetype PDF1.
With this "Printer" we can send the invoice as PDF-Attachement to the Mailaddres which is stored in the Customer data.
The Attachement Name ist still the same. For one Customer whe should create a Attachement Name which contains the invoice number and the creation date of the invoice.
Best Regards
Markus
Hi Markus,
three additional questions.
What does the name look like right now?
You are sending your mails via SAP, the printer is just for preparing the data.. means that you have a NAST-Entry with NACHA = 5 and the driverprogram itself sends the mail?
You are able or even have someone available which is trained in ABAP and can implement some coding?
~Florian
Hi Markus,
first of all, thank you for the detailed information you shared, this is really nice to see. Unfortunately your problem is far away from SAP. It seems that you are not using the SAP-System to send your mails.
That means, you need to talk to your basis guys and ask how they handle your output. The responsible person should be able to help you, because it also must pass different mail-addresses.
I'm sorry to say that, but it is not a issue you can solve with ABAP.
~Florian
Hi Florian!
I'm also the Basis guy.
We sent the mail from SAP to our Exchange-Server. We have configured that in Transaction SCOT as a SMTP-Connection (with Mail-Host and Mail-Port).
I think that the Name of the Attachement is created by SAP and Exchange is only the System which deliveres the mails. I can see this Attachementname in Transaction SOST.
Markus
Ah ok,
so you may have a chance to have a look into the driver program. Set a breakpoint at this spot:
Sapscript -- Fucntionstone OPEN_FORM
Smartforms -- SSF_FUNCTION_MODULE_NAME
Adobe -- FP_JOB_OPEN
and have a look at the passed parameters. Perhaps we are lucky and you find your string "Druckdaten" here.
An other scenario could be, that the OTF data is passed by an own stone, so maybe you find some Y-Source behind the formoutput, which handle the pdf itself to send it per mail.
Have a look at spots sound like convert_otf or even send pdf as mail.
If you find something like that, you are able to chance the name, but it is hard to analyze such a problem without having the source on my screen.
~Florian
Hi Markus,
easiest solution would be to get the otf-stream after the formoutput and convert it to pdf. Afterwards send it via class cl_bcs.
That would be my way to do it.
Anyway, it just depends how the system works right now and what you see while debugging. You know, there are a lot of different scenarios how it could be implemented and it all depends on how it look like right now
~Florian
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.