2008 Aug 19 4:24 AM
I have a requirement where I want to display a list of reports on a WebDynpro screen. The user can then select the desired report and submit it. The report should first display the report selection screen and then display the report.
A number of different threads have stated that you cannot submit a report from within WebDynpro. There have been some solutions and Thomas Jung has commented that this can also be performed by calling the 'Exit Plug and navigate to the ITS/WebGUI'.
What do I need to do to submit the report via the ITS? I have developed the WebDynpro and I have retrieved the program name that I want to submit, what are the next steps?
Thanks
Darryl
I have a requirement where I want to display a list of reports on a WebDynpro screen. The user can then select the desired report and submit it. The report should first display the report selection screen and then display the report.
A number of different threads have stated that you cannot submit a report from within WebDynpro. There have been some solutions and Thomas Jung has commented that this can also be performed by calling the 'Exit Plug and navigate to the ITS/WebGUI'.
What do I need to do to submit the report via the ITS? I have developed the WebDynpro and I have retrieved the program name that I want to submit, what are the next steps?
Thanks
Darryl
2008 Nov 14 4:17 AM
Hi,
If you are using a portal you can always use the navigation api included from the portal.
http://help.sap.com/saphelp_nw04/helpdata/en/43/d1233b4c1d0a85e10000000a1553f6/frameset.htm
I have done something similar in the past, but it doenst come to my mind the steps I took, try looking into the navigation api from webdynpro. I vaguely remember using a call to navigate_to. Ill try to remember the details and ill get back to you.
Regards
2008 Nov 14 7:04 AM
Hi Darryl,
Regarding ITS ,....I can suggest you how can you incoprate the your requirment.
As you maintianed that you build a Webdynpro application...........Now you have two ways.
First you can build a Tcode for your Webdynpro application and then create a ITS based srvice vis SICF for the same with parameter defined for WEBGUI supported..............
It's will generate the templates and a URL for Web.
Second things is that you can build a R/3 Program for report display and make a Tcode for the same and create a ITS based service for the same via SICF.
For more reply to me
These things come not under the ABAP part so better you should enter those type thresd to other.
Regards
Ricky
2008 Nov 20 10:01 PM
Thankyou for your advice.
I have discovered another way to execute the transaction without having to create SICF entries.
The following code works perfectly in the Event_handler method of the Component Controller:
method event_handler .
type-pools: ihttp.
data: id type string,
display type string,
l_tcode type zrpt_submission-tcode,
urlparamvalue type string,
lr_window type ref to if_wd_window,
lr_wm type ref to if_wd_window_manager,
lr_api type ref to if_wd_component.
field-symbols: <l_value> type any.
Retrieve the transaction code that was selected
if r_param->value is bound.
assign r_param->value->* to <l_value>.
else.
assign space to <l_value>.
endif.
l_tcode = <l_value>.
if sy-sysid = 'PRD'.
urlparamvalue = 'http://??????.au:8000/sap/bc/gui/sap/its/webgui/'.
elseif sy-sysid = 'QAS'.
urlparamvalue = 'http://??????.au:8000/sap/bc/gui/sap/its/webgui/'.
else.
urlparamvalue = 'http://??????.au:8000/sap/bc/gui/sap/its/webgui/'.
endif.
concatenate urlparamvalue '!?~TRANSACTION=' l_tcode
into urlparamvalue.
*handle to wd runtime
lr_api = wd_this->wd_get_api( ).
*from wd runtime, get the window manager handle
lr_wm = lr_api->get_window_manager( ).
lr_window = lr_wm->create_external_window(
url = urlparamvalue
title = 'Report'
).
lr_window->open( ).
endmethod.
Just replace ???????? with the url of your ITS.