on 03-17-2015 11:09 PM
Hi experts,
This is probably a simple question for you guys but I become crazy so I prefer asking. I did it once by chance and it was simple but can't remember how I achieved this.
I have an application that is displaying an ALV list, with standard functions in the toolbar. Far right are the standard "Filter" and "Settings" functions. I'd like to simply have the icons instead the text for those functions.
I thought it was a simple application parameter but cannot find which one to use. Anything to do with W3C, W2C, Wxx rendering type or whatsoever?
Please help as this is making me sick.
Best regards,
CC
Hi CC,
Are both snapshots from same system? I suspect, your system version is on lower side.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rama,
Nope, I think they are of different versions, actually. This is a point I have in mind. I checked yesterday in most of the standard ALV classes and interfaces and regarding the standard functions, there is obviously no way to set the image source property for SALV_WD_FILTER or SALV_WD_SETTINGS in the version I'm running.
I think I am just going to close this thread shortly, but I'd be grateful to know the end of the story.
Thanks for your input.
BR,
CC
Rama,
This is pretty correct. My ECC landscape is in 7.01 regarding Netweaver, but I have my gateway system that is in 7.40. I created a test ALV webdynpro application and the result is quite amazing. Icons are available for those standard functions.
My BI landscape is in 7.31 and there as well, icons are available. Exactly the ones that are in my screencopy.
Problem solved!
Thx and BR,
CC
Hi Christophe ,
Sorry I cannot access the system , but you may try the below steps
1) lo_button = Create a button using CL_SALV_WD_FE_BUTTON
2) Set the Image source etc e.g. setting of lo_button->set_image_source( '')
3) LO_ALV_CFG_TABLE = Get reference to cl_salv_wd_config_table using the interface controller get_model method.
4) lo_btn_settings = Get reference to standard toolbar function using IF_SALV_WD_FUNCTION_SETTINGS~GET_FUNCTION_STD
5) Finally set the editor of standard function passing the button created in first step lobtn_settings->set_editor( lo_button )
Still if it doesn't work , another option could be , hiding the standard functions and creating a custom filter/settings button .
then following the above stepsexcept the 4th step which should be replaced by creating new function using IF_SALV_WD_FUNCTION_SETTINGS~CREATE_FUNCTION .
And then in the event handler you can call the standard cl_salv_wd_table methods.
Hope this helps . I would be able to post the exact code hints by tomorrow once I get to office.
Best Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.