Skip to Content
author's profile photo
Former Member

Disable few rows on ALV

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Oct 12, 2007 at 06:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 12, 2007 at 06:21 AM

    Hi,

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

    Thanks

    Naren

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 12, 2007 at 06:27 AM

    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

    Add comment
    10|10000 characters needed characters exceeded