Skip to Content

How do we disable column in tableview in BSP

Hi,

I am trying to disable entire coumn in the tableview. Can you please guide me how to do it? I tried to search forum but not able to get the right discussion.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2014 at 02:47 PM

    Hi,

    think you are talking about the htmlb tableview element. Therefore you need to create an iterator to get a column disabled.

    Details can be found in the following blog:

    http://scn.sap.com/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

    Regards

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2014 at 09:35 AM

    Disabling fields using the GET_I

    Fields can be disabled in customizing. In some cases though, this might not be sufficient. If for instance the requirement is that the field is in some cases disabled, for instance depending on another field or check box or radio button, you can redefine the GET_I method of this field.


    If you wish to disable the field, insert the statement
    rv_disabled = 'TRUE'.
    If you wish to enable the field, insert the statement
    rv_disabled = 'FALSE'.


    Of course you can call other methods to determine the context and put some if-statements around the rv_disabled = ... statements to have the system determine the enabling/disabling of the fields correctly.

    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.