on 06-01-2008 5:01 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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 ).
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satya
Call the url of the target Web dynpro Application from you link field.
Regards
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.