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

delete the lock

Former Member
0 Likes
3,395

how to delete the lock

Hi,

Goto SM12 transaction .

Click on the list . It will display list of all programs which are locked.

so select your program which has been locked and delete it.

Regards,

Sruthi

16 REPLIES 16
Read only

Former Member
0 Likes
2,457

Have a look at below link.<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/37/a2e3b4344411d3acb00000e83539c3/frameset.htm">Deleting Lock Entries</a>

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

0 Likes
2,457

to unloack a table use Fm -

DEQUEUE_E_TABLE

DEQUEUE_E_TABLEE

DEQUEUE_E_TABLES

for session use tcode -

Sm12

Read only

Former Member
0 Likes
2,457

What lock??

Table lock or session locked??

if it for session locked go to sm12...

if it for table then look enque and deque FM

Thanks

Read only

Former Member
0 Likes
2,457

Hi,

Using SM12 transaction you can delete LOCK entries

Or You can use DEQUEUE related function modules to Unlock Table in the program.

Regards,

Anji

Read only

Former Member
0 Likes
2,457

Refer Tcodes,

SM12,

SE03

Read only

0 Likes
2,457

my program s being locked how do i delete that

Read only

0 Likes
2,457

go to SM12 press list or enter select your prog name there in application tool bar you can see the delete option press that. it will delete the lock.

regards

shiba dutta

Read only

Former Member
0 Likes
2,457

Hi Varalakshmi,

Goto SM12 .

click on LIST in the application bar.

then in the menu go for LOCK ENTRY and select Delete All.

Regards,

Naresh

Read only

Former Member
0 Likes
2,457

hi kannan,

well if u wanna entry lock through programming, i m givin u full step n code for locking and unlocking.

go to se11--> then give lock object name started by ez, as in example i took EZENMARA. then in table tab give table name MARA. then in LOCK field u can give the choice here i took shared lock 'S'.

THEN SAVE AND ACTIVATE.

THEN GO TO SE38 COPY THE BELOW PROGRAM AND ENJOY THE LOCK .

AND IF U WANNA TO USE UNLOCK IN PROGRAMMING JUS USE DEQUEUE_EZENMARA AND PUT THE REQUIRED ENTRY.

TABLES: MARA.

PARAMETER: MATNR LIKE MARA-MATNR.

CALL FUNCTION 'ENQUEUE_EZENMARA'

EXPORTING

MODE_MARA = 'S'

MANDT = SY-MANDT

  • MATNR =

X_MATNR = 'MATNR'

  • _SCOPE = '2'

  • _WAIT = ' '

  • _COLLECT = ' '

  • EXCEPTIONS

  • FOREIGN_LOCK = 1

  • SYSTEM_FAILURE = 2

  • OTHERS = 3

.

IF SY-SUBRC = 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

WRITE: 'TABLE IS LOCKED'.

ELSE.

SELECT * FROM MARA WHERE MATNR = MATNR.

WRITE:/ MARA-MATNR,MARA-ERNAM,MARA-MTART.

ENDSELECT.

ENDIF.

REGARDS.

VIJAY DWIVEDI.

REWARDS IF HELPFULL.

Read only

Former Member
0 Likes
2,457

Hello,

Go to transaction SM12 and clikc the button list. Now u can delete the locked entries by selecting it and clicking the DELETE button.

Regs,

Venkat Ramanan N

Read only

Former Member
0 Likes
2,457

hi kannan i think your probem is that your program or other object has been locked then jus go to sm12 and unlock it.

regards

vijay dwivedi

Read only

Former Member
0 Likes
2,457

Hi,

The lock on a object can be deleted using the transaction SM12.

Regards,

Sowmya.

Read only

0 Likes
2,457

my authorization s being denied in sm12

Read only

Former Member
0 Likes
2,457

Hi,

Goto SM12 transaction .

Click on the list . It will display list of all programs which are locked.

so select your program which has been locked and delete it.

Regards,

Sruthi

Read only

Former Member
0 Likes
2,457

Hi,

Actually what message r u getting when u click sm12 transaction.

Regards,

Sruthi

Read only

Former Member
0 Likes
2,457

This message was moderated.