Skip to Content

Remove personalise and export to excel button on custom assignment block

Hello,

We are trying to remove the personalise and export to excel buttons from a custom created assignment block, buttons elsewhere must remain.

We have tried to put the attributes downloadToExcel and personalizable of the configTable on false (the default is true). But to no avail.

the .htm page of the assignment block:

 <chtmlb:configTable id                    = "Table"
                      navigationMode        = "BYPAGE"
                      onRowSelection        = "select"
                      table                 = "//RegDetNode/Table"
                      width                 = "100%"
                      personalizable        = "FALSE"
                      allRowsEditable       = "<%= lv_editlist %>"
                      displayMode           = "<%= lv_displaymode %>"
                      headerVisible         = "FALSE"
                      downloadToExcel       = "FALSE"
                      actionsMaxInRow       = "6"
                      hasLeadSelection      = "TRUE"
                      selectionMode         = "<%= RegDetNode->SELECTION_MODE %>"
                      iterator              = "<%= controller %>"
                     />

Is there a way to remove or hide the buttons?

Thanks in advance.

Joram

Edited by: Joram Somers on May 11, 2009 9:28 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 11, 2009 at 01:02 PM

    Hi,

    Check for the Personalisation and Excel buttons in method IF_BSP_WD_TOOLBAR_CALLBACK~GET_SYSTEM_BUTTONS of the IMPL class.

    You can comment the code here by redefining the method.

    Also check the Overview page of your component. Sometimes they come from here.

    Regards,

    Masood Imrani S.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 11, 2009 at 07:36 AM

    Hi Joram,

    Ideally it should work, now since it's not working trying clearing the cache of your browser. Log-off from the SAP Logon and Login again. It may sound weird but sometime it works.

    Regards,

    Harshit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 11, 2009 at 07:52 AM

    Hi,

    You can remove personalize button without coding also.All you need to do is to go to SPRO->CRM->UI Framework->Define Parameters.

    Select UTIL_IC and go to parameter definition.Now enter two parameters:

    TABLE_DOWNLOAD2EXCEL

    TABLE_PERSONALIZABLE

    Now select parameter assignment and as per ur requirement make it 'X' or leave it blank.And Save.

    Thanks,

    Ashish.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 11, 2009 at 09:18 AM

    Thank you for the replies.

    Clearing the browser cache didn't make any difference however.

    Setting those fields in customizing didn't work either (I also didn't see a link there between UTIL_IC and the assignment block, so this might change settings for all assignment blocks).

    Would there be other possibilities to remove the buttons?

    Thanks

    Joram

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 11, 2009 at 02:22 PM

    Hello Masood,

    The GET_SYSTEM_BUTTONS method of the component was redefined (and empty).

    I placed a dummy line in it and put a breakpoint, but it seems the system doesn't go through this code.

    In the overview page (view BT126H_CALL/Sales_CallOVViewset) the get_system_buttons method seems to have code for enabling the general system buttons from the page, but nothing for the underlying assignment blocks (this method hasn't been redefined).

    Regards.

    Joram

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      I too have a similar requirement to remove the "export to excel sheet" button for an assignment block..

      I have tried the possible ways as mentioned in the thread but the button still appears.

      Please provide some pointers on this.

      Thanks

      sushma

  • Posted on Jun 19, 2009 at 05:05 AM

    Hi,

    Check with the steps mentioned in the note 1288220

    to disbale the same.

    Regards,

    Venkat.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2016 at 12:45 AM

    Hi, just put the next code in the HTML of the view (ASSIGNMENT BLOCK).

    <chtmlb:config />

    ------------------------------------------------------------------------------------------------------------------

    Hola, solo coloca el siguiente código en el HTML de la vista(ASSIGNMENT BLOCK)

    <chtmlb:config />

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.