Rename PDF file attachment
Is it possible to submit a form via email as a whole PDF but rename the PDF attachment in the process? I am using Acrobat X. I would like to set the PDF file name attachment to the value of a form field.
Yes, I have access but the local machine of every user is a mobile device (specifically an iPad). So I don't think that's possible. So this cannot be done via JavaScript when a button is pressed before the submit operation takes place? The iPad app does allow the execution of JavaScript in the PDF.
--- NEW CODE GOES HERE TO RENAME THE PDF ---
this.submitForm({
cURL:strMailTo,
aFields: aSubmitFields,
cSubmitAs: "PDF"
Similar Messages
-
Can't open a pdf file attachement to e-mail
I canot open an e-mail pdf file attachment..I get a message
You have chosen to open Invoice---pdf
which is: Firefox HTML Document (479kB)
What should Thunderbird do with this file?
Open with Firefox (default)
I do all of the above but nothing happens and I keep getting the same message over andf over again??
Please advise what I should do
ThanksdThanks. I disabled Protected Mode, and I was able to open the pdf attachment. Just to make sure, I enabled it and then disabled it again, and when I tried to open the attachment, it did as before – Adobe Reader (Not Responding) and Internal Error message. Tried it several more times, (enable and then disable Protected Mode) and each time, Adobe Reader wouldn’t launch (Not Responding, Internal Error).
Morris Davidson -
I have iPad 4th Generation with iOS 6.1.3 Since my iBooks was updated to version 3.1.1 I cannot open pdf file attachment in my email. When I tap of the attachment, the iBooks icon no longer show itself. Can someone please help?
Thanks for all (Ocean20 & Courcoul) who replied.
Reset the device did not help me but it does triggers me to attempt to resend the PDF file attachment on email--and it works the 2nd time. My problem is now solved.
The Adobe Reader is very helpful--it allows me to scroll through the document easily, unlike iBooks, where I cannot scroll straight up or down. -
I have an email with an attachment that requires a password the open. I can open the file but embedded in the attachment is another attachment. When I double click attachment I get the following error message. Acrobat cannot open the file attachment because your PDF file attachment settings do not allow this file type to be opened.
You would need to make a change to your registry; see http://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/attachments.html
Basically you would need to add the .pdf with the permission 2.
Let us know if you need help with that. Either way, make sure to create a System Restore Point before editing the registry. -
How to ZIP, PDF file attachment
Hi,
I have an ABAP report requirement to send an email to a user. This program will send an email with PDF attachement. However, the PDF attachment is quite big (9MB) and our email server couldn't handle it (5MB only). Is there any way to ZIP this PDF file attachment?
I am using a SAP release ECC 6.0with OS WinNT. And the ABAP program should be able to run in Foreground/Background.
Thanks for your help in advance...Hi,
Try this code:
data ca_attach_zip(22) TYPE c VALUE 'Attch.',
OPEN DATASET va_filename_zip FOR INPUT IN BINARY MODE.
DO.
READ DATASET va_filename_zip INTO objbin.
IF sy-subrc NE 0. EXIT. ENDIF.
APPEND objbin.
ENDDO.
APPEND objbin.
DESCRIBE TABLE objbin LINES tab_lines.
CLOSE DATASET va_filename_zip.
DELETE DATASET va_filename.
DELETE DATASET va_filename_zip.
DESCRIBE TABLE objbin LINES tab_lines.
objhead = ca_attach_zip.
APPEND objhead.
***Creation of the entry for the compressed attachment
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = ca_zip.
objpack-obj_name = ca_attach_zip.
objpack-obj_descr = ca_attach_zip.
objpack-doc_size = tab_lines * ca_255.
APPEND objpack.
*** Completing the recipient list
reclist-receiver = va_mail_address.
reclist-express = 'X'.
reclist-rec_type = 'U'.
APPEND reclist.
*** Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = ca_x
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
You have to load your file in the contents_bin table of FM.
You can load the file by OPEN DATASET and the READ DATASET command.
In the object_header you can put some description.
For your info:
1. Zip the data and send as an email attachment
2. How to Zip the data in an internal table
3. Re: How to ZIP a PDF file email attachment
May it helps you.
Regards.
Deepak Sharma. -
Error in opening of Pdf file attachment
hi,
i am sending pdf file as an attachment to mail recipient, after receiving that pdf attachment when the user tries to open that attachment he is getting the following error message.
*"Adobe reader could not open file because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email and wasn't correctly decoded"*
Please give me any suggestions to over come this error.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:13 PMHi
can you compare your code with attached code , and do required changes if any thing needed
FORM sub_generate_tr_report .
* Internal table declarations
DATA lit_mseg TYPE STANDARD TABLE OF mseg INITIAL SIZE 0.
DATA lit_temp TYPE STANDARD TABLE OF gty_gr_creat INITIAL SIZE 0.
DATA lit_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.
DATA lit_tline TYPE TABLE OF tline WITH HEADER LINE.
DATA lit_objtxt TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0.
DATA lit_objpack TYPE STANDARD TABLE OF sopcklsti1 INITIAL SIZE 0.
DATA lit_objbin TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0.
DATA lit_receiver TYPE STANDARD TABLE OF somlreci1 INITIAL SIZE 0.
* Workarea declarations
DATA lwa_ctrlop TYPE ssfctrlop .
DATA lwa_compop TYPE ssfcompop .
DATA lwa_return TYPE ssfcrescl .
DATA lwa_tline TYPE tline .
DATA lwa_objtxt TYPE solisti1 .
DATA lwa_objpack TYPE sopcklsti1.
DATA lwa_doc_data TYPE sodocchgi1.
DATA lwa_objbin TYPE solisti1 .
DATA lwa_receiver TYPE somlreci1 .
DATA lwa_temp TYPE gty_gr_creat.
* Variable declarations
DATA lv_form_name TYPE tdsfname VALUE 'ZZ_PTS446_MASTER_TR_REPORT'.
DATA lv_dlist TYPE so_obj_nam VALUE 'ZPTS446'.
DATA lv_func_mod TYPE rs38l_fnam .
DATA lv_len_in LIKE sood-objlen.
DATA lv_time TYPE syuzeit .
DATA lv_time2 TYPE char8 .
DATA lv_date2 TYPE char10 .
DATA lv_info TYPE so_text255 .
DATA lv_lines TYPE i .
DATA lv_buffer TYPE string .
* Constants declarations
CONSTANTS lc_x TYPE char1 VALUE 'X' .
CONSTANTS lc_c TYPE so_escape VALUE 'C' .
CONSTANTS lc_locl TYPE rspopname VALUE 'LOCL' .
CONSTANTS lc_printer TYPE tddevice VALUE 'PRINTER'.
CONSTANTS lc_raw TYPE so_obj_tp VALUE 'RAW' .
CONSTANTS lc_pdf TYPE so_obj_tp VALUE 'PDF' .
CONSTANTS lc_colon TYPE char1 VALUE ':' .
CONSTANTS lc_slash TYPE char1 VALUE '/' .
CONSTANTS lc_int TYPE char3 VALUE 'INT' .
* Moving record from GIT_GR_CREAT to GIT_TEMP internal table
lit_temp[] = git_gr_creat[].
* Delete record from internal table GIT_TEMP, where STAT is not initial
* DELETE lit_temp WHERE NOT stat IS INITIAL.
DELETE lit_temp WHERE stat EQ 'X'.
DELETE lit_temp WHERE stat EQ 'Q'.
* CLEAR lwa_temp.
* LOOP AT lit_temp INTO lwa_temp.
* IF lwa_temp-stat EQ 'X'
* OR lwa_temp-stat EQ 'Q'.
* DELETE lit_temp FROM lwa_temp.
* ENDIF.
* ENDLOOP.
IF NOT lit_temp[] IS INITIAL.
*-- Select data from MSEG table
SELECT matnr "Material Number
erfmg "Quantity in unit of entry
tbnum "Transfer Requirement Number
INTO CORRESPONDING FIELDS OF TABLE lit_mseg
FROM mseg "Document Segment: Material
FOR ALL ENTRIES IN lit_temp
WHERE mblnr = lit_temp-mblnr
AND mjahr = lit_temp-gjahr.
*-- If select successful
IF sy-subrc EQ 0.
*---- Get name of the function module for smartform 'ZZ_PTS446_MASTER_TR_REPORT'
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lv_form_name
IMPORTING
fm_name = lv_func_mod
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
*---- Check function module name is not initial.
IF NOT lv_func_mod IS INITIAL.
*------ Select default printer based on User settings
SELECT SINGLE spld
FROM usr01
INTO usr01-spld
WHERE bname = sy-uname.
IF sy-subrc IS INITIAL.
lwa_compop-tddest = usr01-spld. "Device type
ELSE.
lwa_compop-tddest = lc_locl. "Device type
ENDIF.
lwa_compop-tdnoprev = lc_x. "No print preview
lwa_compop-tdnoprint = lc_x. "No printing from print preview
lwa_compop-tdiexit = lc_x.
*------ Setting control parameters
lwa_ctrlop-getotf = lc_x.
lwa_ctrlop-no_dialog = lc_x.
lwa_ctrlop-device = lc_printer.
*------ Call smartform function module
CALL FUNCTION lv_func_mod
EXPORTING
control_parameters = lwa_ctrlop
output_options = lwa_compop
IMPORTING
job_output_info = lwa_return
TABLES
it_mseg = lit_mseg
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
*------ If smartform function module successful
IF sy-subrc EQ 0.
*-------- Transfer OTF data to internal table LIT_OTF
lit_otf[] = lwa_return-otfdata[].
*-------- Convert to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = lv_len_in
TABLES
otf = lit_otf
lines = lit_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
*-------- If above function module is successful
IF sy-subrc EQ 0.
*---------- Mail body
CLEAR lwa_objtxt.
CONCATENATE 'TR Report of RF Inbound Deliveries'(001)
'is attached.'(002)
INTO lwa_objtxt SEPARATED BY space.
APPEND lwa_objtxt TO lit_objtxt.
*---------- Append Date and Time into Body of email.
CLEAR lwa_objtxt.
MOVE 'File is generated on'(003) TO lv_info.
lv_time = sy-uzeit.
CONCATENATE lv_time+0(2)
lv_time+2(2)
lv_time+4(2)
INTO
lv_time2 SEPARATED BY lc_colon.
CONCATENATE sy-datum+4(2)
sy-datum+6(2)
sy-datum+0(4)
INTO lv_date2 SEPARATED BY lc_slash.
CONCATENATE lv_info
lv_date2
'At'(004)
lv_time2
INTO lv_info
SEPARATED BY space.
lwa_objtxt = lv_info.
APPEND lwa_objtxt TO lit_objtxt.
*---------- Document size
CLEAR: lv_lines, lwa_objtxt.
DESCRIBE TABLE lit_objtxt LINES lv_lines.
READ TABLE lit_objtxt INTO lwa_objtxt INDEX lv_lines.
*---------- Populate packing list for body text
CLEAR lwa_objpack.
lwa_objpack-head_start = 1.
lwa_objpack-head_num = 0.
lwa_objpack-body_start = 1.
lwa_objpack-body_num = lv_lines.
lwa_objpack-doc_type = lc_raw.
APPEND lwa_objpack TO lit_objpack.
CLEAR lwa_objpack.
*---------- Mail subject line
CLEAR lwa_doc_data.
lwa_doc_data-obj_name = 'TR REPORT'(005).
lwa_doc_data-obj_descr = 'TR Report of RF Inbound Deliveries'(001).
lwa_doc_data-doc_size = ( lv_lines - 1 ) * 255 + STRLEN( lwa_objtxt ).
*---------- Populating internal table LIT_OBJBIN
LOOP AT lit_tline INTO lwa_tline.
TRANSLATE lwa_tline USING ' ~'.
CONCATENATE lv_buffer lwa_tline INTO lv_buffer.
ENDLOOP.
TRANSLATE lv_buffer USING '~ '.
DO.
APPEND lv_buffer TO lit_objbin.
SHIFT lv_buffer LEFT BY 255 PLACES.
IF lv_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
*---------- Get total no.of lines of Object table(attachment)
CLEAR lv_lines.
DESCRIBE TABLE lit_objbin LINES lv_lines.
*---------- Packing list for attachment
lwa_objpack-transf_bin = lc_x .
lwa_objpack-head_start = 1 .
lwa_objpack-head_num = 1 .
lwa_objpack-body_start = 1 .
lwa_objpack-body_num = lv_lines.
lwa_objpack-doc_type = lc_pdf .
lwa_objpack-obj_name = 'TR REPORT'(005).
lwa_objpack-obj_descr = 'TR_REPORT'(006).
lwa_objpack-doc_size = lv_lines * 255.
APPEND lwa_objpack TO lit_objpack.
CLEAR lwa_objpack.
*---------- Giving the receiver email-id
CLEAR lwa_receiver.
lwa_receiver-receiver = lv_dlist.
lwa_receiver-rec_type = lc_c.
APPEND lwa_receiver TO lit_receiver.
*---------- Calling the function module to sending email
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lwa_doc_data
put_in_outbox = lc_x
commit_work = lc_x
TABLES
packing_list = lit_objpack
contents_bin = lit_objbin
contents_txt = lit_objtxt
receivers = lit_receiver
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc EQ 0.
*------------ Wait upto 2 secounds
WAIT UP TO 2 SECONDS.
*------------ Call the RSCONN01 (SAPconnect: Start Send Process)
SUBMIT rsconn01 WITH mode = lc_int
* WITH output = 'X'
AND RETURN.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
REFRESH: lit_mseg , lit_temp , lit_otf , lit_tline ,
lit_objtxt , lit_objpack, lit_objbin , lit_receiver.
CLEAR: lwa_ctrlop , lwa_compop , lwa_return , lwa_tline ,
lwa_objtxt , lwa_objpack, lwa_doc_data, lwa_objbin ,
lwa_receiver.
CLEAR: lv_func_mod , lv_len_in , lv_time , lv_time2 ,
lv_date2 , lv_info , lv_lines , lv_buffer .
Code Formatted by: Alvaro Tejada Galindo on Feb 15, 2008 3:13 PM -
Help renaming pdf files based on internal content
I work for a company that has thousands of E-tickets coming in daily, weekly, monthly, etc..
These tickets come in bafhakfbaifh.pdf and we have to manually rename them or print them all out and then sort through them and put them in order.
What I would like to do is:
1. Split any pdf's that have more than one page or "ticket" in my case. I know how to do this with automator easily, but I'd love to keep it all in one program.
2. Search the file for Event Name (i.e. Madonna)
3. Search the file for Date of event (August 12, 2012)
4. Search the file for Section, Row, Seat (124 3 12)
5. Rename the file based on content found (Madonna August 12 2012 124 3 12.pdf)
6. Move from original download folder to organized folders based on artist/team.
7. Automatically print in alphabetical or some sort of designated order.
Any help is muchly appreciated. So far, I found a PC program called A-PDF rename, but it is not automated enough to be practical. Hazel is awesome at OCRing the pdf and moving from folder to folder, but does not do enough.
Any help is muchly appreciated.
Thank you.You're looking for a PDF Parser or PDF miner tool (PDFminer) as a starting framework, and you'll almost certainly be writing custom code around that as parsing a text file that's effectively free-form and originating from multiple different sources almost always (always?) involves writing customized processing code and an on-going series of tweaks as the suppliers of the PDF change their ticket formats. (Even apparently-simple details such as the time and date formats, for instance, can vary by geography and language and by supplier, and can derail common processing.)
In some cases that I can envision, it'd be entirely possible that the data you're after is actually located in an embedded image and not in text that can be parsed.
The best approach is to get folks to send you JSON or XML or some other format intended for interchange, and avoid the whole mess that is parsing or mining a printer-oriented format.
The other obvious option is to use something like Amazon's Mechanical Turk or some other explicitly outsourced help. Depending on how often the formats change and how many of these PDF files you're dealing with and how varied the formats are, sometimes throwing staff at the problem can be the most cost-effective approach. -
How to email a pdf file (attachment with password) using ABAP?
Hi Colleagues,
I
n abap, how do you email a pdf file that contains password?
(pdf with password, not the whole email).
A custom program is created. Inside this program, it
retrieves the spool number and converts it to a pdf file
(using function module '....abapspool...'). No parameter to put password.
I was able to do the above. The problem is how to put password on
the pdf file.
Once the user receives the email (say from hotmail or outlook) with pdf attachment, clicks on the pdf, it will as ask for an attachment.
sap version 4.7.
Questions:
- how to code in ABAP to include the pdf with password in an email
received from hotmail or outlook?
- any function modules or classes that can do the pdf password?
- do we need to install another technology or add-on application or
???? to do it? If yes, do we code in abap?
- any other ideas?
Thanks in advance.
RaymundHi Colleagues,
I
n abap, how do you email a pdf file that contains password?
(pdf with password, not the whole email).
A custom program is created. Inside this program, it
retrieves the spool number and converts it to a pdf file
(using function module '....abapspool...'). No parameter to put password.
I was able to do the above. The problem is how to put password on
the pdf file.
Once the user receives the email (say from hotmail or outlook) with pdf attachment, clicks on the pdf, it will as ask for an attachment.
sap version 4.7.
Questions:
- how to code in ABAP to include the pdf with password in an email
received from hotmail or outlook?
- any function modules or classes that can do the pdf password?
- do we need to install another technology or add-on application or
???? to do it? If yes, do we code in abap?
- any other ideas?
Thanks in advance.
Raymund -
Sending mail with PDF file attachment ?
Hi All,
I have scenario File ---> Mail, monitoring FTP directory for PDF file and sending using mail attachment.
At the moment i am using JAVA mapping to construct the mail package structure follow all the step in this blog : XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
it is working if i am using text file but then how to encode the pdf content so i can send throught the mail adapter. ?
Thank you and Best Regards
FernandHi,
Actually, i am using this java code below :
try {
// create XML structure of mail package
String output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ "<ns:Mail xmlns:ns=\"http://sap.com/xi/XI/Mail/30\">"
+ "<Subject>" + mailSubject + "</Subject>"
+ "<From>" + mailSender + "</From>"
+ "<To>" + mailReceiver + "</To>"
+ "<Content_Type>multipart/mixed; boundary=\"" + boundary + "\"</Content_Type>"
+ "<Content>";
out.write(output.getBytes());
// create the declaration of the MIME parts
//First part
output = "--" + boundary + CRLF
+ "Content-Type: text/plain; charset=UTF-8" + CRLF
//+ "Content-Transfer-Encoding: 8bit" + CRLF
+ "Content-Disposition: inline" + CRLF + CRLF
+ mailContent + CRLF
//Second part
+ "--" + boundary + CRLF
+ "Content-Type: Application/pdf; name=" + attachmentName + CRLF
//+ "Content-Transfer-Encoding: base64" + CRLF
+ "Content-Disposition: attachment; filename=" + attachmentName + CRLF + CRLF;
out.write(output.getBytes());
//Source is taken as attachment
copySource(in, out);
out.write("</Content></ns:Mail>".getBytes());
} catch (IOException e) {
throw new StreamTransformationException(e.getMessage());
protected static void copySource(InputStream in, OutputStream out)
throws IOException {
byte[] bbuf = new byte[in.available()];
int bblen = in.read(bbuf);
if (!(bblen < 0)) {
//String sbuf = new String(bbuf);
//String encoded = Base64.encode(sbuf);
// replace all control characters with escape sequences
//sbuf = sbuf.replaceAll("&", "&");
//sbuf = sbuf.replaceAll("\"", """);
//sbuf = sbuf.replaceAll("'", "'");
//sbuf = sbuf.replaceAll("<", "<");
//sbuf = sbuf.replaceAll(">", ">");
out.write(bbuf);
This code working fine with text file but not for pdf file. because i got error in mail adapter :
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.util.XMLScanException: java.lang.NullPointerException; nested exception caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 8f(:main:, row:11, col:4)(:main:, row=11, col=4) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 8f(:main:, row:11, col:4)
I guest the problem because the mail adapter doen't accept pdf content insite the mail package.
please advise me
Best Regards
Fernand -
Require PDF File attachment in Mail
Hi Experts,
I am doing the Proxy-XI-Mail scenario. I am sending the Mail related data like Content, Content_Type from R/3 to XI and configured the Mail receiver adapter.
R/3 coding:-
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_TYPE = 'application/pdf;name="filename.pdf"'
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT = G_CONTENT
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-FROM = From_Mail.
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-TO = To_Mail.
and then calling the client proxy
ID Mail Receiver configu:-
Selected Use Mail Package option
Content encoding base64
Keep attachment option is also selected.
I am geeting the Filename.pdf in mail as attachment.
Problem is:- I am not able to open the attached PDF File and error is:- 'Adobe Reader could not open filename,pdf because it is either not a supported file type ot because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded'
I think some conversions may be required to convert the XML Payload data into PDF file format for the Mail receiver adapter.
Please suggest
Thanks & Regards
JageshHi Jagesh,
The content type of the Pdf has to be identified, in order to conver the pdf successfully, You need to perform the conversion usign the PayloadSwapBean the Module tab. You use this when you want to receive attachment using Mail adapter. You need to configure few steps in Module Configuration
There you need to mention your MIME header paramenters Content-Type, Content-Description.
How this can be configured and how process with PayloadSwapBean check the below link
http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
Module Processor
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/content.htm
Regading MessageTransformBean, Migrating Dispatcher Classes
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
Regards,
Prasanna -
I am trying to create a cover letter type of PDF file which I can attach with several other PDF files. The recipient will open, fill in fields and return. I seem to have this created but when I manually attach as a single file and send the recipient cannot fill out text fields. If I use the wizard to distribute it does not allow me to attach other files. Not all attached files are in PDF form. Thanks in advance.
Hi Lanka,
Thank you. I checked application V1, it says "MAIL" is for internal output. I want to send the form as attachment to external email id's. How do I do this. Is the following code correct ? Where should I add email id's.
Thanks
Veni.
FORM PRINT_FORM.
ITCPO-TDIMMED = 'X'.
ITCPO-TDDELETE = 'X'.
ITCPO-TDPROGRAM = SY-REPID.
ITCPO-TDDEST = '5_A1'.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'Z_SHIPPERS'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DEVICE = 'MAIL' "Veni
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
OTHERS = 6.
LOOP AT ITAB_ZMAT.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_DATA'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
OTHERS = 7.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
EXCEPTIONS
UNOPENED = 1
OTHERS = 2.
IF SY-SUBRC EQ 0.
MESSAGE I355 WITH FTAB-VBELN.
ENDIF.
ENDFORM. " PRINT_FORM -
PDF file attachment format change
Hi Guru's,
I'm facing a problem in pdf format when i convert the smartform into pdf format and then i'm attaching this to workitem when we see this pdf file in SAP inbox the date like . and , format are chaning but when we execute the smartform output is coming correct
Format problem like value in smartform qty is 10.00 but in pdf file qty shows 10,00 similarly in smartform 1,000 but in pdf file shows 1.000.
This type of mismatch is occuring to be please help me if you have any solution for this.
Advance thanksHi
Go to SU3
Parameter tab- write down SD_SWU_ACTIVE
Parameter value - X
Save
now run Sales document type . you eill find attachment icon at very lefyt corner of Application bar.
thanks
and reward this answer -
Can you rename pdf files in ibooks?
I download many PDF files onto my iPad to read using iBooks. But the PDF files are stored on the iPad with non-meaningful names (like QL-BHZfG9dl). Is there any way to rename these things so that I know (without opening them) what the files are??
wozwoz wrote:
If Apple want to have
You can tell them your views on that via
http://www.apple.com/feedback -
Automatically renaming pdf files based on excel data
I am creating pdf certificates using variable data from excel files with InDesign. This creates a multipage pdf file with a different persons name on each page. Then end result needs to be individual pdf files named for each person. I can extract the single pages out of the main pdf ending up with however many files all named the same thing besides a number at the end of the common file name. Question: Is there a automated process of renaming the individual files using the data from the excel file?
You're looking for a PDF Parser or PDF miner tool (PDFminer) as a starting framework, and you'll almost certainly be writing custom code around that as parsing a text file that's effectively free-form and originating from multiple different sources almost always (always?) involves writing customized processing code and an on-going series of tweaks as the suppliers of the PDF change their ticket formats. (Even apparently-simple details such as the time and date formats, for instance, can vary by geography and language and by supplier, and can derail common processing.)
In some cases that I can envision, it'd be entirely possible that the data you're after is actually located in an embedded image and not in text that can be parsed.
The best approach is to get folks to send you JSON or XML or some other format intended for interchange, and avoid the whole mess that is parsing or mining a printer-oriented format.
The other obvious option is to use something like Amazon's Mechanical Turk or some other explicitly outsourced help. Depending on how often the formats change and how many of these PDF files you're dealing with and how varied the formats are, sometimes throwing staff at the problem can be the most cost-effective approach. -
How can I rename my downloaded PDF file?
Click on Documents on the left. Click Edit (upper right).
Select the PDF file to rename (red check appears). Click the rename button on top.
Maybe you are looking for
-
Caller display won't work since i've swooped to BT
I have a PANASONIC cordless trio phone set, caller display worked fine untill we swooped to BT Broardband and Phone package. I have checked the phone line without the filter still no display can anyone help. Solved! Go to Solution.
-
Error loading application peoplesearch
I need to simulate an org chart. while searching the forum found a post that says, load 'people search 2.1' application for a sample. But I am unable to load this application, it fails with <error> Error ERR-7621 Could not determine workspace for app
-
Hi There, I want to know under what circumstances I can use or not use MsgBox in a Visual Studio 2008 SqlServer Project? E.g. I cannot use MsgBox in an deployed assembly, that causes something like: attempt to use resources forbidden by the CLR host.
-
Syncs songs already on iPod??
every time i try and sync my ipod, it puts songs that are already on my iPod on there again so i end up having random doubles of random songs... its really annoying. how can i fix this?
-
Hi, I recently bought a dv7-6135dx and I have been trying to record with Audacity. While recording everything is fine, but when I play it back it sounds very distorted. Audacity says that I have three options for recording devices. Microsoft Sound Ma