09-25-2006 11:44 AM
hi,guy ,
I have a requirement that how to link the gui button to an url ? that is ,when someone click the gui button(for example: display button) in sap gui,the system popup a portal window or a pcui window .
can anybody give me same detail advice or document ?
thanks in advance .
Jialiang.Qiu
09-25-2006 12:19 PM
You can call FM GUI_RUN with command as the url
<u>www.rediff.com</u>.
Regds
Manohar
09-25-2006 12:12 PM
Check this it may help u.
data: url type string.
url = 'http://www.sap.com'.
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'.
call method cl_gui_frontend_services=>execute
exporting
document = url.
when 'BACK'.
leave program.
endcase.
endmodule.
Regards
09-25-2006 5:27 PM
Thanks .
how can i use the variable in the url string .because wehn we call a portal application ,we shall pass some parameters to go to certain business application. for example: i want to go to the business partner 21 ,now maybe i shall pass the client id , bp id ,version and
so on , isn't it ?
whether i shall combine some string include the variable into one string to form a portal url ?can someone give me detail explanation ? thanks very much .
Jialiang.Qiu
09-25-2006 12:19 PM
You can call FM GUI_RUN with command as the url
<u>www.rediff.com</u>.
Regds
Manohar
09-25-2006 12:24 PM
09-25-2006 6:01 PM
Hi,
You can Pass the URL which you want to open from the SAP, you can not pass the variables to the URl, if you want to see some perticular URL, just give the same after opening the URL only you can pass or fill the fields ..
See the Below link for a Similar Program
http://searchsap.techtarget.com/tip/0,289483,sid21_gci997042,00.html
the Below link will show about the Parameters which we will pass ...
http://help.sap.com/saphelp_erp2005/helpdata/en/7b/fb57412df8091de10000000a155106/content.htm
Regards
Sudheer