Application Development and Automation 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: 
Read only

is there any function module to lock t024 table

Former Member
0 Likes
900

is there lock object for t024 table?otherwise any fm for locking t024 table?

is there lock object for t024 table?otherwise any fm for locking t024 table?

4 REPLIES 4
Read only

h_senden2
Active Contributor
0 Likes
815

No, there isnt' !

Try trx SE11 --> Lock object --> F4 --> Search with base table T024 --> no results

Maybe you can try to create a lock object yourself !

regards,

Hans

Please reward all helpful answers !!!!!

Read only

ashok_kumar24116
Contributor
0 Likes
815

Hi Naren,

<b>Good ... check out the following documentation

Lock objects are used to lock the database table while making the modifications on the database table.

you can create your own lock objects using SE11.

if you create lock objects on any table system will create two function modules.

1.ENQUEUE....

2.DEQUEUE.....

first one is used to lock the table

second one used to removing lock on the table.

*----


lock Table

CALL FUNCTION 'ENQUEUE_E_TABLE'

EXPORTING

tabname = table_name

EXCEPTIONS

foreign_lock = 1

system_failure = 2

OTHERS = 3.

*----


Unlock Table

CALL FUNCTION 'DEQUEUE_E_TABLE'

EXPORTING

tabname = table_name

check this link :

http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm

_SCOPE = 1: The lock is not sent to the update program. The lock is removed when the transaction is ended.

_SCOPE = 2: The lock is sent to the update program. The update program is responsible for removing the lock. The dialog program which requested the lock no longer has an influence on the lock behavior. This is the standard setting for the ENQUEUE function module.

_SCOPE = 3: The lock

Managingin lock entries

http://help.sap.com/saphelp_nw04/helpdata/en/37/a2e3ae344411d3acb00000e83539c3/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/cb/168237d30d974be10000009b38f8cf/frameset.htm</b>;

Good Luck and thanks

AK

Read only

0 Likes
815

My question has been answered.Thanks for giving me the solution.I here by assign you 6 points.

Thanks & Regards

Naren

Read only

Former Member
0 Likes
815

hi

good

i dont think there is any lock object for the t024 table,if you want to create a lock object for this table than you can create is using se11 and start the name with EZ*.

thanks

mrutyun^