Lock entries for table SWWWIHEAD in SM12 Urgent
HI
From last few days, In SM12 there are lock entries coming for workitems of table SWWWIHEAD even though workitem is completed successfully. Time of lock entry shows it is time when approver started taking action on it.
Please let me know is there any impact of this on system and how it is happening and what we should do with these lock entries.
Appreciate your help.
Regards,
Shiv.
Dear,
Actually we faced an issue related to this like the approver took action on it. after that the item got locked. the basis is telling there could be the RFC session from SAP Portal inbox which is not closed somehow. may be session is exited without properly logging out. in this case the item was still in his inbox and when the approver tries to open it, the error message says workitem is locked bye the same user id. The basis is telling the lock will be removed after the default stipulated time (in my case, its 8 Hrs ! ).
hope this helps.
with regards,
Sudhahar R.
Similar Messages
-
Logical system entry for table entry
Hi,
After system copy from one system name to another , I am facing some inconsistenices in various tables.
The table entry can be seen in se16.But when I try to select entries from the same table using SELECT statement, table are not getting populated.
I ran the BDLS also . How do I check the logical system entried for table where I have inconsistent entries?
Thanks,
ChittaHello Chitta,
But when I try to select entries from the same table using SELECT statement, table are not getting populated.
what are you trying to populate?
If your question is, its not showing anything... what error message you're getting? are you trying to run in the DB level?
If you're getting error, that this object doesn't exist in the database then you might not be logging with correct user. its an SAP table, then its owner is the SAP schema user. If you login with the schema user, it should show in a normal select statement. But if you login with <sid>adm then you have to give the correct schema id before tablename.
select * from <SchemaID>.<tablename>
SchemaID may be sapr3, sapsr3, or sap<SID> depending on your release.
Regards,
Debasis. -
Lock object for table KNVP and KNVK
Hello Friends,
Can you please tell me the standard lock object for the table KNVP and KNVK.
Thank and regards,
KuldeepHi
see this and do accordingly
Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.
SAP Provide three type of Lock objects.
- Read Lock(Shared Locked)
protects read access to an object. The read lock allows other transactions read access but not write access to
the locked area of the table
- Write Lock(exclusive lock)
protects write access to an object. The write lock allows other transactions neither read nor write access to
the locked area of the table.
- Enhanced write lock (exclusive lock without cumulating)
works like a write lock except that the enhanced write lock also protects from further accesses from the
same transaction.
You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
Technicaly:
When you create a lock object System automatically creat two function module.
1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
You have to use these function module in your program.
check this link for example.
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
tables:vbak.
call function 'ENQUEUE_EZLOCK3'
exporting
mode_vbak = 'E'
mandt = sy-mandt
vbeln = vbak-vbeln
X_VBELN = ' '
_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.
endif.
Normally ABAPers will create the Lock objects, because we know when to lock and how to lock and where to lock the Object then after completing our updations we unlock the Objects in the Tables
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
purpose: If multiple user try to access a database object, inconsistency may occer. To avoid that inconsistency and to let multiple user give the accessibility of the database objects the locking mechanism is used.
Steps: first we create a loc object in se11 . Suppose for a table mara. It will create two functional module.:
1. enque_lockobject
1. deque_lockobject
before updating any table first we lock the table by calling enque_lockobject fm and then after updating we release the lock by deque_lockobject.
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
GO TO SE11
Select the radio button "Lock object"..
Give the name starts with EZ or EY..
Example: EYTEST
Press Create button..
Give the short description..
Example: Lock object for table ZTABLE..
In the tables tab..Give the table name..
Example: ZTABLE
Save and generate..
Your lock object is now created..You can see the LOCK MODULES..
In the menu ..GOTO -> LOCK MODULES..There you can see the ENQUEUE and DEQUEUE function
Lock objects:
http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
Match Code Objects:
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
http://searchsap.techtarget.com/tip/0,289483,sid21_gci553386,00.html
See this link:
http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
Check these links -
lock objects
Lock Objects
Lock Objects
Regards
Anji -
Cross system object lock -how to build up lock entries for existing request
Hello,
we implemented ChaRM for some years and intend to activate cross system object lock (CSOL), now.
But there are a lot of existing transport requests, which have not been imported to productive system, yet.
It would be very helpful to create lock entries for objects, which are assigned to those transport requests.
Does anyone know any standard report for this purpose?
Thanks a lot for any hint.
Best regards
HorstIf anyone else needs that feature:
Report TMW_TRKORR_LOCK_UPDATE (executed in satellite system) will lock the objects of a transport request in solution manager system. -
Hi Experts,
Please help in finding which SAP Standard table can we find the lock entries(SM12 transaction).
Thanks!Prerequisites
You have generated the demo data for the SQL Tutorial.
Log on to the database instance DEMODB as user MONA.
Examples
You can use the system table LOCKS to determine the following database information, among other things:
● All locks that are currently held on table ROOM
SELECT lockmode, lockstate, rowidlength, rowidhex, rowid
FROM DOMAIN.LOCKS
WHERE tablename = 'ROOM'
● All locks that the current user holds in that database session on table ROOM
SELECT lockmode, lockstate, rowidlength, rowidhex, rowid
FROM DOMAIN.LOCKS, SYSINFO.SESSIONS
WHERE tablename = 'ROOM'
AND locks.session = sessions.sessionid
● All locks that are currently held on the table with the hexadecimal internal identification 000000000000035D
SELECT lockmode, lockstate, rowidlength, rowidhex, rowid
FROM DOMAIN.LOCKS
WHERE tableid = X'000000000000035D'
If the current user is the database administrator (DBA user) or the database system administrator (SYSDBA user), then all currently held locks are shown.
Users that belong to other user classes only see the locks held by that one user.
Definition
The system table LOCKS describes the current lock entries and entries for lock requests.
Structure
LOCKS
SESSION
FIXED(10)
ID of the database session
TRANSCOUNT
CHAR(20)
Transaction identification in the database session
PROCESS
FIXED(10)
Process identification in the database instance
USERNAME
CHAR(32)
Name of the user
DATE
DATE(10)
Creation date of the lock
TIME
TIME(8)
Creation time of the lock
TERMID
CHAR(18)
User terminal identification
LASTWRITE
CHAR(10)
Elapsed time since the last SQL statement for data manipulation
LOCKMODE
CHAR(14)
Type of lock (NULL value | SHARE | EXCLUSIVE)
LOCKSTATE
CHAR(10)
Status of lock
APPLPROCESS
FIXED(10)
Process identification on the client hardware
APPLNODE
CHAR(64)
Client hardware identification
SCHEMANAME
CHAR(32)
Name of the schema of the table
OWNER
CHAR(32)
Name of the owner of the table
TABLENAME
CHAR(32)
Name of the table
TABLEID
CHAR(8) BYTE
ID of the table
ROWIDLENGTH
FIXED(4)
Length of the key of the locked row
ROWIDHEX
CHAR(64) BYTE
Start of the key of the locked row in hexadecimal notation
ROWID
CHAR(128)
Start of the key of the locked row
http://dev.mysql.com/doc/maxdb/en/c4/812640632cec01e10000000a155106/content.htm -
Lock entries for FM - 'ALM_ME_READ_CATALOG_PROFILE'
Dear Friends
Whenever the following function modules are called it create lock entries in sm12. So it restricts transaction QS41 for edit Mode.
ALM_ME_READ_CATALOG_PROFILE
QM09_READ_CATALOG_PROFILE
I want these lock entires to be deleted automatically after it is called. I tried to remove lock entires using the following function module and it never worked.
Call function 'DEQUEUE_EQQPGR2'
exporting
mode_qpgr = 'X'
mandt = sy-mandt
katalogart = 'P'
codegruppe = 'PTRTY'
Kindly help me.
ThanksHi Meghana,
I am not sure about the FM. But the CRM table COMM_PCAT_ITM contains the relation between product catalog and the product. In this table the product guids are stored in the field 'OBJECT' and corresponding product catalog guids are in the field 'PARENT_CATALOG'
Hope this helps to debug further.
Thnaks,
Paul Kondaveeti -
Hi experts,
I developed a function module to update the confirmations tab of a PO on ME22N screen. Now, I want to have a lock object in the FM so that a user cant make changes while this FM is in use. I do not know if there is any standard lock object for this purpose. I created a lock object in SE11 'EZEKES' since table EKES corresponds to vendor confirmations details. The Enqueue function was called into the program. The code is below:
CALL FUNCTION 'ENQUEUE_EZPHLOCK'
EXPORTING
MODE_EKES = 'E'
MANDT = SY-MANDT
EBELN = ponumber
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3
The problem is, i'm not able to have a lock on the confirmations tab when the FM is in use. Is there any problem with the lock object i have created. The lock mode is Exclusive,Cumulative.
Please help me with this.Code:
""Local Interface:
*" IMPORTING
*" REFERENCE(PONUMBER) TYPE EKKO-EBELN
*" TABLES
*" ITAB STRUCTURE UEKES
TABLES: EKES, EKKO.
DATA: BEGIN OF I_EKKO OCCURS 0,
EBELN LIKE EKKO-EBELN,
END OF I_EKKO.
DATA: X LIKE EKES-ETENS.
data: i_tab like itab occurs 0 with header line.
move itab[] to i_tab[].
DATA: i_ekes LIKE uekes OCCURS 0 WITH HEADER LINE.
SELECT EBELN FROM EKKO INTO TABLE I_EKKO WHERE EBELN = PONUMBER.
IF NOT I_EKKO[] IS INITIAL.
SELECT * FROM EKES INTO TABLE I_EKES
FOR ALL ENTRIES IN I_EKKO
WHERE EBELN = I_EKKO-EBELN.
ENDIF.
select single etens from ekes into x WHERE EBELN = PONUMBER.
x = x + 1.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA: VARKEY LIKE RSTABLE-VARKEY.
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
MODE_RSTABLE = 'E'
TABNAME = EKES
VARKEY = VARKEY
X_TABNAME = ' '
X_VARKEY = ' '
_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.
ENDIF.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT I_TAB. "WHERE EBELN = PONUMBER.
READ TABLE I_TAB.
LOOP AT i_ekes WHERE ebelp EQ ITAB-EBELP "itemnumber
AND ebtyp EQ 'LA'.
i_ekes-menge = ITAB-MENGE. "quantity.
i_ekes-kz = 'U'.
i_ekes-eindt = ITAB-EINDT. "deldate.
I_EKES-XBLNR = ITAB-XBLNR.
i_ekes-erdat = sy-datum.
i_ekes-ezeit = sy-uzeit.
MODIFY i_ekes.
ENDLOOP.
ENDLOOP.
IF sy-subrc NE 0.
LOOP AT I_TAB. "WHERE EBELN = PONUMBER.
READ TABLE I_TAB.
LOOP AT i_ekes WHERE ebelp EQ ITAB-EBELP "itemnumber
AND ebtyp EQ 'AB'.
i_ekes-menge = ITAB-MENGE. "quantity.
i_ekes-ebtyp = 'LA'.
i_ekes-kz = 'I'.
i_ekes-etens = x.
i_ekes-eindt = ITAB-EINDT. "deldate.
I_EKES-XBLNR = ITAB-XBLNR.
i_ekes-erdat = sy-datum.
i_ekes-ezeit = sy-uzeit.
APPEND i_ekes.
ENDLOOP.
ENDLOOP.
ENDIF.
To update the confirmations tab
CALL FUNCTION 'ME_CONFIRMATION_UPDATE'
EXPORTING
I_EBELN = PONUMBER
TABLES
XEKES = i_ekes[].
YEKES = I_EKES[].
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
MODE_RSTABLE = 'E'
TABNAME = EKES.
VARKEY = VARKEY
X_TABNAME = ' '
X_VARKEY = ' '
_SCOPE = '3'
_SYNCHRON = ' '
_COLLECT = ' '
ENDFUNCTION. -
Delete lock entry for an IDOC locked since 5 days ago.
Hello,
I received some Delivery and an IDOC numbers, I was asked to release the delivery with the VKM5 T-code, and the IDOC with the BD87, However one of them was locked by user TIDAL_SCHED.
Here's the Delivery Number:
86622718
The IDOC number:
0000001073053855
Here's the message I receive when I try to release the delivery:
86622718 CSL: VPRCLNT810:SALES_DOCUMENT:0150000010 is locked by TIDAL_SCHED (VPRCLNT810-01) (lock time: 20150430141129 , reference counter: 1 )
How can I locate this exact lock entry? Is there an specific table I should look for besides the user name? So far I have obtained the following information:
Sales Order: 3000011472
Return: 0150000010
Delivery: 0086622718
As you can see the look time is April 30th 2015; whenever I look into everything TIDAL_SCHED I don't get anything referencing the Delivery and/or Sales doc or april 30th:
810
TIDAL_SCHED
18:05:07
S
ZVSPGMUSG
810ZTIAP_TWS_PAYMENT_UPDATES TIDAL_SCHED
0
1
810
TIDAL_SCHED
18:14:40
E
CSL_MTLK
VPRCLNT81001VPRCLNT810:SALES_DOCUMENT:7677216031
0
1
810
TIDAL_SCHED
18:14:40
E
EDIDC
8100000001073152622
1
1
810
TIDAL_SCHED
18:14:40
S
EM07M
810XSAMN910TBLK DC150001MARDDC15 L01 H 1.000 0.00
0
1
810
TIDAL_SCHED
18:14:40
E
EM07W
810XSAMN910TBLK DC15 0.000 0.00 0.00 0.00
0
1
810
TIDAL_SCHED
18:14:40
E
LIKP
8108676864448
0
1
810
TIDAL_SCHED
18:14:40
S
MARC
810XSAMN910TBLK DC15
0
2
810
TIDAL_SCHED
18:14:40
S
MBEW
810XSAMN910TBLK DC15##########
0
3
810
TIDAL_SCHED
18:14:40
E
VBAK
8107677216031
0
1
810
TIDAL_SCHED
18:14:40
S
ATPENQ
810810000000610214635259DC30 DC30 20150504 2 1.000
0
1
810
TIDAL_SCHED
18:14:40
E
EDIDC
8100000001073169350
0
2
810
TIDAL_SCHED
18:14:40
S
EM07M
810000000610214635259DC300001MARDDC30 L01 H 1.000 0.00
0
1
810
TIDAL_SCHED
18:14:40
S
EM07W
810000000610214635259DC30 10 1.000- 130.23- 130.00- 0.00
0
1
810
TIDAL_SCHED
18:14:40
S
MARC
810000000610214635259DC30
0
2
810
TIDAL_SCHED
18:14:40
S
MBEW
810000000610214635259DC30##########
0
3
810
TIDAL_SCHED
18:14:41
E
CSL_MTLK
VPRCLNT81001VPRCLNT810:SALES_DOCUMENT:7677211659
0
1
810
TIDAL_SCHED
18:14:41
E
EDIDC
8100000001073147516
1
1
810
TIDAL_SCHED
18:14:41
E
LIKP
8108676859884
0
1
810
TIDAL_SCHED
18:14:41
E
VBAK
8107677211659
0
1
810
TIDAL_SCHED
18:14:41
E
EDIDC
8100000001073169349
1
1
810
TIDAL_SCHED
18:14:41
E
EM07W
810000000610214694102DC30 0.000 0.00 0.00 0.00
0
1
810
TIDAL_SCHED
18:14:41
S
MARC
810000000610214694102DC30
0
1
810
TIDAL_SCHED
18:14:41
S
MBEW
810000000610214694102DC30##########
0
2For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices.
That all works.
It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now. They are all synced, and all was working just fine.
I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
Thanks for listening,
Melissa -
Create entry for table FILENAMECI
Hi,
I want to create physical file path for my logical file in table FILENAMECI.
The problem is this table allows maintenance with restriction the I cannot maintain through SE16 or SM30 (for V_FileName).
Please let me know how can I create new entry for this table.
Thanks,
KhanhUse view V_FILENACI!
Thread close! -
Table entry for table T710A and T710
Friends - Can anyone help me to understand what could be possible problem if i maintain PAY GRADE & PAY GRADE LEVEL entries through table. I have 57000 thousand entries for different countries so i am using BDC recroding to upload these values.
Please help me find out dependent tables on PAY GRADE & PAY GRADE LEVEL.
Kind regards,
Amit JainHi:
T710:
MOLGA - > T500L
SLTYP - > T510A
SLREG - > T510G
SLGRP - > T710A
T710A:
MOLGA - > T500L
SLTYP - > T510A
SLREG - > T510G
FREQU - > T710F
WAERS - > TCURC
WGTYP - > T52D7
Hope it helps,
Regards. -
How to enter entries for table TVZBT
Hi,
can any one help me how to maintain payment team description in defferent languge in TVZBT table.
this table contain the following data in english
SPRAS ZTERM VTEXT
E ZA20 N 30 Due from end billing
Now i have to maintain same date in french ie
F ZA20 N 30d'f bill
how can i update.HI,
write a small program and insert it into the table .
data : wa like TVZBT.
wa-langu = 'F'.
wa-zterm = 'ZA20'.
wa-VTEXT = '30d'f bill '
insert tvzbt from wa.
is it the case that you just want to maintain only one entry of how... if its only one time one entry then i have other way of doing it with out writing the program.. please let me know -
Initial entries for table USR40
Hello,
i'm trying to find out if exists a download list for initial filling of table USR40. Does anybody know a download list and can help me? Thanks.
Best regards,
Helmut SchröderHelmut,
Things to be kept in considered while populating this table are : -
1. Insert your company brand name/product name.
2. Insert SAP standard keywords.(abap, replace)
3. Insert SAP components name (portal etc)
4. Insert the hardware components name seen around your system.
5. Insert popular movie titles, book titles, actors, actress names etc.
6. Insert car names.
7. Insert word initial
8. Insert word sap123 and such other general words.
and any other which you think one can easily guess and get access to the system.
Thanks,
Sri -
"Key entry for table MIMETYPES may only be generic" Error
Dear All,
I am trying to maintain MIME Type to insert my logo but i am getting error plz help.
-rpHi,
Import MIME objects------>
DOC.Class=> M_IMAGE_P
Name=>ABC.jpg
Desc=> xxxxx
Filename=> Path
MIME TYPE=>Image/jpeg.
Pl try with these entries.
Regards. -
No Lock entries for structure Lock in project
Hi
I had uploaded the blueprint first time with wrong logical components from standard excel template from SOLAR_PROJECT_ADMIN. Second time, I am trying to upload with correct logical components. but its end up in the below error.
The batch job is ending with below error when uploading using the standard template from SOLAR_PROJECT_ADMIN .
Please help
thanks
Sol ManHello Novice,
Please check following note 1973194 - Not able to upload project structure from solar_project_admin
BR,
K. -
Hi,
In ECC 6.0 server I found locks of earlier dates on table SWWWIHEAD in SM12.
Please let me know if someone faced this issue earlier and its resolution.
Thanks in advance.
Regards,
DinakarHello,
What sort of locks, how old, where did you find them?
regards
Rick Bakker
hanabi technology
Maybe you are looking for
-
Error in Loading FIGL data into a standard ODS
Hi, I have encountered an error when i attempted to load FIGL data into a standard ODS. Below is the error i received: Error message during processing in BI Diagnosis An error occurred in BI while processing the data. The error is documented in an er
-
NT DLL to Solaris Shared Library; C++ Exceptions
I have written a "plugin" DLL for a third party product that runs on NT. In my plugin I use C++ exception handling and it works wonderfully :-) I am now trying to port my plugin so that it will work with the same third party product, but this time ru
-
Best way to create SVG file from drawing application?
I am developing a drawing application that allow the users to draw and edit static two dimensional images such as Rectangles, Ellipses and Text. I have a superclass SVGShape that contains all the common features of a shape such as x1, x2, color etc.
-
Can we swap serial Numbers for an item instance in Install Base
Hi, Can anyone please let me know if we can swap/replace serial number of an item instance in Install Base. If so, please let me know how to do it. Thanks in Advance.
-
Hi, I have a requirement where I need to maintain hotspot for the graphical bars of the barchart. How can it be accomplished. There is a standard demo program BARCBO02 for Barcharts, but hotspot is not provided. Please let me know how it can be a