Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to link the gui button to an url?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Manohar2u
Active Contributor
0 Kudos

You can call FM GUI_RUN with command as the url

<u>www.rediff.com</u>.

Regds

Manohar

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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

Manohar2u
Active Contributor
0 Kudos

You can call FM GUI_RUN with command as the url

<u>www.rediff.com</u>.

Regds

Manohar

Former Member
0 Kudos

hi,

Have a look at a similar thread ..

Regards,

Santosh

Former Member
0 Kudos

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