on 03-22-2012 10:17 AM
Hallo ,
I have a report where I list fields from table DRAD . ( Document Management )
In a column called DOKNR, I want to have an url with link to SAP std Web Dynpro: /PLMU/WDA_DIR_OIF ..to show the Document.
In my method: IF_FPM_GUIBB_LIST~GET_DEFINITION I have coded following:
DATA: wa_field TYPE fpmgb_s_listfield_descr.
CLEAR wa_field.
* Technical field
wa_field-name = 'DOKNR'.
wa_field-DEFAULT_DISPLAY_TYPE = 'LU'.
wa_field-LINK_REF = 'TEC_FIELD_URL'.
APPEND wa_field TO et_field_description .
I add the url to the field 'TEC_FIELD_URL' in my table, but the DOKNR column is not displayed as a "hotspot" .
What is wrong ?
Regards Rolf
Something like this:
in get_data
if iv_eventid->mv_event_id = 'FPM_GUIBB_LIST_CELL_ACTION' and iv_raised_by_own_ui = abap_true.
data para type ref to if_fpm_parameter.
data ex type c length 30.
field-symbols <row> type fpmgb_s_fieldusage.
para = iv_eventid->mo_event_data.
para->get_value( exporting iv_key = 'FIELD_NAME' importing ev_value = ex ).
if ex = 'FieldNAME'.
"do stuff
endif.
endif.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I changed the field in the config from "Text" to "Link to Action", and than I got a "Hotspot".
BUT:
How can I get the value that was "clicked", and how can I call Web Dynpro:
/PLMU/WDA_DIR_OIF
from my method IF_FPM_GUIBB_LIST~PROCESS_EVENT ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rolf,
Where is your code,is that in R/3 report,i dont think so,inorder to give link to action in Webdypro folloew the below piece of code,
DATA :lr_link_action TYPE REF TO cl_salv_wd_uie_link_to_action.
CREATE OBJECT lr_link_action.
lr_link_action->set_text_fieldname( 'DOKNR' ).
ls_column-r_column->set_cell_editor( lr_link_action ).
when you use this code on alv field with hotspot will come,write you code in the method ON_CELL_ACTION ,pass the URL to Navigate method
Regards,
Lavanya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.