on 09-17-2009 2:36 AM
Hi all - It is possible to make values in a column Hyperlink? I know that regular tables has an attribute (link to) but in ALV I don't see it. If is possible can you explain to me how to?
Thanks!
Jason P-V
Hi,
You can have it in ALV also.
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
DATA lv_value TYPE REF TO cl_salv_wd_config_table.
lv_value = lo_interfacecontroller->get_model(
).
data: lr_col type ref to cl_salv_wd_column,
lr_colH type ref to cl_salv_wd_column_header,
lr_link1 TYPE REF TO cl_salv_wd_uie_link_to_action. "Link to action type
CALL METHOD lv_value->if_salv_wd_column_settings~get_column
EXPORTING
id = 'BEGDA'
receiving
value = lr_col.
CREATE OBJECT lr_link1.
lr_link1->set_text_fieldname( 'BEGDA' ).
CALL METHOD lr_col->set_cell_editor
EXPORTING
value = lr_link1.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
Up to this part I have understood like setting up hyperlink/hotspot, could please suggest how to link standard webdynpro application on ALV column click, CR request number.
example:- I have a column name CR request field i.e. USMD_CREQUEST which has hyperlink/hotspot but as of not it could not lead me anywhere, I have to link this with USMD_EDITION_CREQUEST webdynpro which is a standard SAP MDGF application, and also want to set parameter value from cr request in alv to USMD_EDITION_CREQUEST CR number field.
Please explain with example.
Thanks
Ketan
Hi Lekha,
If we want to display the data in the form of ALV display, we will make use of SALV_WD_TABLE in component usages and we do the remaining stuff. But I never come across the code that u mentioned above. I am not clear about this. can we get the code using code wizard? And where will we write this code? Please guide me Lekha. I am new to this WDAbap.
Regards,
Yugesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Lekha,
Your Code was Very useful......
My requirement is like this when we click on hyper link ...
Exp : in VBAK I made the column VBELN as hyper link ...
When user click on the link (Vbeln) ... For that respected Vbeln value
Item data From Vbap should come ....
So my question is : Is it possible to get the above requirement ? and
Where should we configure the vbap either same component or any new component..
Please reply.............
Hi Lekha,
If we want to display the data in the form of ALV display, we will make use of SALV_WD_TABLE in component usages and we do the remaining stuff. But I never come across the code that u mentioned above. I am not clear about this. can we get the code using code wizard? And where will we write this code? Please guide me Lekha. I am new to this WDAbap.
Regards,
Yugesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Lekha - Thank you, this really worked!
-Jason P-V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.