How to Destroy PDFs generated thru Interactive Form ELement
Hello Friends
My team has figured out that constructing pdfs through Interactive Form Element in Netweaver is a big performance issue
We need to destroy those pdfs generated , So please help us out with this
thanks a lot
I guess I'm still not fully understanding your problem. You mention that they aren't being cleared from the JVM? On the server or client side? How exactly are you seeing that they aren't being released? I'm assuming you mean server side because you mention JVM. The JVM isn't used on the client side to display the UI element. There is no JVM used in Web Dynpro ABAP for the server side processing. The only place the JVM is used is in the Adobe Document Services itself for the rendering of the PDF. Is that where you are seeing instances not being cleared? I'm not exactly sure how that would be manifesting itself. Could you please provide some more detail.
Similar Messages
-
How to get PDF generated by adobe forms on to Application Server
I have a program which gathers data into an internal table. The program then calls function FP_JOB_OPEN (with relevant outputparams). Then it calls the function module name, of the Adobe Form, passing the internal table across. Then the job is closed.
This all works fine and we end up with a PDF file on the spool (type ADSP).
The requirement is, within the program, instead of outputting to the spool, to output the PDF document onto the Application server.
Any help greatly appreciated.If the PDF spool is already generated then,
You may need to read the PDF data , may be using 'RSPO_RETURN_SPOOLJOB
Once you get the spool data in internal table , use Open Dataset and close dataset to download , see if that works.
Cheers,
VB -
Using a pdf-template for generating an interactive form
Hi guys,
I have got the following problem. I have got an pdf-Document, that can be printed out and filled out manually.
Instead of I just want to use this pdf-Document as an template for an online form, by adding some fields.
How can I use this pdf-Document as an template?
Thank you for your answers. Patrick.Hi Patrick,
Let me see if I understand your query properly first. Your requirement is that you have a PDF file which is pretty much fixed.
Now you want to use the Template present in the PDF file to be shown to the user, but this should be pre-filled with data that you receive from a Web Service & RFC.
Now firstly I will mention the easy way, which would require you extract the PDF Template statically, I am not sure if the API has now been released to do that programatically.
Now, lets say you store it is some location the template file, you would also need to tweak the DataBinding properties in the Template to match to that of the Context Node you will use in the application.
Now in the ModifyView method you should get a reference to the Interactive form element, use the setTemplateSource method to refer to your template.
Now based on the response from your RFC/WebService create the appropriate attributes into the node, and your form should work fine.
Regards,
Pavan -
Want to generate non-interactive form
Hi Experts,
I want to generate some reports from webdynpro java as pdf.i want to do
this as non-interactive form.Please tell me how can i generate such a non interactive form , if possible with example or as step by step procedure.
Regards,
Ramanan.PHello,
if you set the flag 'Readonly' for your Interactive form element it will be a non-interactive form.
Best regards,
Dezso -
Hiding toolbars in Interactive form element thru code
Hi all,
I am using interactive form element to embed a purely readonly pdf (but content is dynamic) since Iframes is deprecated (any other way?).
I wish to hide the toolbars, options of thumbnails etc. I added the code below to my view controller. However, it does not seem to work. All the toolbars are still showing. Did i do something wrong?
IWDPDFDocumentInteractiveFormHandler iFormHandler =
WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),
"InteractiveForm");
IWDPDFDocumentAppearance appearance =
iFormHandler.getDocumentContext().getAppearance();
appearance.hideMenuBar(true);
appearance.hideToolBars(true);
appearance.hideWindowControl(true);
Also, the formating (fonts etc) of the pdf in the portal seems to be different from that seen in R/3 form.
Anyone?Hi,
As the error suggests that you do not have any certificate configured in your key store which is required to authenticate the client to the ADS. You would require to install a client certificate on your Web Dynpro/Portal server that will be used to authenticate the Web Service call to ADS.
But the question is whether you need "Https" for a server to server communication (from your portal server to ADS server) ? Normally, these two servers reside in the LAN. And i suppose you are not using any of the secured functionalities of interactive form (for example, digital signature, certification etc.). I assume that you need "https" call from browser to the portal server and then from portal server to the ADS should be on http. Please confirm on that. If that is the case, then you can follow the section below to change the "protocolSchemeForADSCall" to "http" always. This is what you would need to do in the Visual Administrator where your portal/web dynpro is installed:
In Visual Administrator. Go to ->
Server -> Services -> Configuration Adapter -> webdynpro -> sap.com ->
tcwddispwda -> Propertysheet default
Then goto property sap.protocolSchemeForADSCall
This property is available after you apply SAP note 849730.
Possible values are:
- request: same protocal scheme than the request to Web Dynpro has
- https: always use https
- http: always use http
SET the value as http. This will ensure that web Dynpro to ADS communication always happens on http, rather than on https.
Should you need to install SSL based communication between the two, you would need to follow the note:
838111 > How to configure SSL for Adobe Document Services
Best Regards,
Krish -
Interactive Form Element 7.1: How can I set the default file name?
I am using Interactive Form Element with 7.1 to display a pdf. When one clicks the save button in Adobe's toolbar, the dialog defaults the file name to "F.pdf". Is there a way to default this to a different value?
Making customisation from the default profile is generally considered poor practice and quite often doesn't work out as planned. (If you're interested in some more information on this, [http://mockbox.net/windows-7/227-customise-windows-7-default-profile.html see here] see here)
This article should help you with developing and deploying your customised Firefox 4 installation (without touching the Windows 7 default user profile):
http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html -
How to integrate Flashisland for Adobe interactive forms
Hi Experts,
Can you please help us in understanding how to integrate Flashisland with adobe interactive forms?
We need to add swf file in the interactive forms, which will be used in webdynpro abap application.
Any idea will be helpful for us.
Thanks for the support.
Regards
SathishHi Sathish,
You can not add swf file in interactive form, however you can integrate you flash island with web dynpro ABAP application.
Adobe flash island and adobe interactive form are two different things and have different purposes.
You can have adobe flash island and adobe interactive form in a single WD application(even as part of the same screen), but still there will be integration on the data level not on UI level. The UI elements for both will react separately from each other and there can't be any integration of adobe flash island inside adobe form.
However you can develop a flash application using which you can view adobe interactive form similar to adobe reader and use this flash application as part of your WD ABAP application but that doesn't make any sense as without flash island we can show it in WD ABAP view.
I hope this will clear your doubt.
Regards,
Vaibhav -
Hiding toolbars in Interactive form element
Hi all,
I am using interactive form element to embed a purely readonly pdf (but content is dynamic) since Iframes is deprecated (any other way?).
I wish to hide the toolbars, options of thumbnails etc. I added the code below to my view controller. However, it does not seem to work. All the toolbars are still showing. Did i do something wrong?
IWDPDFDocumentInteractiveFormHandler iFormHandler =
WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),
"InteractiveForm");
IWDPDFDocumentAppearance appearance =
iFormHandler.getDocumentContext().getAppearance();
appearance.hideMenuBar(true);
appearance.hideToolBars(true);
appearance.hideWindowControl(true);
TIAHi,
As the error suggests that you do not have any certificate configured in your key store which is required to authenticate the client to the ADS. You would require to install a client certificate on your Web Dynpro/Portal server that will be used to authenticate the Web Service call to ADS.
But the question is whether you need "Https" for a server to server communication (from your portal server to ADS server) ? Normally, these two servers reside in the LAN. And i suppose you are not using any of the secured functionalities of interactive form (for example, digital signature, certification etc.). I assume that you need "https" call from browser to the portal server and then from portal server to the ADS should be on http. Please confirm on that. If that is the case, then you can follow the section below to change the "protocolSchemeForADSCall" to "http" always. This is what you would need to do in the Visual Administrator where your portal/web dynpro is installed:
In Visual Administrator. Go to ->
Server -> Services -> Configuration Adapter -> webdynpro -> sap.com ->
tcwddispwda -> Propertysheet default
Then goto property sap.protocolSchemeForADSCall
This property is available after you apply SAP note 849730.
Possible values are:
- request: same protocal scheme than the request to Web Dynpro has
- https: always use https
- http: always use http
SET the value as http. This will ensure that web Dynpro to ADS communication always happens on http, rather than on https.
Should you need to install SSL based communication between the two, you would need to follow the note:
838111 > How to configure SSL for Adobe Document Services
Best Regards,
Krish -
Submit event in Interactive Form element
I have WDA with Interactive Form element.
I put a code onSubmit event of InteractiveForm element.
I tried several Submit buttons in Live Cycle Designer:
type Button with Submit option from Standard library and type Submit to SAP from Native library.
None of them generates Submit event
Ehat kind of special "special Adobe Web Dynpro submit button" the Help is talking about?
Here is an excerpt from WDA help:
onSubmit
Describes the action to be executed when the user selects the Submit pushbutton.
Note that the submit event is only evaluated when there a submit button is selected
within the form. "Within" means that the special Adobe Web Dynpro submit button has
been included in the Adobe Designer.
Thanks,
TatyanaHello Siva,
In Interactive Form ,you can place as much submit buttons as you want.
You are creating a simple calculator in adobe...Right..?
For this purpose ,
1. In Adobe Interactive Form, Go to WebDynproActiveX field and from this ,select 4 submit buttons in sequence
2.In Caption property label them as Add, Sub, Mul & Div respectively.
Reply if these steps work for you.
Best Regards,
Shital. -
How do I display my pdf output on interactive form?
Hi all,
I use interactive form ui element and bind its pdf source property to my attribute 'SOURCE' typed xstring.
I call my custom fm to process some data return me an itab which consist of lines of pdf binary data. I moved it to another itab which is lines of hexadecimal text. I have a big problem displaying my lt_xstring below on ineractive form. Either I get type not compatible or acess via null object reference error issues. Any idea anyone???
TYPES: BEGIN OF ty_buffer,
lv_buffer TYPE xstring,
END OF ty_buffer.
TYPES: BEGIN OF ty_string,
lv_string TYPE string,
END OF ty_string.
TYPES: BEGIN OF ty_xstring,
lv_xstring TYPE xstring,
END OF ty_xstring.
DATA lt_buffer TYPE STANDARD TABLE OF ty_buffer.
DATA lt_string TYPE STANDARD TABLE OF ty_string.
DATA lt_xstring TYPE STANDARD TABLE OF ty_xstring.
DATA lw_buffer TYPE ty_buffer.
DATA lw_string TYPE ty_string.
DATA lw_xstring TYPE ty_xstring.
DATA lw_pdf TYPE soli.
*EXPORT my_data = lv_string TO DATA BUFFER lv_buffer.
*IMPORT my_data TO lv_xstring FROM DATA BUFFER lv_buffer IN CHAR-TO-HEX MODE.
LOOP AT ltg_pdf INTO lw_pdf.
lw_string-lv_string = lw_pdf-line.
EXPORT my_data = lw_string-lv_string TO DATA BUFFER lw_buffer-lv_buffer.
IMPORT my_data TO lw_xstring-lv_xstring FROM DATA BUFFER lw_buffer-lv_buffer IN CHAR-TO-HEX MODE.
APPEND lw_xstring to lt_xstring.
CLEAR lw_pdf.
CLEAR lw_string.
CLEAR lw_buffer.
ENDLOOP.Hi Siong,
If you are using web dynpro than whatever the values presents in the context will be displayed in the Form.
in case of web dynpro you need to to perform any parsing or transformation.
Just make sure than you are properly mapping the web dynpro context and Pdf context.
check your web dynpro component, if you get the correct values in context, than these values will be displayed in fore also.
Thanks & Regards,
Arvind -
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 -
How can user attach file to interactive form, and be read by abap program?
Hello,
I created an abap interactive form, sent to the user, then user fills out the form fields, then it is uploaded back to sap, then my program reads this data and process it.
It works.
Now I want users to be able to attach any file they want, and the abap program to extract this file out of the PDF, to put it into SAP (or anywhere).
I succeeded in attaching a file, I can "see" it via function module get_annotations, but I get the file in compressed form by Adobe (filter="FlateDecode").
Do you know how to unzip the file, or is there another way to attach files in adobe reader/extract them via abap?
I use acrobat reader 8.1.2
Thx a lot!
sandra
Below is the xml obtained by GET_ANNOTATIONS. We see that there are other text annotations, and that the attached file has {length="98005"}, though real file (before "attach file" to the PDF, and also after "detach file") has length 111 995 bytes. It's why I deduced that there is a compression (I also tried to extract it as-is and open it with adobe but it doesn't work.
<?xml version="1.0" encoding="UTF-8"?>
<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
<annots>
<highlight rect="212.347,624.257996,252.979004,636.539978" creationdate="D:20080604100938+02'00'"
name="2114308b-275d-4eca-8bfc-c8288ef4a77c" color="#FFFF00" flags="print"
date="D:20080604100938+02'00'" title="mtresori" subject="Texte surligne "
coords="215.432999,636.179016,249.893005,636.179016,215.432999,624.619019,249.893005,624.619019"
page="0">
<popup rect="595.276001,516.179016,775.276001,636.179016" flags="print,nozoom,norotate"
open="no" page="0"/>
</highlight>
<fileattachment rect="15.345001,802.841003,29.345001,822.841003"
creationdate="D:20080604101011+02'00'" name="f6e12648-c9b0-4cd1-b08b-82876c8300d7"
color="#4055FF" flags="print,nozoom,norotate" date="D:20080604101019+02'00'" title="mtresori"
subject="Piece jointe" file="SAP_WIDGETS2.pdf" mimetype="application/pdf"
creation="D:20080603112937+02'00'" modification="D:20080603112937+02'00'" size="111995"
checksum="9F846412B510089F7C6DBCC6527C6339" page="0">
<contents-richtext>
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
<p>SAP_WIDGETS2.pdf</p>
</body>
</contents-richtext>
<data MODE="raw" encoding="hex" length="98005" filter="FlateDecode">
4889CC570B5414D719F651A38EC468D5C6A2980104E528BBF3B8F3B2626405242920020A0AA4AEBB
C3B2BAECEAEEA2A018030A628C8FFA4A0F568F58426A1EF5118FB5266A8D9AA2B16A55044541C5
A62656EBA315935AE8BDB3BBEC2C0BD9D5B39EB3671966FEFBFCE6BF
ETC. (all hexa code is the attached file, but with compression by adobe)
</data>
</fileattachment>
<text rect="96.187408,680.099976,116.186996,698.099976" creationdate="D:20080613144537+02'00'"
name="73360fcf-f5e5-4d5b-9315-fe4c42924300" color="#FFFF00" flags="print,nozoom,norotate"
date="D:20080613144617+02'00'" icon="Comment" title="srossi" subject="Note" page="0">
<contents-richtext>
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
<p dir="ltr">
<span dir="ltr" style="font-size:10.0pt;text-align:left;color:#000000;
font-weight:normal;font-style:normal">
ffffffffffffffffffffff
</span>
</p>
</body>
</contents-richtext>
<popup rect="595.276001,578.099976,775.276001,698.099976" flags="print,nozoom,norotate"
open="yes" page="0"/>
</text>
<text rect="100,82,120,100" creationdate="D:20080613144627+02'00'" state="Marked"
name="d524b7d5-1a85-4b62-80b3-5875dd152c51"
color="#FFFF00" flags="hidden,print,nozoom,norotate" date="D:20080613144627+02'00'"
icon="Comment" title="srossi" subject="Note"
inreplyto="73360fcf-f5e5-4d5b-9315-fe4c42924300" statemodel="Marked" page="0">
<contents-richtext>
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
<p>Marked definie par srossi</p>
</body>
</contents-richtext>
<popuprect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
</text>
<text rect="100,82,120,100" creationdate="D:20080613144633+02'00'" state="Accepted"
name="88af2cb6-7516-4f21-81e6-97edc7a85184"
color="#FFFF00" flags="hidden,print,nozoom,norotate" date="D:20080613144633+02'00'" icon="Comment"
title="srossi" subject="Note" inreplyto="d524b7d5-1a85-4b62-80b3-5875dd152c51" statemodel="Review"
page="0">
<contents-richtext>
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
<p>Accepted definie par srossi</p>
</body>
</contents-richtext>
<popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
</text>
<text rect="100,82,120,100" creationdate="D:20080613144642+02'00'" state="Marked"
name="a8c6b485-c3f9-44e2-ad53-c61b2766d9d5" color="#FFFF00" flags="hidden,print,nozoom,norotate"
date="D:20080613144642+02'00'" icon="Comment" title="srossi" subject="Note"
inreplyto="f6e12648-c9b0-4cd1-b08b-82876c8300d7" statemodel="Marked" page="0">
<contents-richtext>
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
<p>Marked definie par srossi</p>
</body>
</contents-richtext>
<popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
</text>
<text rect="100,82,120,100" creationdate="D:20080613144647+02'00'" state="Accepted"
name="0136b689-575c-46b8-a21a-86e3c8d73904" color="#FFFF00" flags="hidden,print,nozoom,norotate"
date="D:20080613144647+02'00'" icon="Comment" title="srossi" subject="Note"
inreplyto="a8c6b485-c3f9-44e2-ad53-c61b2766d9d5" statemodel="Review" page="0">
<contents-richtext>
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
<p>Accepted definie par srossi</p>
</body>
</contents-richtext>
<popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
</text>
<text rect="100,82,120,100" creationdate="D:20080613144657+02'00'" state="Accepted"
name="a21fc3c5-cf6a-4c6f-bc1f-328a91050b4e" color="#FFFF00" flags="hidden,print,nozoom,norotate"
date="D:20080613144657+02'00'" icon="Comment" title="srossi" subject="Note"
inreplyto="2114308b-275d-4eca-8bfc-c8288ef4a77c" statemodel="Review" page="0">
<contents-richtext>
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
<p>Accepted definie par srossi</p>
</body>
</contents-richtext>
<popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
</text>
</annots>
<f href="acTempF-00000028453-00000000089"/>
<ids original="03473EFED11DB2110A00000000000000" modified="959796E85292D54DB7FA558CAAD4A346"/>
</xfdf>Hello everybody,
I am sure you have an answer to my question above. It was :
how is it possible for a user to ATTACH files to a PDF interactive form, and then be able to READ them via a program ? (I guess the solution to read them via ABAP or JAVA is quite the same?)
Thx a lot !
sandra -
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 -
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 -
Getting when importing Dynamic PDF into Webdynpro Interactive form
Hi Gurus,
I have created a PDF(It has text box with multiline) in Adobe livecycle Designer and saved as Dynamic PDF, then I imported into Webdynpro interactive form.If I
import only first page of the form and run WD application, i am getting
the output, Still text with expand is not working.
But If I try to import the form with 4 pages and run the WD
application, it is throwing the following error
"The following error text was processed in the system SM1 : WebDynpro
Exception: SOAP Framework error: SOAP Runtime Exception:
CSoapExceptionFault : SOAP fault found in SOAP document /Transaction
system failure in method
rpData./<ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException
xmlns:ns1="http://sap-j2ee-engine/client-runtime-error">Transaction
(100,102).
Please help me on this.
Thanks,
JohnHello,
I closed this thread. As you opened two.
Best regards,
Dezso
Maybe you are looking for
-
Error executing SQL (Wrong date format)
Hello, I'm trying do this SQL statment.. and i'm getting the error.... I hear this error is about wrong format picture date.... Can anyone help me ? Thanks Fernando. 1 update cargo a 2 set dat_validade_fim = 3 ((nvl((select min(b.dat_validade_ini) 4
-
Selected event/photo import from iPhoto to LR 5.6
Greetings, I've been using LR (OS X) since v3 to tune up selected photos. With the news that iPhoto is going away I've decided to import all future photos into LR. I can't justify importing all of my existing iPhoto pictures (>10k across multiple iPh
-
Offset for Vendor Account Number(field VENDR) in table BSED
Hello experts, I need to know the Offset where i can find the Vendor Account Number in field VENDR in the table BSED. This field is used for Localisation for TURKY in Reports like RFIDTRBOE1, RFIDTRBOE2. Thanks in advance! Regards, Sandeep
-
HP Officejet 7300xi all-in-one not installing.
Hi, Just got a new job and have to connnect this printer to my HP comuputer. I'm assuming the computer is a Windows7/vista, but am not sure on how many bits. Regardless, I have the cd-rom to download and install the printer software. It reads the cd,
-
I would like to change my viewing preferences in Mail so that when I click to open a message it will display the entire message as a whole rather than a bunch of "see more" links. Does anyone know how I can do this? Thanks