cancel
Showing results for 
Search instead for 
Did you mean: 

Link To call Another WD Application.

Former Member
0 Kudos

Hi Experts,

I want to call a different WD Application from my existing application . Actually i am displaying some data with table control and i ve a link with a field . So my requirement is like when i click the link it should call a different WD Application .

So how can i do that .Please help me .

Regards,

Satya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

you can use this code to generate the url.

DATA: lt_parameters TYPE tihttpnvp,

ls_parameters TYPE ihttpnvp,

lv_url_string TYPE string.

DATA lo_window_manager TYPE REF TO if_wd_window_manager.

DATA lo_api_component TYPE REF TO if_wd_component.

DATA lo_window TYPE REF TO if_wd_window.

DATA lo_controller TYPE REF TO if_wd_controller.

ls_parameters-name = 'WDCONFIGURATIONID'.

ls_parameters-value = 'Z_A_OVERVIEW_UI'.

APPEND ls_parameters TO lt_parameters.

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = 'Z_A_OVERVIEW_UI'

in_parameters = lt_parameters

IMPORTING

out_local_url = lv_url_string.

lo_window = lo_window_manager->create_external_window(

url = lv_url_string

title = 'Profile'

modal = abap_false

has_menubar = abap_true

is_resizable = abap_true

has_scrollbars = abap_true

has_statusbar = abap_true

has_toolbar = abap_true

has_location = abap_true ).

lo_window->open( ).

iam passing the configuration id and application name to create an url.

regards

chythanya

Former Member
0 Kudos

Hi chythanya ,

Thanks for the replay but when i am implementing your code , then it is giving Dump. I change the Apllication name and Configuration ID as SAP.

I check it some URL is generating but not the exactly what i required to run the other WDApplication.

What value i ve to pass for this

ls_parameters-value = 'Z_A_OVERVIEW_UI'.

Thanks,

Satya

former_member184112
Active Contributor
0 Kudos

Hi,

Check this blog ..Hope this help you,

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3982. [original link is broken] [original link is broken] [original link is broken]

Thanks and Regards,

Prabhakar Dharmala

Former Member
0 Kudos

Hi,

Try avoiding the application parameters when composing the URL? BTW, Do you have any APPLICATION PARAMETERS ?

I think it will not dump if you dont give any application parameters in the URL Creation.

Regards

Raja Sekhar

Former Member
0 Kudos

Hi Raja,

Thanks for the replay , but i m not passing any parameter to the URL.Here is the coding.

DATA : lr_linky TYPE REF TO CL_SALV_WD_UIE_LINK_TO_URL.

lr_column = l_value->if_salv_wd_column_settings~get_column( 'SALE_ORDER' ).

CREATE OBJECT lr_linky.

lr_linky->set_text_fieldname( 'Sales Order #' ).

CALL METHOD lr_linky->SET_REFERENCE

EXPORTING

VALUE = 'http://AUSR3DEVDC02.amd.com:8000/sap/bc/webdynpro/sap/zecc_wd_so_qry' .

lr_column->set_cell_editor( lr_linky ).

Thanks,

Satya

Former Member
0 Kudos

Hi satya

Try this coding

DATA : lr_linky TYPE REF TO CL_SALV_WD_UIE_LINK_TO_URL.

lr_column = l_value->if_salv_wd_column_settings~get_column( 'SALE_ORDER' ).

CREATE OBJECT lr_linky.

lr_linky->set_text_fieldname( 'SALE_ORDER' ).

CALL METHOD lr_linky->SET_REFERENCE

EXPORTING

VALUE = 'http://AUSR3DEVDC02.amd.com:8000/sap/bc/webdynpro/sap/zecc_wd_so_qry' .

lr_column->set_cell_editor( lr_linky ).

Former Member
0 Kudos

Hi Tamilselvan K ,

I have tried out for that also but the result was the same one 'The Dump'.

Can anybody suggest me, what to do.

Satya

Former Member
0 Kudos

Hi Friends,

Still waiting for yor help.

Satya

Former Member
0 Kudos

Hi Tamilselvan K ,

My problem is solved , it was my mistake which goes to dump. I was passing the column name instead of field name .

Thanks a lot .

Satya

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you want to display in the same view, instead of opening in a new window, do teh following:

Declare the component in the used webdynpro components

Create a view with the element viewUiContainer.

embed your webdynpeo window in this view in the main window.

maintain the outbound plugs

write code to create component dynamically in your linktoaction

Shruthi

Former Member
0 Kudos

Hi Satya

Call the url of the target Web dynpro Application from you link field.

Regards

Naresh

Former Member
0 Kudos

Hi Naresh,

Thanks ,but i dont know how to call the URL. Can you please send me the code for call the URL.

And can anybody knows how to call another WD application from the ALV table also. Like ve put a link in one of the field of the ALV output so now want to call from the ALV table link.

Regards,

Satya

Edited by: satya pujahari on Jun 2, 2008 4:49 AM

Former Member
0 Kudos

Hi satya

Take the url name of the application which you want to call from an alv,lets assume the first column of your alv is carrid

If you add the following code in the wddonit method the url will be called on clicking the carrid values

DATA: lr_column TYPE REF TO cl_salv_wd_column.
DATA : lr_linky TYPE REF TO CL_SALV_WD_UIE_LINK_TO_URL.

lr_column = l_value->if_salv_wd_column_settings~get_column( 'CARRID' ).

CREATE OBJECT lr_linky.
lr_linky->set_text_fieldname( 'CARRID' ).
CALL METHOD lr_linky->SET_REFERENCE
  EXPORTING
    VALUE  = 'url' .
lr_column->set_cell_editor( lr_linky ).

Hope this helps U

Thanks and regards

Tamilselvan.K

Edited by: Tamilselvan K on Jun 10, 2008 9:15 AM

Former Member
0 Kudos

Hi Tamilselvan.K,

Thanks for the helpful answer . But i am getting dump. The dump is Could not find attribute Sales Order # . I am tying to navigate from the Sales Order . I have put your code and check it ,all the data like the column name,URL are coming correctly.But finally it throwing exception .I checked with the exception raise exception type cx_wd_context exporting textid = cx_wd_context=>attribute_not_found attribute_name = name.

endif.

I dont why it is thowing the exception.

Please let me know if you have any idea.

Thanks,

Satya