on 04-05-2013 10:47 AM
Hi,
Scenario :
In a Webdynpro application, when a person selects a row in the Table, a smartform should display below the TABLE in the PDF format. (Neither in a New Window (as pop up) nor on the Same Window, but below the table - say in a iView Container)
What I have done till now :
On the FIRST_VIEW, I have inserted a VIEW_CONTAINER_UIELEMENT named PDF_VIEW. On click of a record in Table, I have navigated to PDF_VIEW and have done the following to generate PDF from Smartform:
1. Pick the data from the selected row using Context.
2. Set Controll Parameters and call Smartform FM to get Data in OTF format.
3. Call FM "CONVERT_OTF_2_PDF" to convert OTF data to PDF format.
Questions:
1. Is there any way by which I can display this PDF data (type xstring) on the iView PDF_VIEW ?
2. Is it possible to use INTERACTIVEFORM UI Element in this scenario, without compulsion of setting it's property templateSource ?
Regards,
Ajay
Hi Ajay,
You can display smartforms in WDA by using CONVERT_OTF.
Please go through this..
http://scn.sap.com/thread/1893663
http://scn.sap.com/docs/DOC-25759
http://scn.sap.com/docs/DOC-32687
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krish,
Well, thnx for replying to the post. But I have already done this much.
Method cl_wd_runtime_services=>attach_file_to_response( ) gives a pop up, and I don't want that. If I make the parameter I_IN_NEW_WINDOW = ' ', it will open the PDF on same window, but I don't want that either.
My requirement is that Smartform should be displayed as PDF file, below the table in a separate container on the same view.
Cheers,
Ajay Jangid
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.