on 01-14-2010 11:39 AM
Hello @all,
i want to convert a smartform to pdf and show the pdf in an second window or in a popup. When i click on a button in the application, a new window with the pdf should be open. Is this possible to show the pdf in a second window or in a popup. Can anybody help me?
Yes, It is possible to convert smartform to pdf and display it the in another popup.
Please follow the link for same:
Regards,
Saket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you need to create one window and display pdf in it.
Try following code:
1) Create one Window
2) Create the view to be displayed in popup (add pdf in this view)
3) Embed the view created in above step in the window created in first step.
4) Create following attribute in the Component controller:
I) Z_WINDOW type ref to IF_WD_WINDOW
Mark the attribute as u2018Publicu2019.
Code to open Window in Popup
DATA: api_component TYPE REF TO if_wd_component,
l_window_manager TYPE REF TO if_wd_window_manager.
api_component = wd_comp_controller->wd_get_api( ).
l_window_manager = api_component->get_window_manager( ).
Create window and pass parameters
CALL METHOD l_window_manager->create_window
EXPORTING
modal = abap_true
window_name = 'ZC_SO_ALV'
title = 'Test Popup'
close_button = abap_true
RECEIVING
window = wd_comp_controller->z_window.
wd_comp_controller->z_window->open( ).
Regards,
Saket.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.