Saving Adobe Interactive Form
I have a web dynpro application opens an interactive form and once a user fills it out it creates an activity on the crm backend. That works fine.
What I'd like to do is take the adobe form and attach it to the newly created activity. I am able to attach other documents to the activity, but not the .pdf from the interactive form.
The method I use to attach documents takes a context element called pdfObject and passes it to the backend as a byte arry. The problem is, only some data is coming thru.
I'm thinking that it might only be passing the data or the form template, but not both in a .pdf format.
Anyway, if anyone knows of a way to take a interative form and get it into a byte array, please help.
Thanks,
Tom
Markus,
You are correct the pdfObject is the binary context that is assigned to the pdfSource property. The form works great for filling out and calling the ABAP rfc. The problem is that I tried saving the pdfObject element, in the web dynpro application, to file and it does not save in a readable pdf format. If I go into the form manually and save it as a pdf it works ok. I also compared the size of the pdfObject and the saved pdf and the saved pdf is much bigger. This leads me to believe that the binary stored in pdfObject is not a pdf, but maybe the data from the pdf.
I guess the question really is, What is pdfSource holding? Is it the data less the template,all the pdf data...
Anyway, I image someone has tried to save an interactive form to file via web dynpro. Let me know if you have any hints for me, or have tried something similar.
Regards,
I guess the context element pdfObject is the value you assigned to the pdfSource property of the InteractiveForm UI element. And you probably also made it of a 'binary' type in the Context. Can you please check this?
Similar Messages
-
Saving Adobe Interactive Form into a Server Path in Webdynpro.
Hi Forum,
I have an Adobe Interactive Form as UI element in my webdynpro View. This form is available in the context attribute in Binary Format. I can read the form from this attribute as Byte Array only. I want to save this file in to a folder located in the Portal Server (ex : path :
usr\jc00\j2ee\........\temp\myfolder).
I am trying with the following code :
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateTestCompView.IContextElement.PDF_SOURCE);
IWDModifiableBinaryType binaryType =(IWDModifiableBinaryType) attributeInfo.getModifiableSimpleType();
IPrivateTestCompView.IContextElement element = wdContext.currentContextElement();
binaryType.setMimeType(WDWebResourceType.PDF);
//if a file in the 'FileResource' attribute exists
if (element.getPDFSource() != null) {
try {
String ext=binaryType.getMimeType().getFileExtension();
String fileName="PriceUpdateForm1";
byte[] b = wdContext.currentContextElement().getPDFSource();
File files = new File("C:
usr
sap
EP7
JC00
j2ee
temp
HTI
"fileName"."+ext);
try {
FileOutputStream out = new FileOutputStream(files);
out.write(b);
out.close();
} catch (FileNotFoundException e) {
//TODO Auto-generated catch block
e.printStackTrace();
wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
} catch (IOException e) {
//TODO Auto-generated catch block
e.printStackTrace();
wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
element.setPDFSource(null);
} catch (Exception e) {
throw new WDRuntimeException(e);
it is giving me the error :-
java.lang.Exception: Incorrect content-type found 'text/html'
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientMimeMessage.initDeserializationMode(ClientMimeMessage.java:120)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:951)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99
Can any one tell me what went wrong and how to convert the ByteArray into PDF and save it on to network path.
Any help will be highly awarded........
Thanks
Ramesh.Hi,
Please refer this, Page 7-8
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1bbc91c3-0401-0010-91bc-a25b2a3dff19
Regards,
Eric -
Need help with Adobe Interactive Form Saving
Hi Gurus,
I need your help with Adobe Interactive form saving.
I have written the code in pre-save event to prompt a message when user didn't enter any value before saving. The form data should not be saved upon clicking save (Just prompt the message and exit form the form). Can u please advice me how to do this.
Regards,
Srinisee the link: http://forms.stefcameron.com/2008/04/
it says:
preSave: Failed validations will not prevent the form from being saved however Acrobat/Reader will issue a special warning message, after issuing the validation error message, to inform the user that the validations failed. Iu2019m guessing this is because the user may be saving the form to continue filling it at a later time so the save canu2019t be completely prevented.
regards,
BJagdishwar. -
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 -
Problem Saving AdobeForm: INTERACTIVE FORMS DEVELOPMENT BASED ON ADOBE
Gurus,
I am basically developing "INTERACTIVE FORMS DEVELOPMENT BASED ON ADOBE SOFTWARE".
The problem comes when I save the Adobe Form. I am loosing the value (Meaning not able to save the form).
As far as i understand, this is surely pertaining to the Adobe Version that i am using.
Can somebody throw light on what Version should be used to go solve the problem
Regards,
Arvind KugasiaArvind,
In the Adobe Forms forum, I told this solution , it worked for him,
Re: Adobe interactive forms: unable to create part
The IDEInstaller might not installed the Adobe related files properly.
In the directory <plugins>\com.sap.ide.webdynpro.adobetemplatedesigner
\lib\.. there exists a file
"WDAdobeControl.dll".
This has to be registered.
For that following steps have to be performed:
1. Close the NetWeaver Studio.
2. Open the command prompt.
3. Type : regsvr32 "C:\......<plugins>\com.sap.ide.webdynpro.
adobetemplatedesigner\lib\WDAdobeControl.dll".
4. Re-open the Studio.
Thanks, Let me know whether this worked for you.
Raj. -
How to binnding the data in the adobe interactive forms for making a table?
Hi, experts,
Function:
Through the sharing context node between adobe interactive form and a WDA for ABAP, display the data of the sflight_node in the ADOBE.
version:
Acrobat Reader 8.1.0
currently both of the SAP-ABA and SAP-BASIS SP level: 9
ADS : Successful.
The following is my action:
1. Create a interface (Z_SFLIGHT_INTF) with a attribute node (SFLIGHT_NODE) that type is "sflight" using the transaction code "sfp"
2. Create a form (Z_SFLIGHT_FORM) using the transaction code "sfp" with the interface Z_SFLIGHT_INTF.
3. Trag the sflight_node in the Z_SFLIGHT_INTF to the form( Z_SFLIGHT_FORM).
4. Open the layout tab in the form(Z_SFLIGHT_FORM), and create a table(table1). Click the table created just now, select the binding tab in the object tab, and in the Default Binding, select the SFLIGHT_NODE under the Z_SFLIGHT_FORM.
Problem 1:
Do you tell me whether is right for binding the context SFLIGHT_NODE using this way? If bind 3 context attributes in the sflight, how can I do it?
5. Create a WDA for abap (ZZ_02_SFLIGHT), and create a view(MAINVIEW) using transaction code "se80" in the sap-gui with adobe interactive form. Set the templatesource(Z_SFLIGHT_FORM) in the adobe interactive form properties and saved, and then, datasource is "MAINVIEW_Z_SFLIGHT_FORM" automatically.
6. But I only found the attribute SFLIGHT_NODE under the context node(Z_SFLIGHT_NODE), and I don't found the NODE ( SFLIGHT_NODE ) context in the context tab in the WDA for abap so that I don't set data to the context NODE (SFLIGHT_NODE).
Problem 2:
Do you tell me what can I do it so that I get the node SFLIGHT_NODE rather than attribute in the WDA for setting the data to the CONTEXT NODE (SFLIGHT_NODE)?
Thanks a lot.
Best regards,
TaoHi, experts,
You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
Thanks a lot.
Best regards,
tao -
Data Passing Problem with Adobe Interactive Forms
Hello all,
I am trying to create a Guided Procedure to implement an offline Adobe Interactive form. This form is based on the standard Requisition Request form used in MSS for e-Recruiting.
I've copied the standard form and updated the layout to ZCI using the appropriate transaction (not manually). After that, I've changed the Interface and layout. But to get the Form in the portal you need to have a .xpd file. Therefore, I've tested the form in preview mode, saved a copy as a PDF file and opened this copy in the standalone Adobe Lifecycler Designer. In the standalone version you are able to save the form as a PDF (not possible using transaction SFP).
My question 1 is if this is a wrong approach and there is a better way to retrieve the xpd file.
Next to that, I wrote a RFC function to retrieve data in the backend. This function is working and now I try to pass the data to the Form in the GP (using prefilling). The data is never passed, any points that I need to check there. The data used to export is a structure that contains a number of table types, because Adobe has issues with importing tables it seems. The form is working correctly in the backend.
Points will be rewarded for helpfull awnsers!
Kind regards & thanks in advance...Check double post
-
Drop down in dynamic table in the Adobe Interactive Form (Web dynpro ABAP)
Hi All,
I have scenario use drop down in dynamic table in the adobe interactive form (Using the button the dynamic table row will be increasing and decreasing).
Assume I Add five rows dynamically in the dynamic table. The Last column contains Drop down.
I have button in the adobe form.
Button Name = u201CSAVEu201D
Button type = SAP Submit button (Native type u2013 I am Using ZCI).
While clicking save button, I need to store the dynamic table datau2019s to back end system. I can able to store the data to back end system. After form data getting saved those particular values need to display in the adobe form.
Here I am facing a problem.
I cannot able to view as a default value in the drop down, which I have selected some values after save operation I am not getting any values in the drop down as a default.
Example:
The dynamic table contains 5 rows (Each and every row Drop down contains one to ten values).
1) I have selected second value in the Drop down (ROW1)
2) I have selected fourth value in the Drop down (ROW2)
3) I have selected fifth value in the Drop down (ROW3)
4) I have selected seventh value in the Drop down (ROW4)
5) I have selected third value in the Drop down (ROW5)
I press the save button that particular Drop down value gets saved in back end system and that particular values want display in the Drop down as a default value.
How to resolve this problem.
Regards,
Boopathi MHi,
Solve the problem .
I have created the New node for dropdown. also i have one node already for table.
The new node i bind to dropdown, the table same for table.
Its working fine
Boopathi M -
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? -
Adobe Interactive Forms in SAP HCM
Hi,
What do Adobe Interactive Forms in SAP HCM do?
What is the difference between Interactive/Non-Interactive Forms?
In which sub-modules of SAP HCM are such forms used?
What is that an HCM consultant has to expect from Basis and ABAP consultants for this?
Where can I get reference material on Adobe Interactive Forms in SAP HCM.
Please help.
Thanks and regards,
Sasidhar.Hi,
Check the answers for u r questions...
What do Adobe Interactive Forms in SAP HCM do?
Adobe Forms is the second step in the HCM process, as HCM is the online process..in between of the process adobe form will come in to picture to fill online.
What is the difference between Interactive/Non-Interactive Forms?
In non-interactive forms,there is no database interaction.If u say interactive forms.if u enter data in the form data will be saved directly in the data base..
In which sub-modules of SAP HCM are such forms used?
OM(Orzanization Management),PA(Personel Adminstration) and PD(personel Admin) ..ect...
What is that an HCM consultant has to expect from Basis and ABAP consultants for this?
from basis HCM dont required more help..only authorization and access only.
from ABAP u need more..if u use standard backend system..some times data will not picked automatically at that time through BADI u need to fill the data to the form,and to do validation in the form level..ABAPER need to write scripting
Where can I get reference material on Adobe Interactive Forms in SAP HCM.
check the below link
http://www.cogentibs.com/pdf/cogsap08/HRForms.pdf
Thanks,
Madhukar. -
How to display Adobe Interactive Form from ABAP (not WDABAP)
I have created a WD ABAP application that creates an Adobe Interactive Form (ZCI) and submits it for workflow. All of the data on the form is saved in custom itables in the SAP System. The end-users are supposed to save a copy of the form at the last step in the workflow before they "Acknowledge" the task in UWL. Once the acknowledge takes place, they can no longer display the form in UWL. They want an ABAP program that will read the data from the various custom tables and display a "print" version of the form (not interactive).
I am calling FM 'FP_FUNCTION_MODULE_NAME' to get the function module for the form. I then call FM 'FP_JOB_OPEN' with the parameter IE_OUTPUTPARAMS-REQNEW set to ABAP_TRUE. The call to the form FM has the following EXPORTING parameters:
EXPORTING
/1BCDWB/DOCPARAMS =
/1BCDWB/DOCXML =
I understand the /1BCDWB/DOCPARAMS but have no idea what needs to be done to for the /1BCDWB/DOCXML parameter. Can anyone offer any advice or assistance?Joyce,
this is really simple - the reason you have that /1BCDWB/DOCXML is because you defined your form interface to have an XML based interface.
While this is great for ABAP Web Dynpro, because the XML is generated for you, this is NOT the case with regular ABAP.
You should choose ABAP Data Dictionary-Based Interface. You will then be able to add tables, structures and fields to your interface.
For instance, here's code from a program where I call the form in regular ABAP
data: ls_worksheet TYPE Zxxx_structure.
* Fill the ls_worksheet structure here.
* Call the generated function module
CALL FUNCTION ls_function
EXPORTING
/1bcdwb/docparams = fp_docparams
worksheet = ls_worksheet
IMPORTING
/1bcdwb/formoutput = ls_form_output
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
Notice I do not have the /1BCDWB/DOCXML Exporting parameter.
Just change your interface to a Data Dictionary Based, and add the tables/structures/fields to it.
then, go to your calling program, fill them, and pass the data through the Exporting parameter. -
Adobe Interactive forms in blackberry simulator?
Hi Everybody,
I had designed a Adobe Interactive form in webdynpro for java in netweaver developer studio. Now i want to run the url of this application in blackberry browser.
Actually I am able to run the webdynpro for java applications in blackberry simulator by executing the generated url of the webdynpro applications.But when I am trying the same with webdynpro for java application which contains adobe interactive form, blackberry is unable to display the form in browser.
Please help me out with some procedure to do so. Will "dochawk" or "reqwireless webviewer" will help. if so please give the clarrification.
Thanks in advance,
best regards,
Madhu.Hi,
Check the answers for u r questions...
What do Adobe Interactive Forms in SAP HCM do?
Adobe Forms is the second step in the HCM process, as HCM is the online process..in between of the process adobe form will come in to picture to fill online.
What is the difference between Interactive/Non-Interactive Forms?
In non-interactive forms,there is no database interaction.If u say interactive forms.if u enter data in the form data will be saved directly in the data base..
In which sub-modules of SAP HCM are such forms used?
OM(Orzanization Management),PA(Personel Adminstration) and PD(personel Admin) ..ect...
What is that an HCM consultant has to expect from Basis and ABAP consultants for this?
from basis HCM dont required more help..only authorization and access only.
from ABAP u need more..if u use standard backend system..some times data will not picked automatically at that time through BADI u need to fill the data to the form,and to do validation in the form level..ABAPER need to write scripting
Where can I get reference material on Adobe Interactive Forms in SAP HCM.
check the below link
http://www.cogentibs.com/pdf/cogsap08/HRForms.pdf
Thanks,
Madhukar. -
GP adobe interactive form issue
GP adobe interactive form issue
Hello All ,
My scenario :
I need to create three forms
namely 1). Initiation (1)
2). Sanction forms (2).
When I create an interactive form to accept the initiation form details & submit the data to the next form that is sanction form , I am not able to process to the next form . why is it so ?
basically I need to move from one action to another with two different forms.Hi,
Check if you have saved and activated your interactive form callable object.
Are you using this document:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7fad6fea-0c01-0010-56b4-8ac88b4185ab
Regards,
Mona -
Process data of none bound fields in Adobe Interactive Form (stack 13)
I use a Adobe interactive form (made in Designer 7.0)which is a combination of fields bound to Web Dynpro Context fields and fields which has no binding at all (in Designer: Default binding = Normal). The Adobe Document Services on the J2ee server is of stack 13.
When I save the Adobe Form (off-line scenario)from the Web Dynpro Application, only fields bounded to the Web Dynpro Context are saved in the Form on my local file system(no warning that data isn't saved).
When I open the Form for off-line editing, I can change bounded fields and none bounded fields. But when I save and re-open the form, the data in the none bounded fields is lost.
I used the same scenario in a stack 11 j2ee/portal system, but then all data (bounded or not) in the form was saved!
Could anyone explain the difference, but better tell me how to save both kind of fields in the off-line form (and bounding all fields is <u>not</u> a solution).
Thanks in advance,
RichardHi,
Check your ADS settings, I feel it's due to lack of some config in ADS only.
Regards
<i><b>Raja Sekhar</b></i> -
Adobe Interactive Forms & CRM2007
Hi guys,
we have to integrate CRM2007 and adobe interactive forms. Let's say when clicking a button in a CRM view it launch the adobe interactive form and then, if it gets changed, it should update some fields in CRM.
we have looked at some post but couldn't understand clearly. Can anyone help us with the steps requireds?
1) can we create our own WS that updates the fields when pressing a button from the form? If you can refer information would be great.
2) or should we create a form in Tx:sfp and then use FM to access this form inside the BSP to read the data and update the fields that were changed?
Hope you can help us on this. Thanks in advance.
ManuelHi again,
the scenario is the following.. we have a pdf document, that is saved in the local machine, if I open it, fill some fields, and then press submit button, a ws is called. This WS creates a BP in CRM with the correponding data inserted into the form. Inside the form there are some fields that gets populated with the response from CRM systems (WS).
We have to build the same funcionality, we have a WS working in CRM (we tested it with another tool and it's responing well), then create the adobe form with adobe livecycle designer and create the data connection with the WSDL of the WS. Then we use the function IFDEMO01_DRIVER01 to convert the .xdp files to .pdf, but when we executed the pdf file that the function creates it doesn't work. It attemps to connect but we never get the response.
Do you know if this steps are the corrects ones?
please, if you can send me the code for the scenario you describe (inbound mail), that would be a huge help.
thank you!! for your time and response.
Best Regards,
Manuel
Maybe you are looking for
-
HELP ME!!!! who can help me ???
My eclipse always halt suddenly. I have no idea how to solve it, and i have reinstall my JVM and eclipse.but it doesn't work, the eclipse halt again. The below is the eclipse log hs_err_pid3740.log. Who can help me? much appreciate!!!! # An unexpecte
-
in numbers, how would I make a line for each family (100+) a column for each fundraiser. and at mid year, and year end be able to print an alphabetical listing? example: entertainment books Chip Shoppe Yankee Candle Smith
-
Help with creating a shuffleList function...
I have the following function, which creates and populates a vertical column of draggable clips and populates the dynamic text boxes within the movie clips with data from an xml file, effectively creating an ordered list of movie clips The code works
-
I have just installed a time capsule on my new IMac. I have set it up with ethernet connection to my modem and to my IMac Every time I try to back up I get an error message about not being able to write files to the backup disk; I have reset it, re-b
-
Satellite Pro P300-1AY - Where can I get new keyboard parts?
Hey guys, I was wondering if you knew of any places where I could get a set of keys for the keyboard (as opposed to buying a new keyboard) and if possible; where I can get sets of keys for different keyboard layouts, such as AZERTY for example. Many