Smartforms to PDF and PDF to adobe interactive forms
Dear all,
Is there any way to convert Smartforms to PDF document and import it programatically to Adobe interactive forms(SFP) and make it interactive.
Regards
Aravind
Hi:
Smartform to PDF
ATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
Work Area declarations
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
Variables declarations
v_form_name TYPE rs38l_fnam,
v_len_in LIKE sood-objlen,
v_len_out LIKE sood-objlen,
v_len_outn TYPE i.
Step 1:
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZZZ_TEST2'
importing
fm_name = v_form_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
Step 2:
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Step 3:
i_otf] = w_return-otfdata[.
Step 4:
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
For Smartform to Adobe is possible
as [Adobe|http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm]
Regards
Shashi
Similar Messages
-
Error message while clicking PDF Preview of a ADOBE interactive form
Hi -
I am creating an ADOBE interactive form having Tables, few text fields and E-mail submit button. The scripting language used is FormCalc.
Whenever I am clicking on PDF Preview to see the form layout and to check other functionality, I am getting an error message:
Error message -
Error: syntax error near token '|' on line 1, column 14.
Script failed (language is formcalc; context is xfa[0].form[0].data[0].Mainpage[0].Subform3[0].Table2[0].Row1[0].RATING[0])
script=this.isnull || (this.rawvalue >= -32768 && this.rawvalue <= 32767
I checked my scripts and there is no syntax error in that. My form is also working absolutely fine except getting this error message pop up whenever I try previewing my form.
Can you please tell me, what can be the possible reason.I tried everything, but couldn't figure out the reason for error. I wrote the script again, but the error is still coming.
Here is a part of my script. I have written this script on Email submit button in preSubmit event, to check if the RATING field value is less than or equal to 3. depending upon this condition, I am making the COMMENT field as mandatory. The same script is repeated for all the RATING & COMMENT fields.
if (data.GyanMainBodyPage.Subform2.Table1.Row1.RATING1 <= 3)
then
data.GyanMainBodyPage.Subform2.Table1.Row1.COMMENT1.mandatory = "error"
data.GyanMainBodyPage.Subform2.Table1.Row1.COMMENT1.mandatoryMessage = "Please fill corresponding comment"
else
data.GyanMainBodyPage.Subform2.Table1.Row1.COMMENT1.mandatory = "disabled"
endif -
Trigger workflow from ABAP webdynpro and attach an Adobe interactive form
I have a need to create an ABAP Webdynpro that will upload a completed Adobe interactive form and then route the form to multiple approvers thru workflow. I am having trouble finding any documentation or examples of passing the Adobe form in the workflow. Do I have to save the content of every field on the form to an internal table and then have every workitem call an ABAP webdynpro to render the form? Any help or suggestions would be greatly appreciated.
Hi Joyce,
This can be done as follows :
[pdf as an attachment|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29&overridelayout=true]
Regards,
Geet -
GP and WD with Adobe Interactive form question - need some guidance.
Hello experts,
FYI, I'm running ECC 5.0 Support Stack 9, EP 7.0 SPS 11, NWDS 2.0.9_15 with Adobe Livecyle Designer.
I am slightly stuck with what I'm trying to do. I have created a web dynpro application that has an Adobe interactive form. I'm trying to use guided procedures to initiate a process so that this interactive form can be filled out and submitted to an approver. I need the relevant parties to receive a notification email. I have setup email templates and services, I just need to know how it will fit into the process. Once approved in the process, a BAPI should be invoked to populate some fields in the form. Should I be creating the Web Dynpro application to invoke the bapi or should a guided procedure callable object invoke the bapi? I know how to do these things, but I dont know which method I should use, in order to correctly have this process flow from point A - point B. Should the process appear in the Universal Worklist? If not, why not? Will it only appear in the GP runtime? I have pretty much read thru most of the tutorials but still cannot get this GP stuff to work as a WHOLE process.
Any guidance, suggestions, possible solutions will be greatly appreciated.
Thanks
Kunal.Hi,
It seems you have not activated the Composite Form object. Only after activation you will be able to use it to create a Callable Object of type composite form.
Hope this helps,
Ashutosh -
Reagarding saving and sending the adobe interactive form as non interactive
Hi ,
I am trying to send the interactive adobe form as non-interactive form through email.The interactive form size is very large because of the interactivity.
Can anybody suggest how to do this.
Regards,
DebasisDear Antony,
Thanks for the reply.
I got you but can you pls guide me how to go about it.
I need to send the email while submiting the form.So when and how i will be mapping each data node /attibutes of the main form with the intermediate form.My interactive form is of 30 pages and it may grow upto 40 pages.My response is with the to the main form where i am showing the success message.
Regards,
Debasis Nayak -
Generate Adobe Interactive Form in background and setpdfSource value.
Hi,
Is there any way to create Adobe Interactive Form in the background assigning R/3 data (without displaying) and assign pdfSource binary information in context attribute and later, display Adobe Interactive Form using pdfSource context attribute in a new window?
if Adobe Interactive Form is in Visible state, I'm also able to display Adobe Interactive Form in a new window using pdfSource binary context attribute, .
But, unable to create Adobe Interactive form in the background when Adobe Interactive Form Visibility is NONE and unable to assign binary data to pdfSource attribute in context and hence unable to display Adobe Interactive Form in a new window. Kindly help me if this process is possible.
Thank you in advance.
Regards
PrasadHi Prasad,
This is certainly possible. First populate the dataSource context node with the data (e.g. coming from R/3). Then use <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/adobe/api/WDInteractiveFormHelper.html">WDInteractiveFormHelper.getContextDataAsStream</a> to obtain the data.xml as a byte[] by calling toByteArray() on the ByteArrayOutputStream. The next step is to obtain the xdp template as a byte[] (I don't know exactly how to do this, but it's certainly possible using some API, just as you would read other resources deployed within your Web Dynpro). When you have both the template and the data, you can use the <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/adobe/pdfdocument/api/package-summary.html">PDFDocument</a> API to render a PDF, something as <i>WDPDFDocumentFactory.getDocumentHandler().getDocumentContext().getDocumentCreationContext()</i>; set the data and the template and other options like interactive, call execute and retrieve the pdf byte[] from the returned object. Eventually you can assign the pdf byte[] to the pdfSource context attribute. In case you use NW04, you must use the <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/pdfobject/api/package-summary.html">PDFObject</a> instead.
Besides, why would you want to create the PDF before displaying it?
Kind regards,
Sigiswald -
How to start learning Adobe Interactive Form?
Hi,
I want to learn Adobe Interactive Forms. Does any one has some related materials that can be shared?
Thanks a lot.
Rewards will be provided.
Best Regards,
Chris GuHi Gu Chris ,
The following links contain all the detailed information (PDF & PPT docs) on Adobe Interactive Form with examples which wil make u'r learning easier:
https://www.sdn.sap.com/irj/sdn/adobe
Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
Interactive Forms Based on Adobe Software: Overview
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
Adobe Interactive Forms
http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
Taking interactive forms to next level
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
Creating Interactive forms in webdynpro for java
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
PDF-Based Print Forms/SAP Interactive Forms by Adobe
http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
Date Objects in Adobe Designer
http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
Checking and Testing a PDF-Based Print Form
http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
Architecture
http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf -
Adobe Interactive forms (HCM P&F) browser support
Hi,
im using hcm process and forms framework for adobe interactive forms.
i would like to the browsers supported.
IE is supported.
how about Firefox.google chrome,safari,opera...
Regards.
NachyHi Nachy,
Google Chrome does support HCM P and F for Adobe Interactive Forms. I am not sure about the other browsers.
Hope that helps.
Regards,
Arun.
Edited by: Learner900 on Sep 23, 2010 6:13 PM -
Smartform to Adobe interactive form and triggering from print program
Hi,
My requirement to migrate puchase order smartformto Adobe interactive form.
I have migrated my purchase order smartform to Adobe interactive form,
activated form and interface.
Question: How do i trigger or my adobe interactive form purchase order in R/3.
I want to trigger the form from me22n -> print preview..
I have configured in NACE (Output type customization) with same samrtform print program with adobe form and Type as PDF. But the adobe form is not triggering at all.. Can any know how do i trigger adobe form from ME22n.
Is there any special print program for this please let me know..
thxHi,
Change the form entry in NACE , use entry_neu_adobe and that will work.
Best Regards -
How to store adobe Interactive form PDF in archive link?
Hi everybody,
I had create a WebDybpro Abap that contain an Adobe Interactive Form, now I must store this Interactive Form into Archive Link like a PDF document.
I succeeded to save the PDF document on the archive link but after this operation, when I open this document saved, it doesn't show me the data but only the Interactive Form structure. The only data that file PDF saves are those I passed to Interactive Form during at the event initialization, but it lose all others datas that I inserted on the Interactive Form before to save.
There is one mode to save also these datas or I can store only data that I load at the initialization event?
I hope in your fast help.
Regards.
Davide.
To follow the code that I use for Archive my Interactive form like PDF document.
Salvataggio nell'ArchLink ********************************************
Ricavo il PDF Source
DATA: elem_context TYPE REF TO if_wd_context_element,
stru_context TYPE wd_this->element_context ,
item_pdf_source LIKE stru_context-pdf_source.
get element via lead selection
elem_context = wd_context->get_element( ).
get single attribute
elem_context->get_attribute(
EXPORTING
name = `PDF_SOURCE`
IMPORTING
value = item_pdf_source ).
DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_zcentral_person( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
ENDIF.
DATA: l_ref_interfacecontroller TYPE REF TO
ziwci__wdr_ess_central_person.
l_ref_interfacecontroller = wd_this->wd_cpifc_zcentral_person( ).
l_ref_interfacecontroller->store_adobe_document(
ar_object = 'ZHRDETRAZ' " Toaom-ar_Object
doc_type = 'PDF' " Toadv-doc_Type
object_id = objid " Sapb-sapobjid
pdf_source = item_pdf_source " Xstring
sap_object = 'PREL' " Toaom-sap_Object ).
METHOD store_adobe_document. ***********************************************
Converto la XSTRING del PDF in tabella binaria
DATA: l_tab TYPE TABLE OF tbl1024,
lenght TYPE i.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = pdf_source
IMPORTING
output_length = lenght
TABLES
binary_tab = l_tab.
Calcolo la dimensione del documento
DATA: doc_id TYPE saeardoid,
size TYPE i,
lineno TYPE i,
length TYPE i.
DESCRIBE TABLE l_tab LINES lineno.
size = lineno * 1024.
DATA toaom_fkt TYPE TABLE OF toaom.
CALL FUNCTION 'ARCHIV_METAINFO_GET'
EXPORTING
ar_object = ar_object
sap_object = sap_object
TABLES
toaom_fkt = toaom_fkt.
CALL FUNCTION 'SCMS_AO_TABLE_CREATE'
EXPORTING
arc_id = 'ZP'
doc_type = doc_type
length = size
IMPORTING
doc_id = doc_id
TABLES
data = l_tab.
Create link to business object
CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
EXPORTING
archiv_id = 'ZP'
arc_doc_id = doc_id
ar_object = ar_object
mandant = sy-mandt
object_id = object_id
sap_object = sap_object
doc_type = doc_type
EXCEPTIONS
error_connectiontable = 1
OTHERS = 2.
ENDMETHOD. ********************************************************************Hi Davide,
I have a requirement where I just need to SAP HCM Archive Adobe form in External repository.
Since you are using the archiveLink functionality.
Can you please help me how you did?? What configurations need to be maintained for this?
I am new to this. I did some Rnd on it and found that it can be achieved using HRFORM_HRF02 Business Add-In in the SET_ARCHIVE_INDEX method.
But I have no clue how to do it?
Can you please help me? -
Heavy performance issues using Adobe Interactive Form PDFs generated by SAP BPM
Dear experts,
we use Adobe Interactive Form PDFs (generated with LiveCycle Designer) as Human Tasks within SAP BPM processes. The PDFs are generated and transmitted correctly, but when they are opened at the receivers PC, Windows freezes for 2-3 minutes, then the PDF opens and can be filled out and sent back. The next PDFs can be opened much faster, but when the PC is restarted, we get the same problem again. We use Adobe Reader XI (11.0.2) on our clients; is their any know performance issue?
Please note, that we have this problem with EVERY Adobe Interactive Form PDF... I created a simple PDF containing just a field and the client PC still freezes. So it can't be in the form or the scripting. Normal static PDFs can be opend without any problems.
Best regards,
DavidThey haven't really announced it, because there is no product to announce. Rather the opposite.
There are no conversion tools, so far as I know.
XFA forms are a non-starter if you want portability.
AcroForms are a nightmare in themselves, because the functionality is limited in Adobe Reader and varies between absent and weird in other products. No idea about Blackberry support.
You will not find a simple recommendation. Rather, you need to use Acroforms and carefully test everything (EVERYTHING: no assumptions) on every platform you intend to support.
Yes, rather unsatisfactory, but until Adobe realise that the future is platform equivalence or irrelevance, this is where we are. -
Is it possible top render an Adobe Interactive form as HTML instead of PDF?
Currently a form developed as an Adobe interactive form is presented to the user as a PDF document (this is somewhat obvious!!!!)
If, for whatever reason, we are unable to use Adobe reader on the front end PC is there a way to configure ADS to render the form as HTML and not PDF??? (In our case its because of a bug that requires the installation of Adobe 8 and this will take require extensive testing and roll out...)
I think this might be possible if I read http://store1.adobe.com/devnet/livecycle/articles/forms_coldfusion.html " Form authors can develop a single form design that the Form Server Module can render in PDF or HTML format in a variety of browser environments."
Any insight would be greatly appreciated,
Armando.Hi Philip and other ADOBE expert:
You sound like you know alot about ADOBE.
Please tell me is there a restriction on size of PDF file?
I am reprinting invoices(RSNAST00) and then download these invoices to 1 big PDF file. When tried to open this PDF file with Adobe reader- I get <b>error "damaged file and not able to repair".</b> . My program works fine for
reprint 1 invoice and download to 1 pdf. But <b>client wants multiple invoices into
1 BIG PDF file. HELP!! thanks for your reply in advance.</b>
cheers
SilviaB -
Using Adobe Interactive Form - Attach The Static PDF.
Dear Experts,
Is it possible to attach the static pdf along with dynamic pdf, which is been created at run time in using NW 7.0 adobe interactive form(Interactive Form UI Element)., If yes then kindly let me know how can be done ..
Any help will greatly appreciated.
Thanks
ABSolved my self, converted PDF into image and used that pdf as a static image in Adobe Interactive Form.
-
PDF: Adobe Interactive forms pops up SAVE AS dialouge box after modification
Hi,
We have developed Adobe Interactive form uisng Adobe LiveCycle Designer. After creating pdf, whenever I change data in the interacvie form, it is poping up "Save As" dialouge box everytime user saves data. So User is replacing the same file again and again. Is there any setting to get rid of this error?
OS: Windows 7
Adobe Reader: 10.0.1
Regards,
SelvaHi,
you cannot suppress the save function but you can avoid that the PDF viewer recognizes changes.
Put this script in the layout:Ready event of your form.
event.target.dirty = "false"; -
Adobe Interactive Forms without Web Dynpro and ACF???
Hi All, we would like to build an interactive forms solution based on the Adobe software integrated into WAS. However, the customer requires a true thin client application with no additional installation on the client. Integrating Adobe Interactive Forms into Web DynPro however requires the Active Component Framework (ACF) to be installed since these forms are integrated into the page within an ActiveX container.
So the question is whether there is a way to use Adobe Interactive forms including the Adobe Documents Service within WAS but without(!) using Web Dynpro?(the full blown Adobe LifCycle Forms solution is not an option). Any suggestions on this are highly appreciated!
Tanks!
FrodoHello everyone,
I would like to add a couple of points from the SAP Product Management perspective.
Adobe has a number of stand-alone products that are the foundation for what SAP can now offer thanks to our partnership. This is exactly why we decided on a partnership that provides us with established technology, which is now integrated.
It is true that Web Dynpro is the main SAP way of integrating the interactive functions of the solution. We made this decision consciously, because the development and run-time environments provide very useful features that reduce the need for manual coding, such as the possibility of passing the data back to the backend using the Web Dynpro context. The automatism we offer here needs to be implemented from scratch with any other solution, including the Adobe stand-alone one.
While it is true that the ACF constitutes a certain limitation for the reasons you mention, Adobe will remedy this in 2005. The Reader/Web Dynpro integration will be available later this year for multiple platforms (OS, browsers) and will not require ACF anymore.
If you do not want to use a full-blown Web Dynpro application for your concrete scenario, consider developing an application that provides nothing but the interactive PDF form to the end user, to be filled in using the stand-alone Reader. The submit of the form data (with or without the PDF itself) could then happen via HTTP or e-mail.
Kind regards,
Markus Meisl
SAP NetWeaver Product Management
Maybe you are looking for
-
Error while approving file programmatically
Hi All, I am getting the following error while approving the file(.aspx) programatically which is in the pages library of a subsite in a sitecollection. The file pages/abc.aspx has been modified by SHAREPOINT\\system on etc., Please help me regarding
-
Purchase Order Message Determination - RVCOMFZZ
I'm using RVCOMFZZ to fill a specific client field added to structure KOMB and KOMKBEA. I need to acess the ekpo info of the purchase order about to be created. My COM_EKPO table is empty. Is this a bug or it's not possible to acess PO item data when
-
I just noticed that when I am done syncing, the Hotsync Log does not have any information about the most recent operation. In fact the date of the last entry in the Log is August! Anyone know why this is happening and how to fix this? Thanks. Post
-
Can't open PhotoshopCS4Extended all of a sudden
Suddenly it won't open when I click on any button or link; and I can't find the exe. file in my program files. So here's my question: I have the install disc I bought a couple of years ago. If I take the scary step of uninstalling CS4 from my comp
-
Dear Experts,, Any experts invovled in Analaysis Process and Design,, Will any expert share the requirement what u have did, and what is the purpose of APD in BI. Warm Regards Radha