on 10-23-2008 10:06 AM
Hi Experts,
I am working on ESS-Travel and Expense application. On the first view there is an attachment button. My client don't want this button. I tried my best to find out this button. But it seems that this button is getting created at run time. Can anyone please suggest from where it is getting created and how I can hide it.
Thanks & Regards,
Vaibhav Tiwari.
Why even find it in the code. You should be able to hide it using application configuration. In SE80, right mouse click on the application and choose Create/Change Configuration. You can create a component configuration and hide the button using this configuration. You can then use this configuration as the default config. for the particluar application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas Jung,
The configuration for the component is already existing and I am changing this existing configuration. I made the changes successfully, saved these changes and even a transport request got created. But when I reopen the configuration it doesn't show me the changes I made. Is there any other way to do it or its not possible to change the existing standard configuration.
Thanks and regards,
Vaibhav Tiwari.
When you arn the application are you sure it is accessing that configuration? It is possible to change SAP configurations, but the changes will be overwitten if the object is replaced in the next support package/enhancement package. The suggestion is to copy the configuration and make changes to it.
Since you are asking a Web Dynpro question, how about telling us what your Basis (SAP_BASIS) patch level is. Your HR patch level is pretty meaningless to the discussion. I'd imagine from the not yet supported message that your patch level is going to be very low and the suggestion is going to be that your company should apply the latest patch level if you want this functionality.
hi
use this code DATA LO_ND_CHECK TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_CHECK TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_CHECK TYPE WD_THIS->ELEMENT_CHECK.
DATA LV_CHECK1 LIKE LS_CHECK-CHECK1.
navigate from <CONTEXT> to <CHECK> via lead selection
LO_ND_CHECK = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_CHECK ).
get element via lead selection
LO_EL_CHECK = LO_ND_CHECK->GET_ELEMENT( ).
get single attribute
LO_EL_CHECK->GET_ATTRIBUTE(
EXPORTING
NAME = `CHECK1`
IMPORTING
VALUE = LV_CHECK1 ).
if LV_CHECK1 = 'X'.
LO_EL_CHECK->set_attribute(
name = `CHECK1`
value = ' ' ).
else.
LO_EL_CHECK->set_attribute(
name = `CHECK1`
value = 'X' ).
endif.
write this to modifyview.
data:
lr_container type ref to cl_wd_uielement_container,
lr_button type ref to cl_wd_button.
get a pointer to the RootUIElementContainer
lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
create the button and add it to the container
lr_button = cl_wd_button=>new_button( text = `Confirm` ).
cl_wd_flow_data=>new_flow_data( element = lr_button ).
lr_container->add_child( lr_button ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.