Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable few rows on ALV

Former Member
0 Kudos

Hi all,

I need to disable few rows after displaying ALV to restrict user not to process those records. Please let me know any body if any body has an idea how to do this.

Regards,

Venkat.

3 REPLIES 3

Former Member
0 Kudos

Hi,

In the field catalog, there is the parameter NO_OUT. Simply set it to 'X'.

DATA: v_fieldcat TYPE slis_fieldcat_alv.

v_fieldcat-no_out = 'X'.

Regards,

Zaheed

Former Member
0 Kudos

Hi,

What you do you mean by disabling..Is it disabling the checkbox

Thanks

Naren

Former Member
0 Kudos

Processing of the rows is done through code - most likely in the USER_COMMAND form in your program. Just check the record as they try to process it and give an error if it is not one they should choose.

You could also use the ALV row colour to set these rows to a different colour.

You could also delete these rows from the internal table before displaying the ALV so the user does not even see them.

Andrew