cancel
Showing results for 
Search instead for 
Did you mean: 

Calling webdynpro application in standard POWL

Former Member
0 Kudos

Hi Experts,

I have a requirement I need to call a webdynpro application from the POWL ALV list when I click on the one of the cell whihc contains the link, it triggers the Feeder_class->handle_action method, Here I am creating the URL ,

COuld you please any one suggested me to use the URL, to call the webdynpro application, When calling he function module to execute the link I am getting the error like ,HTML_ERROR.

Thanks in Advance'

Swamy

Accepted Solutions (0)

Answers (1)

Answers (1)

SandeepJha
Product and Topic Expert
Product and Topic Expert
0 Kudos

Try This:

DATA:

lv_val type <type of parameter>,

lv_url_string TYPE string,

lv_url_c(250) TYPE c.

  • get absolute URL of Application, first try HTTPS

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = <App_Name>

in_protocol = 'HTTPS'

IMPORTING

out_absolute_url = lv_url_string.

  • Try without HTTPS

IF lv_url_string IS INITIAL.

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = <App_Name>

IMPORTING

out_absolute_url = lv_url_string.

ENDIF.

  • append client and logon language to URL

CONCATENATE lv_url_string

'&sap-client=' sy-mandt "#EC NOTEXT

'&sap-language=' sy-langu "#EC NOTEXT

INTO lv_url_c.

  • append parameter to pass variable

CONCATENATE lv_url_c '&abcd=' lv_val INTO lv_url_c.

  • start browser with URL

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

url = lv_url_c

EXCEPTIONS

frontend_not_supported = 1

frontend_error = 2

prog_not_found = 3

no_batch = 4

unspecified_error = 5

OTHERS = 6.

.. SY-SUBRC CHECK..