DISPLAY PDF INTERACTIVE FORM INTO WEBDYNPRO
I'd like to display a pdf into a popup... it opens the popup it shows the pdf border but pdf is empty!!! Only template...
Is anything wrong in the code bellow ?
method DISPLAY_PDF .
DATA : l_plvar type plvar.
select single gsval
from T77s0
INTO l_plvar
where grpid = 'PLOGI' AND
SEMID = 'PLOGI'.
DATA : L_SOBJID TYPE SOBJID.
L_SOBJID = IM_STELL.
DATA: FP_DOCPARAMS TYPE SFPDOCPARAMS.
DATA: FP_FORMOUTPUT TYPE FPFORMOUTPUT.
DATA : IE_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS,
I_NAME TYPE FPNAME,
I_FUNCNAME TYPE FUNCNAME.
DATA: GT_RESULT_ORG_TAB TYPE TABLE OF SWHACTOR,
GT_RESULT_ORG_OBJEC TYPE Z_T_RESULOBJ,
GT_RESULT_REQUIREMENT TYPE Z_T_RESULTREQ,
GT_RESULT_DESCRIPTION TYPE Z_T_RESULTDESC,
GT_RESULT_DESCR_PDF TYPE ZTRESULTDESC,
GT_RESULT_TXT_OBJEC TYPE STANDARD TABLE OF T777O.
IE_OUTPUTPARAMS-NODIALOG = 'X'.
IE_OUTPUTPARAMS-GETPDF = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
IE_OUTPUTPARAMS = IE_OUTPUTPARAMS
EXCEPTIONS
CANCEL
USAGE_ERROR
SYSTEM_ERROR
INTERNAL_ERROR.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
TRY.
I_NAME = 'ZHAP_PDF_JOB_DESCRIPTION_FORM'.
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.
CALL FUNCTION 'ZHRTGMT_GET_JOB_DESCRIPTION'
EXPORTING
IP_PLVAR = L_PLVAR
IP_JOBID = L_SOBJID
IP_BEGDA = SY-DATUM
IP_ENDDA = SY-DATUM
IMPORTING
RESULT_ORG_TAB = GT_RESULT_ORG_TAB
RESULT_ORG_OBJEC = GT_RESULT_ORG_OBJEC
RESULT_REQUIREMENT = GT_RESULT_REQUIREMENT
RESULT_DESCRIPTION = GT_RESULT_DESCRIPTION
RESULT_DESCR_PDF = GT_RESULT_DESCR_PDF
EXCEPTIONS
NO_FOUND_REQ = 1
NO_ENTRY_DESC = 2.
CALL FUNCTION I_FUNCNAME
EXPORTING
/1BCDWB/DOCPARAMS = FP_DOCPARAMS
GT_RESULT_ORG_TAB = GT_RESULT_ORG_TAB
GT_RESULT_ORG_OBJEC = GT_RESULT_ORG_OBJEC
GT_RESULT_REQUIREMENT = GT_RESULT_REQUIREMENT
GT_RESULT_DESCRIPTION = GT_RESULT_DESCRIPTION
GT_RESULT_DESCR_PDF = GT_RESULT_DESCR_PDF
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:
NODE_PDF TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_PDF TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_PDF TYPE WD_THIS->ELEMENT_PDF .
* navigate from <CONTEXT> to <PDF> via lead selection
NODE_PDF = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_PDF ).
* get element via lead selection
ELEM_PDF = NODE_PDF->GET_ELEMENT( ).
CALL METHOD ELEM_PDF->SET_ATTRIBUTE
EXPORTING
NAME = 'SOURCE'
VALUE = FP_FORMOUTPUT-PDF.
DATA : LR_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER,
LT_TEXTS TYPE STRING_TABLE,
LR_COMPONENT_API TYPE REF TO IF_WD_COMPONENT,
LR_POPUP TYPE REF TO IF_WD_POPUP_TO_CONFIRM,
LR_VIEW_CONTROLLER TYPE REF TO IF_WD_VIEW_CONTROLLER,
LR_COMPCONTROLLER TYPE REF TO Ig_COMPONENTCONTROLLER,
l_title type string.
LR_COMPCONTROLLER = wd_THIS . " get_Componentcontroller_ctr( ).
LR_COMPONENT_API = wd_this->wd_get_api( ). "wd_comp_controller
LR_WINDOW_MANAGER = LR_COMPONENT_API->get_window_manager( ).
LR_COMPCONTROLLER->mr_window = LR_WINDOW_MANAGER->create_window( window_name = 'POPUP_PDF').
LR_COMPCONTROLLER->mr_window->set_close_button( CLOSE_BUTTON = 'X' ).
LR_COMPCONTROLLER->mr_window->SET_WINDOW_TITLE( SPACE ).
LR_COMPCONTROLLER->mr_window->open( ).
endmethod.
I forgot to add that the method has been creeated in componentcontroller..
Similar Messages
-
How to add table in SAP Non interactive forms in webdynpro java
Hi Experts,
I have a requirement in webdynpro java.I have a print button.On clicking print button a pdf will be opened.
This pdf will have data from the webdynpro view.I want to know how to add table in the adobe pdf.The webdynpro view will have many rows of table(rows will keep changing as per the size of the data output).How to send this data to adobe.How do we bind the node to the table in the adobe.How to automatically
Please suggest.
Thanks,
Rajani
Edited by: Rajani Nandagiri on Dec 26, 2008 8:58 AMRajani,
Take a look at below links, it will help you.
[Handling Dynamic Length Tables in Adobe Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669]
[Integrate tables & Images in Adobe Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dynamic%20non-interactive%20pdf%20form.pdf]
[How to Handle Table Input and Output|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/adobe/how%20to%20handle%20table%20input%20and%20output.pdf]
[How Tou2026deal with Table input and display in Interactive Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c4041d-188d-2910-6ea2-b4d5155f56e0]
Chintan -
Interactive Forms by WebDynpro for ABAP
Hello,
I'd like to create Adobe Interactive Forms by "WebDynpro for ABAP".
Our business requirements are
- to download offline PDF forms.
- to upload PDF forms and display Forms online.
Please let me know how to do this and the document or blogs.
Best regards,
KojiHi,
Downloading a form is as simple as when u enduser opens a form online, he just saves a copy of it, fills it up and uploading is just the next step.
If u want to upload an offline PDF form:
Here's the link that'll give a fair idea about this:
/people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view
If still not clear ask me..
It's just that u've created a view in webdynpro ABAP and uploading an offline form from that.
regards
Amita -
Changing the default file name while saving the PDF interactive form
Hi All,
I am generating an Interactive PDF form using webdynpro, but when I try to save the PDF to my local machine the default file name comes as "<b>unknown.pdf</b>" so I have to manually go and enter the name before saving it.
Is there any way to change this default name so that I don't have to manually edit the file name each time when I want to save the generated PDF interactive form?
Please reply soon.
Thanks in advance!I am running into the same issue. Setting the desname parameter (e.g. desname=temp.pdf) doesn't have any effect. Has anyone found a solution to this?
Thanks,
Brian -
Use of pdfSource in Interactive Forms in webdynpro
hi,
please let me know the use of "<b>pdfSource</b>" property while designing the Interactive form in webdynpro. i tried with and without creating the pdfSource property in my application and still there were no errors while deploying it.
Thanks
Regards
Poojith M VHello Poojith M V,
Let me answer your query in a little bit more details. The statement first: An interactive form can be rendered with or without a pdfSource attribute.
But there are significant differences in the way they work and the application is designed. When you have the pdfSource bound to a context attribute of type binary, you do a PDF interchange between the browser and the server. The whole point is that you will always have the latest PDF document (binary) available in that context attribute on the server and you can make use of this binary PDF to do anything your apllication requires (saving it onto the file system, storing it into the database, performing some other operations on the server, email it etc etc etc).
Now, the other side of it, when you do not have the pdfSource bound to a context attribute, only XML exchange happens in between the browser and the server. Well, that means you only have the latest XML data available on the server at any point in time and since you have not bound the pdfSource, you do not have the binary PDF available to you through the context. There are ways you can get it but not through the context and not the latest one. It would still contain the initial data it had in the first request response cycle as you have not updated the PDF after that.
Now, the question is, which one to use ? It completly depends on your application requirements. There are certain functionalities which are not possible without having the latest PDF binary in hand. For example, you want to apply a digital signature on the document, you want to add an attachment on the document etc. But, then in most of the scenarios, the application would just need to exchange data between the client and the server (and vice versa) and do not worry about the binary PDF. That is the ideal case when you need not bind the pdfSource. It will be faster as well.
Hope that clarifies your doubt to certain extent. Go ahead and start with you interactive form application.
Best Regards,
Krish -
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 -
Urgent :how to edit a pdf (interactive form)
Dear Expert,
i have a web dynpro application where in need to increase the length of a table in pdf (interactive form ) how can i do this .Yes, there are a number of things you can do. With JavaScript, you can show/hide fields, set fields to read-only, set the focus to a field (thus bypassing sections or pages), etc. So you can implement a type of skip logic, it's just not as easy to set up as with a form created in FormsCentral. Still, there are techniques you can use to simplify things, particularly using heirarchical field names which makes it easier to control a group a fields.
The following rudimentary sample demonstrates some of what's possible: https://workspaces.acrobat.com/?d=It35dD4zaX5QM--Pv36F-Q
Based on the selected item on the dropdown, the background changes and certain fields are activated. There are only two fields associated with a particular selection, but it could be as many as you want on as many pages as you want. You can implement a multisection form using a single PDF page this way. -
How to create interactive forms using Webdynpro for ABAP
Hi All,
I have worked on Webdynpro for ABAP, and now I want to start creating adobe interactive forms using Webdynpro for ABAP. Please provide me with basic examples to start.
Also Please provide me introduction as how interactive forms are related to ISR senarios.
Thanks in Advance.
PhaniHi Varun!,
Can you please send me also the above said step by step tutorial on [email protected]
and can you please also guide me any configurations to be done on Sneak Preview SP12 before developing the interactive forms.
Thank you in advance.
regards
Ravi -
PDF interactive form font issue
When I export my InDesign doc to a pdf interactive form, some of my fonts get bolded. This does not occur when saving as a pdf print doc. How do I create an interactive pdf without the text becoming bolded?
The bolded text appears show up only on text-only pages. The text on pages with tables and images remain unbolded. Any ideas why this may be happening?
-
Using Interactive forms in Webdynpro Abap
Hi all,
I need to learn using Interactive forms in Webdynpro Abap. Can any please tell me from where to start with and what are the things that needs to be installed extra in the client system.
Also please tell me where i can get the tutorials on it..
Thanks,Hi,
try this.
You can download the Adobe LiveCycle Designer installer from SAP Service
Marketplace:
http://service.sap.com/installations
Entry by Application Group
-> SAP NetWeaver
-> SAP NETWEAVER
-> SAP NETWEAVER 2004S
-> Installation and Upgrade
-> <Choose any OS and DB combination.>
-> Adobe LiveCycle Designer 7.1
Download this file and extract it to your local hard drive.
Regards, Heidi
PS: See <a href="https://service.sap.com/sap/support/notes/962763">note 962763</a>
Message was edited by:
Heidi von Geisau -
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 -
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. -
Add Subform dynamically,in Interactive form in WebDynpro
HI,
I an using NW2004s SP9 and have an Interactive form designed by Adobe Designer 7.1 from within the NetWeaver Developer Studio, with the following hierarchy of elements:
-form1(root)
--Button
--tmpForm (subform - Repeat subform for each data entry )
---ST (Text)
The Webdynpro application displays the Interactive PDF form with Reader Rights enabled by the Adobe Document Services.
On click of button, the following javascript is executed on client side:
var df = _tmpForm.addInstance(1);
df.ST.rawValue = "HI" ;
xfa.host.messageBox( "Instances" + tmpForm.all.length ) ;
On clicking the button, i get the number of the instances of the subform and the size increases on each click, but no element is added "visibly" to the pdf.
But when i try to do the same by saving the XDP file as Dynamic PDF form for Acrobat 8.0, and open it using Adobe Acrobat PRO 8.0, it works fine.
My question is,I s it not possible to add subforms dynamically in PDF's generated by Adobe Document Services with Reader Rights enabled?
Or, is there something that i am missing?
Please guide.
Thanks.
Regards,
SiddharthaHI Dezpo,
Thanks a lot for replying.
I had checked the updated <b>SAP Note 834573</b> -Interactive Forms based on Adobe software: Acrobat/Reader version, which states that:
For SAP Interactive Forms by Adobe, you require the following:
Adobe Acrobat as of Version 7.0.9
Adobe Reader as of Version 7.0.9
<b>Important:</b>
Note that you can only have limited use of Reader 8.0 for forms that, at runtime, are integrated in a WebDynpro application through the xACF technology (Active Components Framework). In this runtime environment, Reader 8.0 currently only supports static interactive forms. If you are using <b>dynamic interactive PDF forms</b>, we recommend that you use <b>Reader 7.0.9.</b> In the application, you can use parameters, or you can call methods, to determine whether you want to create a static or dynamic PDF form.
I tried with the reader versions - 7.0.7, 7.0.9 and 8.01, but it doesn't work for either of them.
Regards,
Siddhartha Jain -
Using WF_EXTSRV for changing PDF Interactive form
Hai,
I'am trying to use transaction WF_EXTSRV to generate a task which can be used within the UWL from the portal. The main purpose of this task is to show an exsisting PDF form in change mode. I allready found some nice information from SDN, but not enough to make it all work. I still have still these questions:
1) How must I setup the required fields within transaction WF_EXTSRV when I want to generate for example this url:
http://abc.abc.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm?SCENARIO=SPEG&MODE=CHANGE&NOTIF_NO=000600000003
2) How must a then setup transaction SWFVISU? Which apllication and package name.
I hope some can help me.
Greetings,
RemcoHi 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 -
Uploading data from Interactive form in Webdynpro ABAP
Hello All,
I am uploading data from an Offline interactive form to an ABAP WebDynpro application. Form is first downloaded, data is filled and now I am trying to upload the form to another WebDynpro application. Form DataSource is mapped to Context node with same data structure. However when I upload the form, form data does not pass automatically to specified context node.
Do I miss any important step in between? I am on SAP NetWeaver 2004s SP10.
Thanks,
Nitesh Shelar.hi,
the data is automatically passed to the context when the "interactive form" UI element is there in the view.
when you just upload the pdf, just like that, it will treat it like a PDF file, not an interactive form....
try using the same interactive form which you used to create the offline form.
i hope this helps,
regards,
-ag.
Maybe you are looking for
-
I have verified with at least 5 other people that all their applications are down and no one can sign in to the creative cloud on their desktop. I am experiencing the exact same thing. It started with Lightroom and then just stopped. I was able to ju
-
Can't reliably create a PDF enabled for commenting in Reader
I've hit a brick wall trying to find out why my Acrobat Pro 7.0.8 is broken. As of yesterday, I cannot reliably create a PDF that is enabled for commenting in Reader. I get an error message: "You do not have permission to write to this file." However
-
Date time in top of Dash board CC&B screen
Hi, Apparently in 2.1, top part of the screen used to show the date/time. Its not coming in 2.3.1. How to include date/time in 2.3.1 screen ? Ideally it's a configuration setting we're missing. Thanks in advance
-
Reset iPhone 4 without using Apple Id
How do I reset iPhone 4 if my dad has forgotten the Apple Id password, the security answers as well as the email used to create the Apple Id? It is fine that the data in the phone is deleted. Urgent! Thanks
-
Process terminated unexpectedly in AIR application
Hi , In my project i used videodisplay to play videos (videos are present in the server and some are in huge size), while the video is playing the application is getting terminated suddenly while in the application termination process