2006 Sep 08 1:05 AM
2006 Sep 08 1:25 AM
In a dynpro, you would setup a output only field in the screen which would respond to double click(check the check box), you can then use the EXECUTE method of the class CL_GUI_FRONTEND_SERVICES to fire IE with your url. That's it.
Regards,
Rich Heilman
2006 Sep 08 1:25 AM
2006 Sep 08 1:28 AM
to expand on Rich's suggestion.. this is how you call the URL on double click..
call method cl_gui_frontend_services=>execute
exporting
document = 'http://www.sap.com'
exceptions
others = 1.~Suresh
P.S. Pl ignore my post as Rich has given the complete solution.
Message was edited by: Suresh Datti
Message was edited by: Suresh Datti
2006 Sep 08 1:32 AM
Check this sample program. Here i have created an input field called URL on the screen and made it output only. I also checked the "Responds to double click" checkbox. I create the gui status 100 and assign the fcode "PICK" to the F2 function. Now when you click on that field on the screen it will fire the PAI with the sy-ucomm = 'PICK', there you can fire the method call.
report zrich_0003.
<b>data: url type string.
url = 'http://www.sap.com'.</b>
call screen 100.
*&---------------------------------------------------------------------*
*& Module STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module status_0100 output.
set pf-status '0100'.
* SET TITLEBAR 'xxx'.
endmodule. " STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0100 INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module user_command_0100 input.
case sy-ucomm.
when 'PICK'.
<b> call method cl_gui_frontend_services=>execute
exporting
document = url.</b>
when 'BACK'.
leave program.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
Regards,
Rich Heilman
2006 Sep 08 1:33 AM
2006 Sep 08 1:37 AM
2006 Sep 08 1:41 AM
Yes Rich I will be there all 5 days.. hope I get a chance to meet you during your Next Gen session..
~Suresh
2006 Sep 08 2:16 AM
2006 Sep 08 4:17 PM
hallo suresh,
thanx for your answer,but the url on screen look like <u>sdn.sap.com</u>.by clicking once it should open the site.
is it possible?
2006 Sep 08 4:20 PM
2006 Sep 08 1:31 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |