Skip to Content

Lock records in customized table for deletion

Hi SAP Guru,

I need to lock a customized tables with sets of records to delete with similiar primary keys.

Is there a standard SAP function that allow me to feed in the table key and keys and it would does the locking?

what about the unlocking function too?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 22, 2007 at 03:55 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Aug 22, 2007 at 06:12 AM

    Hi Colin..

    To Lock the Entries in any Table you have to Use Lock Objects:

    Steps:

    Tcode SE11 - Creating Lock Object on the Custom Table.

    Lock Object Name: EZabc.

    Primary Table : <Your Custom table>.

    Activate the Lock Object.

    Now the System Generates 2 Function Modules.

    ENQUEUE_<LOCK OBJ>. "To lock the records

    DEQUEUE_<LOCK OBJ>. "To unlock the Records

    like ....

    ENQUEUE_EZABC.

    DEQUEUE_EZABC.

    In your Program You have to Call these two FMs.

    <b>Reward if Helpful</b>

    Add comment
    10|10000 characters needed characters exceeded