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
Prasad
Hi 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
Similar Messages
-
Adobe Interactive Forms via Mail and PI.
Hi All,
We are currently implementing an adobe interactive forms scenario (offline) at our customer.
The initial scenario was the folllowing
1. PDF is generated on the CRM system and downloaded towards the clients PC
2. PDF is adjusted by enduser
3. When all info is added, enduser presses the submit button in the pdf, this triggers the sending of an email, with an attachment containing the filled in data in xml format.
4. PI reads the mail, takes the XML and processes the data.
The scenario was quiet easy to enable.
Now the customer wants the PDF to be mailed instead of or toghetger with the xml representing the data. Reason for this is that they want to pdf to be stored inside the initial transaction (service order) in SAP (archiving reasons).
The PI system is just acting as a mail client. When the mail is read, the pdf needs to be converted into an xml, representing the data. I would like to use the adobe document service to convert the pdf.
So the system that generates the pdf (=CRM) and the system that needs to convert it (PI) is different.
Can the adobe document service by addressed from within a standard java or abap class.
Any idea whether this can be done and how?
Easier solution would be, attaching the pdf and the xml in the mail message. Is this possible?
Kind regards
JorisHi,
Adobe Interactive form can be generated and sent it via email by using a normal Java class. But that Java class should run in a server which should contain Adobe DocumentService.This java class can be archived as a par file and deployed on Portal server or can be written as a Webservice and can be triggered by clicking on a URL.
Hope this blog helps.
/people/ramesh.kotagiri/blog/2009/01/19/dynamic-generation-of-offline-adobe-interactive-forms-for-sap-46c-and-ep-70-without-user-intervention-part-150-iii -
Adobe Interactive forms with Graph and Japanese text
Hi Experts,
I want to use graph/bar/pie chart with Adobe Interactive forms and along with that the UI element's(Button,lable,table header,column) text has to be in Japanese language.
Is it possible using Adobe interactive form ?
Thanks in advance.I don´t understand. Where do you want the Japanese texts? In the ordinary fields? Then you have to use (of course install first) some Japanese fonts for the fields. If you would like to have the texts in the picture, then there is no problem with the form since the texts are coming as a part of the picture into the form and you don´t need any fonts. Of course you need to install/ configure the japanese fonts in the backend to be able to draw it into the picture.
Otto -
Error in generating adobe interactive form created from WSDL file
Hi,
I have created a form in SFP from a WSDL file.Copy paste the below program and when i run the program it gives me error message
"_Adobe reader could not open ..Because it is either not supported file type or has been damaged (...)"_. I am not sure whether i am doing right.If this is not the right one, then how can i generate a interactive PDF from WSDL.
DATA: ie_outputparams TYPE sfpoutputparams.
DATA: i_name TYPE fpname,
i_funcname TYPE funcname.
DATA: fp_docparams TYPE sfpdocparams.
DATA: fp_formoutput TYPE fpformoutput.
DATA: data_tab TYPE solix_tab.
ie_outputparams-getpdf = 'X'.
ie_outputparams-nodialog = 'X'. " suppress printer dialog popup
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ie_outputparams.
TRY.
i_name = 'ZSPADOBE01'. "your form name
i_name = 'Z....'. "your form name
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = i_name
IMPORTING
e_funcname = i_funcname.
CATCH cx_fp_api_repository.
CATCH cx_fp_api_usage.
CATCH cx_fp_api_internal.
ENDTRY.
fp_docparams-langu = 'E'.
fp_docparams-country = 'US'.
fp_docparams-fillable = 'X'.
CALL FUNCTION i_funcname
EXPORTING
/1bcdwb/docparams = fp_docparams
IMPORTING
/1bcdwb/formoutput = fp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
DATA: filename TYPE string,
path TYPE string,
fullpath TYPE string,
default_extension TYPE string VALUE 'PDF'.
cl_gui_frontend_services=>file_save_dialog(
EXPORTING
default_extension = default_extension
CHANGING
filename = filename
path = path
fullpath = fullpath ).
CHECK fullpath IS NOT INITIAL.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = fp_formoutput-pdf
TABLES
binary_tab = data_tab.
cl_gui_frontend_services=>gui_download(
EXPORTING
filename = filename
filetype = 'BIN'
CHANGING
data_tab = data_tab ).
cl_gui_frontend_services=>execute(
EXPORTING
document = filename ).Hi Sanu,
Hope this link help you.
[CALLING WEB SERVICES IN INTERACTIVE ADOBE FORMS|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20280d13-7b93-2e10-51a0-ba05fd26355a]
Regards,
Shaira -
Generate Adobe Interactive Form with XML Schema-Based Interface
Hi,
I need to generate a adobe Interactive but with XML Schema-Based Interface, i have one example but with ABAP Dictionary-Based Interface.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
* EXCEPTIONS
* CANCEL = 1
* USAGE_ERROR = 2
* SYSTEM_ERROR = 3
* INTERNAL_ERROR = 4
* OTHERS = 5
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZMMDM_CL'
IMPORTING
e_funcname = fm_name.
But when i call the next function for print i need the docxml parameter and i don't know how to get it
fm_name
CALL FUNCTION fm_name
EXPORTING
/1BCDWB/DOCPARAMS = fp_docparams
* /1bcdwb/docxml =
* IMPORTING
* /1BCDWB/FORMOUTPUT =
* EXCEPTIONS
* USAGE_ERROR = 1
* SYSTEM_ERROR = 2
* INTERNAL_ERROR = 3
* OTHERS = 41) this questions was asked many times before, you didn´t search for a second
2) I am not aware of any standard solution
3) custom solution: use XSLT transformation ID to get XML from the filled DDIC structure and use string operations to add the header and footer to create a valid XML.
Regards Otto -
ADOBE Interactive Form in webdynpro not allowing to enter value
Hi,
I have developed a Adobe interactive form in SFP and then i developed webdynpro component , then integrated into webdynpro. while running the webdynpro application which is showing the adobeform but the input fields are not allowed to enter value.
The same adobe form can be allowed to enter values while running from the report. i dunno how to set the value of the importing parameter fillable = 'X' in webdynpro.
regards,
RoopsHi friends,
The above mentioned setting are all active like Zc...Layout, enabled check box etc.. but when i make it to Activex which is not displaying form in the portal while running the application instead it shows red color X mark.. is there any setting required to run adobe with webdynpro ..
1.) any notes or patches ???
2.) is activex mandatory for running interactive form in webdunpro? if yes what are system setting required....
Regards,
Roops. -
How to download adobe interactive form layout
Hi Experts,
can any one suggest me how to download the adobe interactive form PDF layout including output values. when we download the form values are not displaying.
Thanks in advance.
Edited by: krishnaveni.Nomula on Sep 28, 2011 4:44 PMHi,
We are generating the form then adding values & want to save that form.
Thank you. -
How to create Adobe Interactive Form in MDM
Iam new to MDM Technology, I want to create Adobe Interactive Form and show a sample demo.
Sample demo which should show adobe interactive form in mdm and how to integrate adobe interactive form in mdm and how to update th data in MDM
I have knowledge of creation of adobe form but how to integrate with mdm technology.Hi,
There are couple of ways to integrate MDM with SAP Interactive Forms.
1. WebDynpro Java and MDM API (requires Portal)
2. MDM WebService (Portal not required)
Updating data in MDM using WebDynpro Java :
1. In Component Controller -> Fetch data from MDM using API and populate appropriate context structure
2. Map the View Controller and Comp Controller context.
3. Place Interactive Form UI element in view.(Keep the UI element in UpdatePDF mode, this can be done in properties window. Also increase the height and width property value)
4. The Interactive Form UI element is editable in Adobe Form Designer (7.1 / 8.0)
5. Design the form and bind the UI (TextFields/ Dropdowns) with the Context of View Controller.(Done in Binding tab of Object window)
6. Deploy and run the application.
The rendered application will contain an Adobe Interactive Form populated with MDM data.
Regards,
Suresh -
Unable to test Adobe interactive form from webdynpro
This is the out put i get when i test run the report 'FP_TEST_IA_01'.As suggested in SAP NOTE : 999998
ADS: com.adobe.ProcessingException: Could not retrieve a password for credential: ReaderRights(200.101).
Actually i was trying my first Adobe interactive form with webdynpro and when i tested it i got this message.
The following error text was processed in the system NED : WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server
Does Adobe interactive form requires Java stack to be active??
Or is it only a configuration issue in ADS???
What all should i take care in order to successfully run an adobe interactive form???
Regards,
Venkar RaghavanDear Abhishake,
Thanks for your reply.
I had gone through the link you had mentioned detailly.what i understand that is ZCI needs to be installed thats comming with Support pack SAP NetWeaver SPS 10 .
Will this also take care of ADS configuration.Where can i find a guide to ADS configuration and ZCI installation.
When i ran a report check FP_CHK_REPORT below is the output i got.can you please throw more light on this.
ISR Prepare ISR templates for ZCI migration ISR-001 Prepare ISR templates for ZCI migration
ZCI SAPForms API to Zero-client template migration ZCI-002 Update enumerated DDL XFO bindItems node reference
ZCI SAPForms API to Zero-client template migration ZCI-003 Copy enumerated DDL XFO form:ready non-Adobe scripts to the layout::ready ev
ZCI SAPForms API to Zero-client template migration ZCI-004 Add an XFO name to each of the embedded P1 Enumerated DDL XFO event handlers
ZCI SAPForms API to Zero-client template migration ZCI-001 SAPForm API to Zero-Client template migrator
Regards,
Venkat -
Error in FormCalc Script of Adobe Interactive Forms
Hi,
We created certain <b>Custom I.S.R. Scenarios</b> and attached them to Workflows. So in these regards, we had already created the needed forms in Adobe Interactive Forms Transaction(SFP) and launched the Scenario successfully in Enterprise Portal.
But we have a couple of requirements like during <b>Create</b> mode of the form, I should be able to modify certain contents of the form, and during the <b>Change</b> mode of the form, I should be able to modify certain other fields of the form. So I had opted for <i>FormCalc</i> Scripting in these regards.
I used the following code...
if($record.CONTROL_PARAM.ISR_MODE == "CHANGE")
then
this.access = "readOnly"
else
this.access = ""
endif
Well, I used the same script in two of my forms. For one form, it's working very perfect. But for other form, it's giving the following error..
Error : accessor '$record.CONTROL_PARAM.ISR_MODE' is unknown.
I am very much mazed, why the same code behaves in 2 ways in two different forms.
So can anyone help me in these regards?
Regards,
Raja SekharHi,
I solved the problem by applying alternate solution.
I used Java Script instead of FormCalc Script.
That cleared my errors.
Regards,
<b><i>Raja Sekhar</i></b> -
Saving an Adobe Interactive Form without dialog in background
Hi'
I hope someone here can help us.
Our client uses an R/3 system, version 4.6C, where data for the Interactive form is generated.
We use an RFC call to send the data to a NetWeaver system.
The RFC generates our Adobe Interactive form in the NetWeaver system.
We need to save the generated PDF file onto a harddrive in this background processing ( in the RFC ) immidiately after the file has been generated.
Any ideas as to how we save the file?
Regards,
Karin.Here's one way I could think of doing it. Not sure if it's the most efficient. There may be some function modules out there....
You write a small program to print an Adobe form from the RFC.
Before you call Job open (CALL FUNCTION 'FP_JOB_OPEN'
), set the following parameters of
sfpoutputparams.
Set the outputparamaters to suppress the dialog
utputparams-nodialog = 'X'.
Set to print to a dummy printer
outputparams-dest = 'LP01'.
Set a spool request
outputparams-REQNEW = 'X'.
Then you can call a program like rstxpdft4 to download the PDF file.
Regards,
Lavaughn -
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. -
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
AravindHi:
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 -
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 -
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
-
Windows 7 Ultimate 64-bit memory use issue on 890FXA-GD70 board
...Having read the stickies on memory recognition and speed potential, my issue is slightly different. As noted on my system below, I have 4 x 2GB memory sticks of G.Skill F3-12800CL7D-4GBRM DDR3-1600 with CL7-8-7-24 1.6V rating. I previously had
-
Vendor master data file structure
Hello Guys, I want to knw the flat file strucute of vendor master data (specially vendor with multiple banks) pls let me knw tht thnks sunny
-
10.1.3.3 setup Java problem when upgrading from 10.1.3.2
Hi guys! I have a problem with upgrade from 10.1.3.2 to 10.1.3.3 on Windows The documentation is old what you can download! So I cannot find anything. The Infrastructure Installation and Configuration Guide is for 10.1.3.2.1 and from april 2007 The I
-
My computer won't recognize the zen sleek ph
I have installed the software and when I open the program it won't recognize that my product is plugged into the computer, therefore I can't use it or upload music to my product. I have tried turning off my anti-virus programs and re-installing the p
-
LAN Gaming: Delta Force BHD...can't see pc or vise versa hosted game
Sorry, didnt know where else to go but here. I've checked on Google, and can't find anything about this. I'm on a home network, windows and apples firewall is off, newest well only version of the Mac game 10.5 and the newest ver for pc 1.5 but can't