Skip to Content
0
Oct 19, 2011 at 01:36 PM

Open a frontend / client application from BSP application

44 Views

Hi All,

On click of a button I need to open an application in my desktop/front end/presentation

Now, I have a method that work fine in GUI, but it wont work from Web application, & give not supported exception.

The code look like as follows,

method do_open_xxx_app.

constants c_quote type c value '"'.

constants c_software_key type string value 'SOFTWARE\KMD\KMD.AQ.RunningNetApps'.

constants c_software_key_uuid type string value '12 AQ90000010 "SAG VEDLIGEHOLDNY D LEV_UUID'.

data:

reg_value type string,

lv_param type string.

check gv_case_guid is not initial.

try.

cl_gui_frontend_services=>registry_get_value(

exporting root = cl_gui_frontend_services=>hkey_local_machine

key = c_software_key "#EC NOTEXT

value = 'path'

no_flush = abap_false

importing

reg_value = reg_value

exceptions get_regvalue_failed = 1

cntl_error = 2

error_no_gui = 3

not_supported_by_gui = 4

others = 5 ).

if sy-subrc <> 0.

do_write_message( iv_message_type = 'E' iv_message_number = '002' ).

  • return.

endif.

concatenate c_software_key_uuid gv_case_guid into lv_param separated by space.

concatenate lv_param c_quote into lv_param.

call method cl_gui_frontend_services=>execute

exporting

application = reg_value

parameter = lv_param.

catch cx_root.

return.

endtry.

endmethod.

Now, can you help me finding corresponding code to execute from a Web application???

Thanks, Sudeep..