on 11-08-2012 3:08 PM
Hi,
ECC 6.0 EHP4 SP51
For the Application FITV_POWL_TRIPS, I'm trying to eliminate all provided link to actions in the top right corner, except for "Filter". I managed to get rid of the Query builders, changers, personalization via POWL Customizing in IMG and authority object CA_POWL; but I can't figure out how to hide the "Settings" link, I tried administrative personalization, enhancements in the powl master component (since I didn't find out whether there is a possibility via Customizing here as well). It all failed. I'm out of ideas. Please help if you can
EDIT: I just found this link http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL+CONFIGURATIONS that suggests to use a comp configuration. However, in my case there already is one in the standard and if I change it, it will be considered a modification... can I avoid this?
Cheers, Lukas
Hi Lukas,
As in my reply to your other post you can achieve this in component configuration here:
To avoid using modification you can enhance the component or take a copy or use customizing. This guide gives a good intro to the adaptation options you have even if it talks about FPM: http://scn.sap.com/docs/DOC-30611
If you are on a different version you can find the documents here: http://scn.sap.com/docs/DOC-8068
In your case when it is a small change I would go for customizing or the enhancement option.
You can also remove it on the ALV using enhancement:
data: lr_alv_model type ref to cl_salv_wd_config_table.
data: lr_salv_wd_ifc type ref to iwci_salv_wd_table.
lr_salv_wd_ifc = wd_this->wd_cpifc_alv( ).
lr_alv_model = lr_salv_wd_ifc->get_model( ).
lr_alv_model->if_salv_wd_std_functions~set_dialog_settings_allowed( abap_false ).
Br Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jan,
First of all thanks for the FPM-documentation. However, it only helps a little bit for the understanding of the whole concept, but not for the currecnt practical use. Travel Management has its own FPM component taking no reference to the generic ones available, there also is no GUIBB etc.; thanks nevertheless
Let's elaborate on these:
you can enhance the component or take a copy or use customizing.
Using an enhancement was my first approach, also with direct manipulation to the SALV, but this is not possible in this case, because SALV is not directly a used component, the POWL UI is, though. However, if it is programatically possible here, until now I failed to climb down the Object tree to find the SALV or POWL config API. What I do have initially is this:
lo_model_usage = wd_this->wd_CpUse_Powl( ).
if lo_model_usage->has_active_component( ) is initial.
lo_model_usage->create_component( ).
endif.
wd_this->mr_powl = wd_this->wd_cpifc_powl( ).
lr_controller_powl = wd_this->mr_powl->wd_get_api( ).
But, as I said, up until now I didn't find within what I need. Debugging takes forever, but it seems to be my only chance.
What do you mean with "taking a copy"? Copying the Comp Conf will mean I somehow have to tell the FITV_FPM to use my copy instead of the original, I see no chance doing this without modification...
What do you excatly mean with the term customizing in this case? I tried administrative personalization, authority object CA_POWL and the customizing for POWL in generic business one functions in IMG SPRO, but none of them helped. Is there any other form of "customizing" available here?
Cheers, Lukas
Hi Lukas,
Instead of enhancing the code use enhancement or customizing of the component configuration. You can use the concept described for adaptations in the FPM guide or simply:
1. For enhancement option: open your component configuration (start configurator in SE80 on the component configuration) and select Other Functions -> Create Enhancement
2. For customizing your component: Run wd application customize_component and enter details for the component you want to customize. You might have to activate customize component i SICF first.
If you wanted to code your way out of the problem you need to get hold of you need to do it in standard web dynpro POWL_TABLE_COMP. I would however recommend against it as this module is used by many different applications. If you want to explore this option anyway open POWL_TABLE_COMP and View=TABLE_DATA. In for example post-exit to wddomodifyview you can then insert code mentioned in post above to hide link or code below to hide the whole right hand side. This was the way we did it at first so I know it works but we are now doing it "the more correct way" as mentionend in 1 and/or 2.
Hide "Right hand"
data: l_s_cont type ref to cl_wd_uielement_container.
l_s_cont ?= view->get_element( 'RIGHT_HAND' ).
l_s_cont->set_visible( '01' ).
Regarding Copy option - yes you understand that correctly and it should be possible without modification but will require more work than the other options.
Br Jan
Yeeeeeessssss!
Jan, this is exactly where my thinking blockade was and what I didn't know:
1. For enhancement option: open your component configuration (start configurator in SE80 on the component configuration) and select Other Functions -> Create Enhancement
With this new knowledge, I went to POWL_UI_COMP according to this guide http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL+CONFIGURATIONS
created a CC-Enhancement Z_FITV_POWL_TRAVELLER and set the parameter for hiding the settings link! :-))))
Works out!
Thanks a ton, Jan, now I will take a look at the customize_component to help with my problem of the table-views in my other post.
Cheers, Lukas
You are right that it will affect all POWL components, but this is, to the contrary, even better than only affecting one. In my opinion the whole POWL-concept is really unfortunate and, for my company, all these extra configuration options for the end user are completely superflous, if not dangerous and cofusing. In case this ever changes, I'll use another approach
Cheers, Lukas
Apologies for interfering in your already answered thread. The thread is very useful and almost like a Blog.
I need a small help.
Can you please suggest how can we change the text of the Links in Recommended Action Column in All My Trips tab. I want to know where exactly I need to make changes if I have change the link text or if I have to disable the links depending on some configurations.
I am aware that the FM "PTRM_WEB_TRIPS_GET_LIST" is called when the Traveller Work Center is rendered which brings the trip information along with a lot of parameter information. My requirement is to change the link text based on specific parameter values for a trip number.
I hope you will not mind me copying your first image and changing to showcase my requirement.
Many thanks in advance for providing your inputs on this.
Best Regards
Sundeep
Hi Sundeep,
as you already stated, FM PTRM_WEB_TRIPS_GET_LIST processes the parameters for the POWL rendering and this also is one spot in the system where you can change the text you speak about. However you'll have to distinguish what exactly you want to do, let me elaborate:
What you can do is make an implicit enhancement at the end of the FM and manipulate the contents of itab et_trips; the field that is relevant for you is SUPPOSABLY_STATUS; within this field there are the indicators for the texts. Now here's why I can't give you a straight-ahead approach: The texts aren't in the field in literals but in form of keys of a fixed value domain PTRV_STATUS. That means:
If you only want to change the action from one standard supposed status to another standard supposed status, you can simply manipulate the itab et_trips and use the corresponding status available in PTRV_STATUS.
However, if you want to override the standard texts, you must either modify the standard domain PTRV_STATUS and override the domain texts or, alternatively, you could try to make a fixed-value append to PTRV_STATUS in custom namespace, create your own equivalent status for each standard status with your own text and replace the standard references in PTRM_WEB_TRIPS_GET_LIST with your custom ones (personally I'd rather go for the append, DDIC-Modifications are the last thing you want to do).
Tell me how it turns out for you. In my company I have made the entire tab invisible because the suposed statuses are superflous for our business process (so I never had this problem ).
Cheers, Lukas
HI Guys,
I want to change the Layout according to the Company specific specific in the Shopping Cart detail. How it can be Possible because company contains number of user how it can be possible as a user specific. i already implemented one badi but it doesnot show any effect on the user screen. Kindy Help me for solve this problem. i also trying to change in the POWL_query tcode for setting the layout how we can set this layout for all the user.
Thanks.
Nishant Bansal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.