Skip to Content
avatar image
Former Member

Locking mechanism for web dynpro ALV list

Hi Experts,

I want to provide locking mechanism to my ALV list...

Currently my application is having a ALV list.

Consider there are 10 records in the ALV list.

If the user selects 1,3 and 5 records in the ALV list some columns of that record will be in edit mode. At this point of time user will edit the records and save it.

When a user editing another user should not have an access to these records if the second user want to edit locking mechanism should come into the picture.

I am done with the editing certain columns and i am not aware of the best locking approach?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 16, 2012 at 05:19 PM

    Hi Venkat,

    If you have an action that sets the columns to editable when the user selects the rows, in that same action you can call the appropriate ENQUEUE_* function module to lock the objects behind the selected rows.

    You'll need to identify what the appropriate ENQUEUE_* function is based on what table(s) you will update upon save of the changes. One way to identify the appropriate lock object is to do a where-used on the table(s) that will be updated and look for Lock Objects.

    Remember to call the corresponding DEQUEUE_* function module to release the locks after saving.

    Cheers,

    Amy

    Add comment
    10|10000 characters needed characters exceeded