Include PDF file in a SAPscript Form
Here is a good one. Anyone ever heard of this. I need to somehow import a PDF file into an ABAP program and include it in a sapscript form.
Requirment:
Customer sends a PDF file to our system. We need to take this PDF file and include into a "quote" sapscript form and fax it back to the customer.
If anyone has any other ideas of how I can accomplish this task........PLEASE let me know. Thanks.
Regards,
Rich Heilman
i solved a similiar problem by following:
- catch the sapsript-data in otf-format by setting
itcpo-tdgetotf = 'X' at CALL FUNCTION 'OPEN_FORM'
- read the pdf-file from it's source
(i.e. content server)in an internal table
- send the fax with function-module SO_DOCUMENT_SEND_API1.
at least in 4.6c you can add attachements to the fax.
the fax-body is the otf, the attachements are
the pdf-files.
i suppose that your fax-software is able to send the pdf-attachements.
here is some coding i copied from my program. i simplified it to show the main steps, so it won't run immediatly. the form assumes that the otf is filled in table ZT_OTFDATE, the pdf in ZT_PDFDATA and the PDF-filesize is in Z_PDFSIZE.
*& Form FAX
FORM fax CHANGING pe_subrc.
DATA
: ls_docdata TYPE sodocchgi1
, ls_sadrfd TYPE sadrfd
, l_len TYPE i
, lt_packlist TYPE TABLE OF sopcklsti1 WITH HEADER LINE
, lt_head TYPE TABLE OF solisti1 WITH HEADER LINE
, lt_text TYPE TABLE OF solisti1 WITH HEADER LINE
, lt_bin TYPE TABLE OF solisti1 WITH HEADER LINE
, lt_recv TYPE TABLE OF somlreci1 WITH HEADER LINE
, l_lines TYPE i
OTF-Body
CLEAR lt_packlist.
DESCRIBE TABLE zt_otfdata LINES l_lines.
lt_packlist-transf_bin = 'X'.
lt_packlist-head_start = 1.
lt_packlist-head_num = 1.
lt_packlist-doc_type = 'OTF'.
lt_packlist-obj_name = 'Letter'.
lt_packlist-obj_descr = 'Letter'.
lt_packlist-body_start = 1.
lt_packlist-body_num = l_lines.
lt_packlist-doc_size = lt_packlist-body_num * 255.
APPEND lt_packlist.
APPEND tnapr-fonam TO lt_head.
APPEND LINES OF zt_otfdata TO lt_bin.
Attachement
CLEAR lt_packlist.
lt_packlist-transf_bin = 'X'.
lt_packlist-doc_type = 'PDF'.
lt_packlist-obj_name = 'filename'.
lt_packlist-obj_descr = 'a filedescription'.
lt_packlist-head_start = 2.
lt_packlist-head_num = 1.
DESCRIBE TABLE lt_bin LINES l_lines.
lt_packlist-body_start = l_lines + 1.
DESCRIBE TABLE zt_PDFDATA LINES l_lines.
lt_packlist-body_num = l_lines.
lt_packlist-doc_size = Z_PDFSIZE.
APPEND lt_packlist.
APPEND 'filename' TO lt_head.
APPEND LINES OF zt_pdfdata TO lt_bin.
Receiver
ls_sadrfd-rec_state = itcpo-tdteleland.
ls_sadrfd-rec_fax = itcpo-tdtelenum.
lt_recv-receiver = ls_sadrfd.
lt_recv-rec_type = 'F'. " F=FAX U=Email
APPEND lt_recv.
DOCUMENT HEADER
CLEAR ls_docdata.
ls_docdata-obj_name = 'fax name'
ls_docdata-obj_descr = 'fax description'.
ls_docdata-obj_langu = sy-langu.
ls_docdata-obj_sort = sy-datum.
ls_docdata-obj_expdat = sy-datum + 7.
ls_docdata-sensitivty = 'O'.
ls_docdata-obj_prio = '1'.
ls_docdata-NO_CHANGE = ''.
ls_docdata-priority = ls_docdata-obj_prio.
ls_docdata-expiry_dat = ls_docdata-obj_expdat.
ls_docdata-PROC_TYPE = ''.
ls_docdata-PROC_NAME = ''.
ls_docdata-PROC_SYST = ''.
ls_docdata-PROC_CLINT = ''.
ls_docdata-SKIP_SCREN = ''.
ls_docdata-TO_DO_OUT = ''.
ls_docdata-FREE_DEL = ''.
ls_docdata-doc_size = l_len.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = ls_docdata
PUT_IN_OUTBOX = ' '
SENDER_ADDRESS = SY-UNAME
SENDER_ADDRESS_TYPE = 'B'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
SENDER_ID =
TABLES
packing_list = lt_packlist
object_header = lt_head
contents_bin = lt_bin
contents_txt = lt_text
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = lt_recv
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 <> 0.
pe_subrc = sy-subrc.
PERFORM protocol_update.
ENDIF.
ENDFORM.
Similar Messages
-
Get PDF file from a Portal Form or Report
Hello All and thanks for your help in advance.
I am developing a portal application with a requirement to retrieve from our Oracle iFS document repository PDF a PDF file based on entered forms criteria or as a result from a return from a QBE report.
Will someone please provide guidance on this. It would be most appreciated.Hi,
There are a few options:
You could have a button in the form with the following Javascript
in the Click event have app.openDoc("/c/temp/myDoc.pdf"); // check Acrobat Javascript reference for full options
I think that there is a security issue with this method and therefore the PDF would need to be certified and the script run in a privileged context.
OR
You could include the static form on the last page(s) of your dynamic form. Set the presence of these page(s) to hidden in the Object / Field tab. Then within your dynamic form pages have a button "Show Static Form" with the following Javascript:
in the mouseDown event have form1.pSTATIC.presence = "visible"; //This will make the static page visible
in the Click event have xfa.host.currentPage = pSTATIC.thisPage.rawValue - 1; //This will jump the user to the static page
Lastly you could have a print button on the static form page, which will only print that page. Place an invisible numericField (called thisPage) on the static page with the following Javascript:in the Layout: Ready event have this.rawValue = xfa.layout.page(this); //This flags the page number of the static form, which may vary because of the dynamic nature of the form
Then the print button would reference that page number, in the click event have:
xfa.host.print(1,(thisPage.rawValue -1).toString(), (thisPage.rawValue -1).toString(), 0, 1, 0, 0, 0); //Prints static page only
form1.pSTATIC.presence = "hidden"; //Automatically hides the static page after printing
xfa.host.currentPage = "0"; //Jumps the user back to page 1
I know the second option may appear more involved. But it does keep both the static and dynamic versions together in one PDF. Also if there are some fields that can be predetermined, then they can be filled in to the static form before printing (or they can be assigned to the corresponding fields in the dynamic form using the global binding).
Good luck,
Niall -
How to convert static pdf file to dynamic xml form pdf
Hi All,
I have generated one pdf report. I need to do build some logic in that generated pdf file. For this i need to convert this generated static pdf file to dynamic xml form pdf using Adobe LifeCycle Desinger. I opened my generated static pdf in Adobe LifeCycle Desinger and i tried to save this file in dynamic xml form pdf but it is not showing that option.
How do we convert those type of reports to dynamic xml pdf?
Advance Thanks
Prasad SagalaHi djaknow,
Thanks for your reply, i got it now.But i am facing another problem like, my generated static pdf file has some logos, charts and some art symbols. For those if i am opening in LC and set the target version as 8.1 & above then saved as dynamic xml form pdf, Now i opened that dynamic xml form pdf the content(Images,logs and Art symbols) was not show me. It is comming fine if pdf does not contain any images, logos...etc.
Can you tell me how i can i convert all the content( including images, logos ...etc) in my static pdf to dynamic xml form pdf.
Advance Thanks
Prasad Sagala -
What adobe product will allow me to edit a pdf file in its orignal form.
What adobe product will allow me to edit a pdf file in its orignal form. I want to scan in a document in its orignal form and edit the document. Is this possible? Please help where and how. Thanks
As George as suggested, the answer is sort of maybe, though you should not expect perfection. The OCR is not perfect (almost no OCR products are, unless you pay a lot of money possibly). You should always edit the original document and not try to do it from a scan if at all possible. The OCR is step to trying to recreate the original document, but there will always be manual steps involved.
-
Include .PDF file in JSP
Am I able to include .pdf file in a .jsp page? If it is yes, how to do it?
Not directly, no.
You use HTML to include it as a seperate html frame/iframe, but nothing specific to JSP will help here.
cheers,
evnafets -
How to generate PDF file through reports using forms 6i
Hi all,
I am using oracle 10g with forms 6i and reports 6i.I need to generate pdf file where clicking a button a report should be called and the report should be generated as a .pdf file in the source i have specified(ex. d:\...).Is this popssible with forms?.how can i achieve this.Kindly help me with suitable answers.Thanks :)
Regards
Vidshi,
regarding report, there is a dedicated report forum. you should post there.
but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
In the report you should set the properties like
destype to 'file'
desname to 'path with file name'
desformat to 'pdf' -
PDF interactivity : page control issue (pdf file considered as a form)
Hello there,
I've got a slight but quite annoying issue when exporting a PDF from my InDesign CS3 file. Let me explain.
The file is some sort of glossary with interactive content (such as a table of content, images with over effects and text with tooltips) and two buttons on the master page which allow the user to browse the document forward or backwards (basic next/previous page controls). Those two buttons work as expected, but their presence causes something strange when exporting the document.
What happens is that the exported PDF document is considered as a form when those buttons are present.
I'd like to keep those controls, but without having Acrobat Reader reminding me that I'm browsing through a form that I won't be able to save (bla bla bla). Which means that I just would like the file to behave as a standard document instead of a form document.
If any of you ever experienced that issue, I'd like to know how you solved it.
Thanks a lot.Thanks for the answer, but I found out the cause of the issue.
What happens is quite weird.
Using inDesign, once your file exceeds 100 buttons it exports itself as a PDF form instead of a standard PDF document. No straight solution seems to exist, but I found a way to bypass this problem.
Instead of creating my controls in the master page, I created them (only once) in the first page they appear in. Then, in Acrobat Pro, I just selected them and used the "duplicate" command.
There are two benefits when using this solution:
your PDF document won't turn into a form (which can be a real problem if you don't want to confuse the document users)
your PDF file will be lighter. Indeed, when creating a button in inDesign (even if you create it on the master page) the exported PDF document won't contain X occurences of the same button, but X different buttons (which can incread the size of your document dramaticaly when it reaches a large amount of pages).
It took me hours to find out a solution to this problem, I hope it will help someone else than me. -
ID CS3 : the 101 buttons bug - PDF file turning into a form
Hi there,
I'm just mentionning this issue with a clear title (I had mentioned it in another thread but with a wrong topic name, since I hadn't found out the bug).
When working in inDesign CS3, there's a slight but annoying issue with interactive PDF buttons. As soon as your file reaches 101 buttons, the PDF document exported is considered as a form instead of a standard document (no matter if the buttons are present on the master pages, on the same pages or through the document).
I've managed to find a workaround myself, and I found another one on these forums, but no real solution. Here they are:
Workaround #1 (http://http://forums.adobe.com/message/2177707#2177707) :
Instead of creating my controls in the master page (which caused the file to have more than 100 buttons), I created them (only once) in the first page they appeared in. Then, in Acrobat Pro, I just selected them and used the "duplicate" command.
There are two benefits when using this solution:
your PDF document won't turn into a form (which can be a real problem if you don't want to confuse the document users).
your PDF file will be lighter. Indeed, when creating a button in inDesign (even if you create it on the master page) the exported PDF document won't contain X occurences of the same button, but X different buttons (which can incread the size of your document dramaticaly when it reaches a large amount of pages).
Yet, if your document reaches 101 buttons on the solemn content, the bug will trigger anyway.
Workaround #2 (http://http://forums.adobe.com/message/1322652#1322652) :
After having exported your PDF file, lock it against editing (through the password protection system). Your document will still be considered as a form, but the annoying purple box won't pop any longer when you open the file.
This solution is quite simpler, but it still is a workaround to the issue, not a solution.
Well, I hope those workarounds will help someone, but if someone had a *real* solution to it, that would be great.Thanx! For me — prototyping — to block editing with password is enough (for now).
-
How to merge static pdf files and dynamic livecycle forms
Hello,
I was wondering if there was a way to merge static pdf pages with a dynamic livecycle form to create one file.
Thanks,
-vargsHi, Steve.
I have a similar situation. I would like to combine static PDF documents with some forms created using LiveCycle Designer. I read your previous post and I am aware that I can combine them using Acrobat Pro.
My question concerns accessibility.
If I combine a static PDF document and a dynamic form created with LiveCycle, would the resulting PDF still be accessible enough for JAWS to read it properly?
Any help appreciated.
Wayne -
Is it possible to include a pdf file in an mobile app?
If, how is it done?You can convert PDF to SWF and load the swf in mobile ,pagewise.
Also you can use FlexPaper component. -
Viewing PDF files in IPM Search form and Package Search
I recently released a PDF file into the Oracle IPM software, but can't view the document in either Search Form or Package Search. It shows a blank page, no document. Can someone point me to some documentation which might explain how to configure the IPM system to be able to view a stored PDF file rather than a Tiff file?
I wish I could say it helped, but it did not. I do not have Acrobat 6 or Acrobat 7. I have Adobe Reader 10.1.3.
I did a "find" for acrobat and found a preference that i moved to the trash it case it was a holdover for when I had acrobat, then I did a restart and the problem is still there. -
Where is the PDF file generated by the form submit?
I am designing a form with Adobe Acrobat Pro X that will be filled in on the web. So I've got a Submit button on it set to Submit a form, being sent to a URL (an html file), and I have checked (under Export Format) PDF The complete document.
So where is this exported PDF file once a user has submitted the filled-in form?
How can my html file find this PDF file?
I don't see where you define the location for these PDF files to go. I haven't been able to find a repository with these PDF files in them. And I can't find any info on the web.Thanks - yes, that's right.
I've been working on php code to get the data sent by the form, save it to a file and send an email with the file as an attachment.
If I set the form submit button in the AA form to send the data in fdf format, the php file only seems to get header info. If I send using pdf format, it gets pages and pages of code and symbols. Nothing I can parse.
Can't figure out how to save these pages and pages of code and symbols to a file and not very confident that if I did manage to and send them as an email attachment that they would ever reformat themselves to become a readable PDF.
All I want to do is send the filled-out form as a PDF attachment to an email. I don't care about the fields or the data - I just want the PDF.
And, no, I don't want to use the submit form to email feature because it is clunky. -
How To Open a PDF File in a Oracle Forms
hi
all
I have a Open a PDF file in a PDF viewer when i Press a Button and Check if File is Exit in given Location then open Or Message .
How This is Possible.
Helpthis code runs on the webutil configred machines
PROCEDURE Open_Doc
IS
-- Open a stored document --
LC$Cmd Varchar2(128) ;
LC$Nom Varchar2(100) ;
LC$Fic Varchar2(128);
LC$Path Varchar2(128);
LC$Sep Varchar2(1) ;
LN$But Pls_Integer ;
LB$Ok Boolean ;
-- Current Process ID --
ret WEBUTIL_HOST.PROCESS_ID ;
Begin
-- Local temporary file name --
LC$Sep := WEBUTIL_FILE.Get_File_Separator ; -- 10g
LC$Nom := Substr( :FILE_NAME, instr( :FILE_NAME, LC$Sep, -1 ) + 1, 100 ) ;
LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
LC$Fic := LC$Path || LC$Sep || LC$Nom ;
-- File extraction --
If Not Webutil_File_Transfer.DB_To_Client
LC$Fic,
'CLM_CASE_ATTACHMENTS', ---------table name
'DOCUMENT_PIC', ----------field name of the picture(blob)
'CASE_ATTACHMENT_ID = ' || To_Char( :CASE_ATTACHMENT_ID )-------where claues
) Then
Raise Form_trigger_Failure ;
End if ;
-- Open the local temporary file --
LC$Cmd := 'cmd /c start "" /WAIT "' || LC$Fic || '"' ;
Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
If LN$But <> 0 Then
LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
Raise Form_Trigger_Failure ;
End if ;
end; -
Can I synchronize all iBooks documents (including pdf files of my own) using iCloud?
It looks impossible to sync iBook files between devices using iCloud. It works for iBook files bought at iTunes, but not for pdf files of my own. It should work the same as for emails, note's, foto's and other stuff that is synchronized using iCloud. Any suggestions besides using other cloud storage?
Saw another thread..... Will try Dropbox....
-
Minimising PDF file size when exported form KN on iPad
Hi guys
when exporting KN presentations as PDF's from my iPad is there any way to reduce file size?
I'm working in KN 2.5.1
on an iPad air
With iOS 8.1.1
thanks and appreciate any experience or insight
thanks
martinThere are no quality settings in exporting to PDF on the iPad, these settings are available on the Mac version.
Maybe you are looking for
-
How can i change my i cloud where as i forget and couldnt get my old password
i forget my i cloud password and tried alot to get it from my mail but failed. plz help me
-
I know I can run the Beta and Nightly together on the same computer because they are installed in different directories. What I do then is that I have a Profile for each version. What I do is I run FireFox.exe -ProfileManager when I start either the
-
Channels not monitorable in the Communication Channel Monitor / RWB
Hi, Back on XI after a long break ☺ I am facing an issue with our in-house JCA adapter used in XI scenarios. When trying to monitor the channels using our adapter from the Communication Channel Monitor in RWB, I have the following: Status: NA
-
Greetings, I just upgraded to DW 8. One reason was my hope that it would be easier to create Jump Menus that don't set off the little 'warning bar' at the top of IE6. Many of our users get confused by this warning, and refuse to proceed further. So,
-
Symbol when attempting to send pictures
I am attempting to email a picture (jpg) that was taken on my BB Pearl to my husbands BB Curve and in the mail box after it is sent instead of the check mark it has a symbol similar to a sound symbol with a dot in the center. Also he never did recei