Sending java web dynpro interactive form as pdf attachment from Business WF
Hi,
I have a java web dynpro application with interactive form(online), on send button click i need to send the filled form as an PDF attchment to internet mail id. I am using SO_NEW_DOCUMENT_ATT_SEND_API1 inside workflow to send attachment. My custom RFC which is interacting with WD app is getting the pdf source context attribute(simply i set the import parameter with that attribute and no juggling is done) as import parameter which is of type XTSRING. Once i execute the application i am getting mail with attachment as pdf but i am not able to open the pdf. It is of just 1 KB size. It seems my pdf source context attribute is not sending data. Can some one suggest how can i solve this.DO i need to convert the data to pdf format before sending or any otgher thing i need to do.
Regards
Ravindra
I did that before posting the question itself (enables = false), it doesn't work. It just disable the extra features like digital signature and stuff. Interesting thing is all our HCM forms developed for HR actions works fine with out any issues. Why the interactive form developed with WDJ is not working and it requires credentials??. The same form works fine if I deploy the application directly into server but it throws the error if I check in through NWDI ..
If you look at the server location it has the file but it throws the error:
Caused by: com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: IOException occured while creating template stream from the TemplateSource : .\temp\webdynpro\public\sap.com\ess~ben\webdynpro\Components\com.sap.xss.hr.ben.reviewtable.VcBenefitsReviewTable\ReviewTableView_InteractiveForm_Review.xdp (The system cannot find the file specified)
Please advise.
Thank You,
Hari.
Similar Messages
-
BSP - Web Dynpro - Interactive Forms by Adobe - Flex
Hi,
I am a student SAP from Belgium.
I am currenty developping an application and I am using BSP's, Web Dynpro's, Interactive Forms and Flex.
I have a good idea regarding to what the possibilities are of each User Interface, but I would like your opinions:
What are the main advantages/disadvantages of each of the named User Interfaces?
So what's good/not good about BSP, Web Dynpro, Interactive Forms, Flex?
What's the easiest to code, to make a layout,....
I know, according to the sitiuation, you can choose which UI to use, but I would really like to know what your opinions are about coding, easy-to-use, speed, logic,... (PRO/CONTRA'S)
Thanks a lot for your input, it would really help me!
Greetings,Hi Mahamed,
I got your problem. You have not done anything wrong.
It is WebAS version which is not supported for this functionality.
But there is solution to this problem
Please refer to the SAP Note number - 1055738.
I think you will get the answer and the scenario described there will match your requirement.
This is a know issues with WebDypro ABAP but this works fine for Java Web Dynpro.
I have also tried for 2 months but finally came to know about it.
Regards
Satya -
How to import an xdp-File to Web Dynpro Interactive Forms
Hi Experts
I am working with Web Dynpro and Interactive Form. With Adobe Lifecycle Designer I do an import of an MS Word-Document and convert it to the XDP-Format. How do I import this XDP-File into an Interactive Form inside Web Dynpro? The form shouldn't be created with Web Dynpro. So far, what I did was creating an empty form from within Web Dynpro and overwriting it with my xdp-File. But this doesn't seem to be a secure and robust solution. Do you have any suggestions?
Thanks for helping
Kind regards
Bettina HeppHi Bettina,
I can understand what problem you are facing.
Please follow these steps and let me know if it has solved your problem or not
1. Open the XDP file in Adobe Life Cycle Designer and go to File Menu ->Save As ->
Save the file as PDF.
2. NWDS Webdynpro Edit the interactive form and now you can import the same PDF file.
This will solve your problem and let me know if you are facing any other issue.
Cheers
Satya -
ABAP Web dynpro Interactive forms ADOBE
Hi,
I want to create Adobe form for quotation.
There are item groups and within item group there are sub items.
After displaying all sub items for a group i want to show Total amount.
This is repeated for every group.
Can anyone help me out with this.
Thanks and regards,
Nikita.http://www.sdn.sap.com/irj/scn/interactiveforms-elearning
the above link helps you out witht he best e learning sessions
http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/solution_in_detail_interactive_forms.pdf
this also is a very helpful document
If you have any specific queries please feel free to shoot
Cheers
Senon -
PdfSource content of interactive form in Java Web Dynpro
Hi All,
I am using Java web dynpro with interactive form. When I display the contents of the pdfSource of the interactive form into a text file, I see the following which is not a true binary content. Could u please let me know why the content is represented in the form other than binary?
%PDF-1.6
%âãÏÓ
153 0 obj<</First 973/Length 1717/Filter/FlateDecode/N 120/Type/ObjStm>>stream
xÚ´XÉ 7 ý C"î ` p¼ lÇÉ) ¶DË%õ Õxþ>¯¤ä´/9±EV½*¾zÜd gyÍ Â0Á0
0000000153 65535 f
0000000154 65535 f
trailer
<</Size 156/Root 1 0 R>>
xref
0 0
trailer
<</Size 156/Prev 32208/XRefStm 2120/Root 1 0 R/Info 3 0 R/ID[<991012CC1DD111B20A00FFBFDB48FD64><991077C51DD111B20A00060100000680>]>>
startxref
35372
%%EOF
Thanks & Regards,
JyotiHi Naidu
I have written the contents of the pdfsource to a file in the server using the below code:
byte b[] = wdContext.currentContextElement().getPdfSource();
File file = new File("C:
Severance.pdf");
long length = file.length();
FileOutputStream os;
try {
os = new FileOutputStream(file);
os.write(b);
os.close();
catch (Exception e)
// TODO Auto-generated catch block
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Some Exception "+e);
e.printStackTrace();
And i have added a File Download element in the Application and have implemented the below piece of code for it:
IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("ctx_downloadpdfsrc");
ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
binaryType.setMimeType(WDWebResourceType.TXT);
String fileName ="C:
Severance.pdf";
// path to the source file
/* converts the binary file to a byte array and moves it to the text element */
try
File file = new File(fileName);
FileInputStream in = new FileInputStream(file);
ByteArrayOutputStream out = new ByteArrayOutputStream();
int length;
byte[] part = new byte [10 * 1024];
while ((length = in.read(part)) != -1)
out.write(part, 0, length);
in.close();
wdContext.currentContextElement().setCtx_downloadpdfsrc(out.toByteArray());
catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess(" !!!!!!!!!!!!! "+e);
throw new WDRuntimeException(e);
Other than this, if we simply write this line in the code it will display the entire content of the pdfSource on the screen when deployed:
wdComponentAPI.getMessageManager().reportSuccess(wdContext.currentContextElement().getPdfSource().toString());
Regards,
Jyoti -
How to create table in interactive form via Java Web Dynpro
Hi,
How to create table in interactive form via Java Web Dynpro ?
Any online tutorial / example ?
Thank you.
Regards,
EricHi Eric,
Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
Hope it will solve your query.
Regards,
Vaibhav Tiwari. -
Connecting to R/3 System through Java Web Dynpro forms.
Hi,
I have a requirement in which I have to send data to R/3
from Java Web Dynpro screens.
I will design the Java Web Dynpro screens and write a RFC Model.
I will write a RFC in se37 which will connect to the RFC Model.
Before creating the RFC in se37, I will create ztables in se11.
I will write a ABAP Report to see that all data enters the ztables.
I need some guidance with regard to this.
Do, the RFC Model have the access of the ECC(R/3) System.
What are tasks to be told the Basis guy so, that RFC being called from through Java Web Dynpro?
Please provide me some documents with regards to this scenario.
Regards
Neha SinghHi Neha,
The steps you provided is clear enough to connect to a R/3 system through the WD forms.
On creating the model you need to give two inputs such as
logical system name for model instance
logical system name for RFC metadata
there will be 2 default values, also you can create your own JCOs in the <servername>:<port>/devinf of the server or u can ask your basis team also.
Before creating the JCO , the SLD (System Landscape Directory) needs to be configures, that your basis team will know.
other than that once you create the functional module in se37 make it RFC enabled , and once you import the RFC model , you can give your ECC system user name and password and search for RFC you have created from the list of RFC.
Regards,
Sam Charles J. -
How to combine two or more adobe forms in Java web dynpro
Hi All,
I have a scenario where I have few screens each - a separate adobe form. For e.g. One adobe form for item creation, one fore details, one for planning. I need to combine all this into one and save a copy of the PDF.
Save PDF option is present in the adobe options but it saves only the current form. I want to combine few forms and save the whole thing into 1 PDF document. Is there anyway we can do this?
I am using web dypro java for Adobe forms on NWDS 7.0
Adobe Live cycle designer - 7.1
Adobe Reader - 8.1
SAP NW SP 12
PLease help!
Thank you,
VasuHi Amit,
Thanks for the response but my requirement is different.
I have to combine the contents of three PDFs (different adobe forms in different views in one web dynpro component) into one PDF ( a separate Adobe Form in different view in the same web dypro component).
I would be glad to know if you have a solution for such scenario. I am working on this since 4 days with no solution yet.
Thank you,
Vasu -
Java Web DynPro and Universal Worklist Interaction
HI ESS/MSS Gurus,
Good day!
I am a workflow consultant who is working on an ESS/MSS project. I have already completed and tested (successfully) all of the workflows needed in the backend using the PTARQ and PTCOR applications. We are also successful in showing the work items in the universal worklist.
Now the question is, whenever we click on the work item, we encounter an error in the portal. Now, I need to determine the following:
1. How are we going to integrate the ESS/MSS portal with the execution of the work item in the universal worklist?
2. Do we need to develop custom Java web dynpro applications for the approval process of the leaves, or is there a standard offering from the ESS/MSS packages?
Your inputs are very much welcome.
Regards,Hi Gurus,
Here is what we have done so far:
1. Implemented the details as indicated in note 779075 and changed the parameters defined in SWFVISU
2. Upon re-registering and clearing the cache from the UWL, we tested if the task will call the standard application for leave request approval. It returns the error Internal error. :
Item is null for action acknowledge, and for item type uwl
It seems that the xmls files are not being generated or read successfully. although when we check uwl.webflow.SAP_ECC_HumanResources, there is an updated xml file for the task
Questions are:
1. What checks do we need to execute between the back end, UWL and portal?
2. Whenever changes in SWFVISU are made, what items do we need to check to ensure that the changes are reflected in the UWL? I have read that SWFVISU helps the user do away with the tedious xml creation. How can we verify that the changes are implemented/updated in the xmls generated?
3. Any other items we need to look into?
Regards, -
How to get the context data using java script in interactive forms
Hi All,
How to get the context data using java script in interactive forms by adobe, am using web dynpro java
thanks.Hi venkat,
Please Refer this link.
Populating one Drop-Down list from the selection of another Drop-down list
Thanks,
Raju. -
What is the right way to display a table in Java web dynpro using a node.
Hi experts,
I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro. In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
Thanks and Regards.
Vaibhav Tiwari.Please refer to my post.. you will get the answer
Dynamic Table - same data repeating in all rows
Special care should be taken in designing the context for table attribute.
The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
Now coming to final solution :
For designing a table in adobe interactive form you have consider following
You have to design the view context upto three level, I am explaining you the properties
PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
Then under TableData value node, you have to put all your table attributes.
This Value Node name can be anything but hierarchy should be same as I have mentioned above.
Please try out these steps and get back to me if you have any doubt. -
Problem executing an Online Form in Web DynPro(Adobe Form)
Gurus,
I am trying to create an Online Form in Web DynPro(Adobe Form), i could successfully create the form and deploy it.
But when i executed, i am getting the below error.
<<
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation.
Request start time: Thu May 18 16:31:04 CEST 2006
com.adobe.ProcessingError: Error while retrieving a password for credential: ReaderRights:
java.lang.Exception: Could not retrieve a password for credential: ReaderRights
at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:420)
>>
Any Help would highly be appreciated
Regards,
Arvind KugasiaHello Markus,
let's say I have two systems. One - X - installed J2EE+ABAP and configured WD pdfobject WS proxy to point to second system - Y - with correctly configured ADS (inculding Redaer Rights Credential). Do I have to setup this Reader Rights Credentila also on system X ?? Do I have to setup something else on system X to work with Interactive forms in WD Java on system X ?
PS: Our ABAP calls from X to ADS on Y are working okay, but I didn't try WD ABAP as basis is too low.
Thanx, Richard.
Message was edited by:
Richard Calaba -
Comparision matrix of Webdynpro Java and Adobe Interactive form
Hi Experts,
In our project we have to choose the GUI between Webdynpro Java and Adobe Interactive forms. Can anyone help me out with strong comparision parameter's in order to select the right technology.
Thank you in advance.Hi ,
Depends on your project requirement : if you project is simple and want to use less UI controls then use Adobe Interactive Forms (AIF).
But In your project needs large number of UI controls and to show huge amount of data then best option is Web Dynpro Java.
Web Dynpro provides wide varieties of UI controls for designing your web application . Adobe Interactive Forms have limited controls .
Web Dynpro take care of your Client side eventing which is not possible in AIF . AIF Developers needs to know Adobe scripting too.
If your Client data is huge AIF take so much of time to render your content and also this depends on your reader version installed on the end user too . Web Dynpro Java is Client neutral & it won't take much time to render the content.
Use AIF to show/process Business data in any Web application. ideally it is not suited for complete GUI of your project .
Regards,
Rakesh Kumar -
Hi experts,
Can anyone provide me Java web dynpro curriculum.
Regards,
Muhammad Imtiyazhi
check the curriulum for java webdynpro
/people/mark.yolton/blog/2009/02/25/professional-skills-certification--your-golden-ticket-to-project-career-success
/people/marcel.salein/blog/2008/04/26/sap-education-program-and-a-visual-composer-certification-at-teched14608
/people/community.user/blog/2006/09/01/web-dynpro-abap--training-is-now-available
/people/r.eijpe/blog/2008/03/07/sap-interactive-forms--complete-training-curriculum
http://wiki.sdn.sap.com/wiki/display/EP/Main+Page
http://wiki.sdn.sap.com/wiki/display/profile/johann+Marty
Thanks -
How to consume the Abap web service in Java web-dynpro
Hi Everyone,
I want to consume ABAP web service in java web dynpro.
so when i tried to create model in java web-dynpro, it gave me an error message saying "Invalid WSDL or WSDL not found".
i think this error message is because, to access the WSDL of abap web-service, we need username and password, but the dialog box in java web-dynpro is not programmed to take username and password from us and send it to the server to get the WSDL.
i came to this conclusion because i was able to successfully test my abap web-service in java portal. the java portal asked me the username and password to open the WSDL.
So, please help me to consume the abap web service in java web-dynpro.
Thanks in advance
Regards
VikasHi Vikas ,
while creating a model in web-dynpro try to use the "import web service model" option and if you are using local server choose the local server option so that you can get the available web services which are in server, select one among them and continue you process.I think this is the some what easy way .
If you want use the URL for wsdl better to once test the available service in server and copy that WSDL URL and paste over WSDL textbox.
I think this is pretty help ful to you
Best Regards
Srikatnh
Maybe you are looking for
-
How to make hard reset on laserjet pro mfp m125rnw
Hi, All I need some help. Cause of my ugly hands I install chineese language on my printer How can i make the hard reset to reset the language settings? Thanks This question was solved. View Solution.
-
Hello, I would like to use the alternative data for the vendors. But, I canu2019t manage information such as planning cycle at the vendor level. The information comes from the material and not from the alternative data of the vendor. For example, the
-
How set maximum character length in Fxml
Hey can any body help me set Maximum character length in Fxml. thanx in advance
-
Visual voicemail won't work after recent update
I updated to ios 7.3 and visual voicemail is now unavailable?
-
MY AUTHENTICATION EMAIL ID IS NO LONGER EXIST. SO HOW DO I RESET MY APPLE ID?
Hi My friend forgotten the apple id, password, in order to reset the password he needs the email authentication,but unfortunately the email id is no longer exist. so is there any way we can reset the iphone apple id? someone please help.