Skip to Content
avatar image
Former Member

Hide Button in Applications WD ABAP Standard

Dear Experts.

Please can someone help me with suggestions for the following issue that I have in this moment:

I need hide the button "Entrada Nueva" for the component fitv_vc_advances

[fitv_vc_advances|http://img842.imageshack.us/img842/2719/fitvvcadvances.png]

I checked the following link.

Illegal External link removed by moderator

Thanks in advance,

Regards

Carmen G

Edited by: Thomas Jung on Dec 14, 2010 9:39 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 15, 2010 at 03:53 PM

    Hi Carmen,

    i would advise to use the PERSONALIZATION feature. Thats a development free way of hiding the button. when application up and running , make a right mouse click over the button you wish to hide on USER SETTING select hide 'btn name'.

    Since you want to hide this button for all users , Launch the WebDynpro Application in config mode. This is done simply by appending

    &sap-config-mode=X

    to URL

    example: http://XYZ:8020/sap/bc/webdynpro/sap/zdemo_main?sap-language=EN

    http://XYZ:8020/sap/bc/webdynpro/sap/zdemo_main?sap-language=EN&sap-config-mode=X

    -Prashant

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 14, 2010 at 01:33 AM

    Hi Carmen,

    I assume your requirement is to hide the button on some condition.

    Please check whether there is any attribute in the component which is boud to the visiblity of this button.

    If yes you can hide the button setting the value of that attribute to None ( WDUI_VISIBILITY = 01 ).

    If there is no such attribute then i can suggest below option:

    Create a context node and attribute ATTR of type WDUI_VISIBILITY and bind the visible property of this button to this attribute.

    Create a post-exit method for the WDDOINIT ( or any method suitable to the flow of this component) and set the value of ATTR to 01 on whichever condition you want.

    If you can not get the access key to do above change the second option is to create a Z of above component and replace the standard but I do not support this option as it can impact at many places.

    Please revert in case of issues.

    Regards,

    Sumit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Carmen,

      >

      > I assume your requirement is to hide the button on some condition.

      >

      > Please check whether there is any attribute in the component which is boud to the visiblity of this button.

      >

      > If yes you can hide the button setting the value of that attribute to None ( WDUI_VISIBILITY = 01 ).

      >

      > If there is no such attribute then i can suggest below option:

      >

      > Create a context node and attribute ATTR of type WDUI_VISIBILITY and bind the visible property of this button to this attribute.

      > Create a post-exit method for the WDDOINIT ( or any method suitable to the flow of this component) and set the value of ATTR to 01 on whichever condition you want.

      >

      >

      > If you can not get the access key to do above change the second option is to create a Z of above component and replace the standard but I do not support this option as it can impact at many places.

      >

      > Please revert in case of issues.

      >

      > Regards,

      > Sumit

      Hi Sumit,

      I dont think property of button in standard component can bind, even in enhancement mode, as its greyed out. I have tried without success. If you have done it with standard button, pls put out the steps. Also, deleting and creating the button with same ID does not work as it says the ID already exists.

  • avatar image
    Former Member
    Dec 14, 2010 at 09:06 AM

    Hi,

    All you need is to hide a standard WD button ?

    If so, its simple..

    Go to your view, click on the spiral (Enhancement) button, create a enhancement with enhancement name and description.

    Now, the WD component will be in change mode. Do everything u need as your customized object.

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 15, 2010 at 08:52 AM

    To get application name, use this code

    data:

    lv_appli_name type string.

    l_api type ref to if_wd_component,

    l_application_api type ref to if_wd_application,

    l_application_info type ref to if_wd_rr_application.

    l_api = wd_this->wd_get_api( ).

    l_application_api = l_api->get_application( ).

    l_application_info = l_application_api->get_application_info( ).

    lv_ api-application_name = l_application_info->get_name( ).

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded