cancel
Showing results for 
Search instead for 
Did you mean: 

How to display Smartform pdf output on iView of Webdynpro ?

ajay_jangid
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

ajay_jangid
Explorer
0 Kudos

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

former_member206479
Participant
0 Kudos

Hi Ajay,

Yes you can make use of Interactiveform ui element.

Place a Transparent container below the table and do some layout changes like matrix head data etc..

and place an interactiveform ui element and bind pdfsource property with XSTRING Attribute.

Regards

Venkat

Answers (0)