Skip to Content
0
Former Member
Feb 20, 2014 at 01:51 PM

Open/Use a report in web dynpro app via html ui to download an PDF from optical archive

66 Views

Hello,

I want to use a report programm in a web dynpro app. I already can use the report and save the file in my local, therefor i open a new html ui window in my web dynpro with the fallowing code:

**********************************************************************************************

concatenate 'https://' sy-sysid '.wdf.sap.corp' into lv_url.
concatenate lv_url '/sap/bc/gui/sap/its/webgui' into lv_url.
concatenate lv_url '?~transaction=ZDH_DOWNLOAD_OBJ' into lv_url. *ZDH_DOWNLOAD_OBJ is the report name

lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).

condense lv_url no-gaps.

lo_window = lo_window_manager->create_external_window(
url = lv_url
modal = abap_true
).

lo_window->open( ).


************************************************************************************************

But when i test this it looks very unsightly! Do you know a function or something, within the user doesn't see a windows like the html ui working, but just recognize that the download/usage of the report was succesfull. I heard about SUBMIT can i use this for my problem and how can I use this?

Thanks for all answers and advice,

Daniel