cancel
Showing results for 
Search instead for 
Did you mean: 

How do we disable column in tableview in BSP

0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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