Differeence between Lock object and enqueue_e_table
Hi ,
what is diff between Lock object and enque_e_table. Where to use enqueue_e_table and where to use lock object.
I think with a lock object i can lock more than one table (passing tables in secondary table). Please correct me.
A lock object does not really "lock a table" though most of lock objects refer to a database table.
I explain:
The principle is that when 2 programs lock at the same time with the same lock object, only the first will succeed.
If you have a program which does not use the lock, it may update the database table without any problem.
All programs which update a table have to use the same lock object. Note that users are always able to update this table via SM30 as they don't know the lock object to be used.
enqueue_xxxx is the name of the generated function module used to lock the xxxx lock object. E_TABLE lock is ONLY used by SM30 if I remember well, so that to prevent one table from being updated via SM30 by 2 persons at the same time. But it is not related at all with programs which would also update this table.
Edited by: Sandra Rossi on Mar 14, 2010 9:53 PM
Similar Messages
-
Different _scope parameter of Enqueue_ lock object and Dequeue_ lock objec
Hi, all.
When we create lock object and generate enqueue_<lock object> and
dequeue_<lock object>, the default value of _scope is
enqueue : _scope = 2(update owner only)
dequeue : _scope = 3(for both dialog owner and update owner).
Does anyone tell me the reason of this different default values?
i read help.sap.com - lock related help but i couldn't get the idea
of these different default values between enqueue and dequeue.
Best Regards.
SejoonHi,
When you use ENQUEUE, the owner is going to lock that record. So at that time, the only person who can modify the record in the one who has locked it using ENQUEUE. So only he needs to be informed.
Whereas when you use DEQUEUE, the owner who has locked the record and processed it + the 2nd user who wants to lock it needs to be informed. Hence it is to update the 1st User(who has done the update and planning to release the lock) + 2nd User(who wants to do the update and planning to lock the record ).
Best regards,
Prashant -
Difference between abap object and function
hi all,
i read the book on abap object of the difference between abap object and classical abap.
i know that there is only 1 instance of a specific function group but somehow i still not so clear why subsequent vehicle cannot use the same function. i also can use the do and loop to call the function? if cannot then why?
hope can get the advice.
thanks
using function *********
function-pool vehicle.
data speed type i value 0.
function accelerate.
speed = speed + 1.
endfunction.
function show_speed.
write speed.
endfunction.
report xx.
start-of-selection.
*vehicle 1
call function 'accelerate'.
call function 'accelerate'.
call function 'show_speed'.
*vehicle 2
*vehicle 3
*****abap object*******
report xx.
data: ov type ref to vehicle,
ov_tab type table of ref to vehicle.
start-of-selection.
do 5 times.
create object ov.
append ov to ov_tab.
enddo.
loop at ov_tab into ov.
do sy-tabix times.
call method ov->accelerate.
enddo.
call method ov->show_speed.
endloop.Hi
Now try this:
REPORT ZTEST_VEHICLEOO .
PARAMETERS: P_CAR TYPE I,
P_READ TYPE I.
* CLASS vehicle DEFINITION
CLASS VEHICLE DEFINITION.
PUBLIC SECTION.
CLASS-DATA: MAX_SPEED TYPE I,
MAX_VEHICLE TYPE I,
NR_VEHICLES TYPE I.
CLASS-METHODS CLASS_CONSTRUCTOR.
METHODS CONSTRUCTOR.
METHODS ACCELERATE.
METHODS SHOW_SPEED.
METHODS GET_SPEED EXPORTING E_SPEED TYPE I.
PRIVATE SECTION.
DATA: SPEED TYPE I,
NR_VEHICLE TYPE I..
ENDCLASS.
* CLASS vehicle IMPLEMENTATION
CLASS VEHICLE IMPLEMENTATION.
METHOD CLASS_CONSTRUCTOR.
NR_VEHICLES = 0.
ENDMETHOD.
METHOD CONSTRUCTOR.
NR_VEHICLES = NR_VEHICLES + 1.
NR_VEHICLE = NR_VEHICLES.
ENDMETHOD.
METHOD ACCELERATE.
SPEED = SPEED + 1.
IF MAX_SPEED < SPEED.
MAX_SPEED = SPEED.
MAX_VEHICLE = NR_VEHICLE.
ENDIF.
ENDMETHOD.
METHOD SHOW_SPEED.
WRITE: / 'Speed of vehicle nr.', NR_VEHICLE, ':', SPEED.
ENDMETHOD.
METHOD GET_SPEED.
E_SPEED = SPEED.
ENDMETHOD.
ENDCLASS.
DATA: OV TYPE REF TO VEHICLE,
OV_TAB TYPE TABLE OF REF TO VEHICLE.
DATA: V_TIMES TYPE I,
FL_ACTION.
DATA: V_SPEED TYPE I.
START-OF-SELECTION.
DO P_CAR TIMES.
CREATE OBJECT OV.
APPEND OV TO OV_TAB.
ENDDO.
LOOP AT OV_TAB INTO OV.
IF FL_ACTION = SPACE.
FL_ACTION = 'X'.
V_TIMES = SY-TABIX * 2.
ELSE.
FL_ACTION = SPACE.
V_TIMES = SY-TABIX - 2.
ENDIF.
DO V_TIMES TIMES.
CALL METHOD OV->ACCELERATE.
ENDDO.
CALL METHOD OV->SHOW_SPEED.
ENDLOOP.
SKIP.
WRITE: / 'Higher speed', VEHICLE=>MAX_SPEED, 'for vehicle nr.',
VEHICLE=>MAX_VEHICLE.
SKIP.
READ TABLE OV_TAB INTO OV INDEX P_READ.
IF SY-SUBRC <> 0.
WRITE: 'No vehicle', P_READ.
ELSE.
CALL METHOD OV->GET_SPEED IMPORTING E_SPEED = V_SPEED.
WRITE: 'Speed of vehicle', P_READ, V_SPEED.
ENDIF.
Try to repeat this using a function group and I think you'll undestand because it'll be very hard to do it.
By only one function group how can u read the data of a certain vehicle?
Yes you can create in the function group an internal table where u store the data of every car: in this way u use the internal table like it was an instance, but you should consider here the example is very simple. Here we have only the speed as characteristic, but really we can have many complex characteristics.
Max -
Difference Between Business Object And Class Object
Hi all,
Can any one tel me the difference between business object and class Object....
Thanks...
..AshishHello Ashish
A business object is a sematic term whereas a class (object) is a technical term.
Business objects are all important objects within R/3 e.g. sales order, customer, invoice, etc.
The business objects are defined in the BOR (transaction SWO1). The have so-called "methods" like
BusinessObject.Create
BusinessObject.GetDetail
BusinessObject.Change
which are implemented (usually) by BAPIs, e.g.:
Business Object = User
User.Create => BAPI_USER_CREATE1
User.GetDetail => BAPI_USER_GET_DETAIL
CONCLUSION: Business Object >< Class (Object)
Regards
Uwe -
What are the differences between PD objects and PA objects?
can any one tell me What are the differences between PD objects and PA objects?
PA is based on Infotypes 0000-0999. PD is based on Infotypes 1000-1999, chief being Objects Infotype 1000. Objects Infotype is the source of different Object Types such as Person, Position, Org Unit etc. You can check that through transaction OOOT.
Regards
Lincoln -
With regard to lock object and authority check
hi all
i would like to know about lock object and authority check specifically in reports. there is a coding in sap library with regard to authority check, but there is no coding to restrict user (i mean there is no user names that the object is restricting for a particular user or any user has got permission to change or display object).
further, the code mentions that you need an authorization in your user master record for the object, could any of u explain where is user master record.
below is the code for authority check.
*& Module USER_COMMAND_0100 INPUT
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'SHOW'.
AUTHORITY-CHECK OBJECT 'S_CARRID'
ID 'CARRID' FIELD '*'
ID 'ACTVT' FIELD '03'.
IF SY-SUBRC NE 0. MESSAGE E009. ENDIF.
MODE = CON_SHOW.
SELECT SINGLE * FROM SPFLI
WHERE CARRID = SPFLI-CARRID
AND CONNID = SPFLI-CONNID.
IF SY-SUBRC NE 0.
MESSAGE E005 WITH SPFLI-CARRID SPFLI-CONNID.
ENDIF.
CLEAR OK_CODE.
SET SCREEN 200.
WHEN 'CHNG'.
AUTHORITY-CHECK OBJECT 'S_CARRID'
ID 'CARRID' FIELD '*'
ID 'ACTVT' FIELD '02'.
IF SY-SUBRC NE 0. MESSAGE E010. ENDIF.
MODE = CON_CHANGE.
SELECT SINGLE * FROM SPFLI
WHERE CARRID = SPFLI-CARRID
AND CONNID = SPFLI-CONNID.
IF SY-SUBRC NE 0.
MESSAGE E005 WITH SPFLI-CARRID SPFLI-CONNID.
ENDIF.
OLD_SPFLI = SPFLI.
CLEAR OK_CODE.
SET SCREEN 200.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
i thank u all for the help in advance.hi
this might help
REPORT YUSRLOCK NO STANDARD PAGE HEADING.
TABLES: TRDIR, USR02.
DATA: MARK,CNTR TYPE I,
ACCNT LIKE USR02-ACCNT, ERDAT LIKE USR02-ERDAT,
ANAME LIKE USR02-ANAME, CLI(3) VALUE 'AAA', SZIN TYPE I,
SYDATUM LIKE SY-DATUM, FLAG(3).
TABLES: UINFO.
DATA: OPCODE TYPE X VALUE 2.
DATA: BEGIN OF USR_TABL OCCURS 10.
INCLUDE STRUCTURE UINFO.
DATA: END OF USR_TABL.
START-OF-SELECTION.
CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE
ID 'TAB' FIELD USR_TABL-SYS.
SELECT * FROM USR02 CLIENT SPECIFIED ORDER BY MANDT BNAME.
IF USR02-MANDT <> CLI.
SZIN = SZIN + 1. SZIN = SZIN MOD 2.
CLI = USR02-MANDT.
ENDIF.
IF USR02-UFLAG = 0.
MARK = ' '.
ELSE.
MARK = 'X'.
ENDIF.
CLEAR FLAG.
LOOP AT USR_TABL.
IF USR_TABL-BNAME = USR02-BNAME AND USR_TABL-MANDT = USR02-MANDT.
FLAG = '!!!'.
ENDIF.
ENDLOOP.
SYDATUM = SY-DATUM - 30.
IF SYDATUM < USR02-TRDAT.
IF SZIN = 0.
WRITE:/ ' ', MARK AS CHECKBOX,' ', USR02-BNAME COLOR 2,
' ',USR02-MANDT COLOR 2,
' ',USR02-USTYP COLOR 2,
' ',USR02-TRDAT COLOR 2, USR02-LTIME COLOR 2,
' ',FLAG COLOR 6.
ELSE.
WRITE:/ ' ', MARK AS CHECKBOX,' ', USR02-BNAME COLOR 3,
' ',USR02-MANDT COLOR 2,
' ',USR02-USTYP COLOR 2,
' ',USR02-TRDAT COLOR 2, USR02-LTIME COLOR 2,
' ',FLAG COLOR 6.
ENDIF.
ELSE.
IF SZIN = 0.
WRITE:/ ' ', MARK AS CHECKBOX,' ', USR02-BNAME COLOR 2,
' ',USR02-MANDT COLOR 2,
' ',USR02-USTYP COLOR 2,
' ',USR02-TRDAT COLOR 4, USR02-LTIME COLOR 4,
' ',FLAG COLOR 6.
ELSE.
WRITE:/ ' ', MARK AS CHECKBOX,' ', USR02-BNAME COLOR 3,
' ',USR02-MANDT COLOR 2,
' ',USR02-USTYP COLOR 2,
' ',USR02-TRDAT COLOR 4, USR02-LTIME COLOR 4,
' ',FLAG COLOR 6.
ENDIF.
ENDIF.
HIDE: USR02-BNAME, USR02-MANDT.
ENDSELECT.
CLEAR USR02.
TOP-OF-PAGE.
WRITE:/ 'LOCK USER CLIENT TYPE LAST lOGIN ' COLOR 6.
SKIP.
AT USER-COMMAND.
IF SY-UCOMM = 'SEL'.
DO.
CLEAR MARK.
READ LINE SY-INDEX FIELD VALUE MARK.
IF SY-SUBRC NE 0. EXIT. ENDIF.
IF USR02-BNAME IS INITIAL.CONTINUE.ENDIF.
SELECT SINGLE * FROM USR02 CLIENT SPECIFIED WHERE
MANDT = USR02-MANDT AND BNAME = USR02-BNAME.
IF MARK = 'X' AND USR02-UFLAG = 0.
USR02-UFLAG = 64.
UPDATE USR02 CLIENT SPECIFIED SET: UFLAG = 64 WHERE
MANDT = USR02-MANDT AND
BNAME = USR02-BNAME.
COMMIT WORK.
ENDIF.
IF MARK = ' ' AND USR02-UFLAG = 64.
USR02-UFLAG = 0.
UPDATE USR02 CLIENT SPECIFIED SET: UFLAG = 0 WHERE
MANDT = USR02-MANDT AND
BNAME = USR02-BNAME.
COMMIT WORK.
ENDIF.
ENDDO.
CLEAR USR02.
ENDIF.
regards
Arun -
About lock object and how to create it
Hi ABAP gurus,
Can any one explain about the Lock Objects and How to create Lock object step by step.
Rgds,Hi Rangamma,
Check this info.
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.
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.
Technically:
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.
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
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards -
What is the use for lock object and how to use the lock objects
Hi Guru's,
I am new to ABAP .Can you please clarify the that what is the use of lock object and how to use the loct object .what is use of the Deque & Enque function modules .hi ,
below are some minfo about lock objects :
Lock Objects
These types of objects are used for locking the access to database records in table. This mechanism is used to enforce data integrity that is two users cannot update the same data at the same time. With lock objects you can lock table-field or whole table.
In a system where many users can access the same data, it becomes necessary to control the access to the data. In R/3 system this access control is built-in on database tables. Developers can also lock objects over table records.
To lock an object you need to call standard functions, which are automatically generated while defining the lock object in ABAP/4 dictionary. This locking system is independent of the locking mechanism used by the R/3 system. This mechanism also defines LUW i.e. Logical Unit of Work. Whenever an object is locked, either by in built locking mechanism or by function modules, it creates corresponding entry in global system table i.e. table is locked. The system automatically releases the lock at the end of transaction. The LUW starts when a lock entry is created in the system table and ends when the lock is released.
Creating Lock Objects
Lock object is an aggregated dictionary object and can be defined by using the following steps:
o From initial data dictionary screen, enter the name for the object, Click Lock object radiobutton and then click on Create. The system displays a dialog box for Maintain Lock Objects screen
o Enter short text as usual and the name for primary table.
-Save
-Select Tables option
From this screen you can:
Select secondary tables, if any, linked by foreign key relationship.
Fields for the lock objects. This option allows you to select fields for objects (R/3 system allows locking up to record level). Lock object argument are not selected by user but are imposed by the system and includes all the primary keys for the table.
1) Exclusive lock: The locked data can only be displayed or edited by a single user. A request for another exclusive lock or for a shared lock is rejected.
2) Shared lock: More than one user can access the locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock is rejected.
3) Exclusive but not cumulative: Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. All other lock requests are rejected.
Also, last but not the least, locking the object is logical (locking with any enqueue ) .so, you have to use the lock object while trying to access from second program .
reward if helpful ,
Regards,
Ranjita -
Relation between Query Object and InfoObject
Someone know the sap bw 3.5 table with the association between Query Object and InfoObjects/Calculated Variables used in?
Thanks a lot!
EmilianoCan you explain what you mean with try rsrt->query name?
There are no interesting tables with RSRT prefix name.
Thanks
Emiliano -
Diff between context object and x path
hi gurus,
what is difference between context object and x path?Hi rohit,
If u have multiple receiver system then to determine the reciever u can use context object.....
Context objects are alternative to XPATH expressions. It is like macros in other programming langugage. If you define this , you can use this object in the receiver determination while doing conditional receiver determination
To better idea see the blog...
/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
Check out these also...
http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
Here is a scenario where context objects were used for BPM
Technical Context Object in ccBPM
Get the details here:
http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
Technical Context Objects :
http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
A list of the Technical Context Objects names can be found here:
http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
XPath to show the path (Multiple Receivers)
/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
Customize your 'XPATH' Expressions in Receiver Determination
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
regards
biplab
Use a Good Subject Line, One Question Per Posting - Award Points -
Understanding db_stat -CA output, lockers, lock objects and locks
I'd like to understand this output. Transaction 80000045 is holding a write lock on page 11 and waiting for a write lock on page 13, which, however, isn't granted as long as transaction 80000051 holds on to its read lock.
Is there anything in this table explaining why 80000051 seems unwilling to move on and release the read lock?
And what does dd=37 mean?
Michael Ludwig
Locks grouped by lockers:
Locker Mode Count Status ----------------- Object ---------------
a1 dd=37 locks held 1 write locks 0 pid/thread 1284/4896
a1 READ 1 HELD test.dbxml handle 2
a4 dd=36 locks held 0 write locks 0 pid/thread 1284/4896
a5 dd=35 locks held 1 write locks 0 pid/thread 1284/4896
a5 READ 1 HELD test.dbxml handle 4
a8 dd=34 locks held 0 write locks 0 pid/thread 1284/4896
a9 dd=33 locks held 1 write locks 0 pid/thread 1284/4896
a9 READ 1 HELD test.dbxml handle 6
ac dd=32 locks held 0 write locks 0 pid/thread 1284/4896
ad dd=31 locks held 1 write locks 0 pid/thread 1284/4896
ad READ 1 HELD test.dbxml handle 8
b0 dd=30 locks held 0 write locks 0 pid/thread 1284/4896
b1 dd=29 locks held 1 write locks 0 pid/thread 1284/4896
b1 READ 1 HELD test.dbxml handle 10
b4 dd=28 locks held 0 write locks 0 pid/thread 1284/4896
b5 dd=27 locks held 2 write locks 0 pid/thread 1284/4896
b5 READ 1 HELD test.dbxml handle 12
b5 READ 6 HELD test.dbxml handle 0
b8 dd=26 locks held 0 write locks 0 pid/thread 1284/4896
bc dd=25 locks held 1 write locks 0 pid/thread 1284/4896
bc READ 1 HELD test.dbxml handle 14
bf dd=24 locks held 0 write locks 0 pid/thread 1284/4896
c0 dd=23 locks held 2 write locks 0 pid/thread 1284/4896
c0 READ 1 HELD test.dbxml handle 16
c0 READ 2 HELD test.dbxml handle 0
c3 dd=22 locks held 0 write locks 0 pid/thread 1284/4896
f1 dd=21 locks held 2 write locks 0 pid/thread 1284/4896
f1 READ 1 HELD test.dbxml handle 18
f1 READ 1 HELD test.dbxml handle 0
f4 dd=20 locks held 0 write locks 0 pid/thread 1284/4896
f5 dd=19 locks held 0 write locks 0 pid/thread 1284/2648
f6 dd=18 locks held 0 write locks 0 pid/thread 1284/2648
f7 dd=17 locks held 0 write locks 0 pid/thread 1284/2648
f8 dd=16 locks held 0 write locks 0 pid/thread 1284/2648
f9 dd=15 locks held 0 write locks 0 pid/thread 1284/2648
fa dd=14 locks held 0 write locks 0 pid/thread 1284/2648
fb dd=13 locks held 0 write locks 0 pid/thread 1284/2648
fc dd=12 locks held 0 write locks 0 pid/thread 1284/4184
fd dd=11 locks held 0 write locks 0 pid/thread 1284/2672
fe dd=10 locks held 0 write locks 0 pid/thread 1284/4184
ff dd= 8 locks held 0 write locks 0 pid/thread 1284/2672
100 dd= 7 locks held 0 write locks 0 pid/thread 1284/2672
101 dd= 5 locks held 0 write locks 0 pid/thread 1284/2648
102 dd= 4 locks held 0 write locks 0 pid/thread 1284/2648
80000044 dd= 9 locks held 0 write locks 0 pid/thread 1284/4184
80000045 dd= 9 locks held 1 write locks 1 pid/thread 1284/4184
80000045 WRITE 1 WAIT test.dbxml page 13
80000045 WRITE 1 HELD test.dbxml page 11
8000004d dd= 6 locks held 0 write locks 0 pid/thread 1284/4100
8000004e dd= 6 locks held 0 write locks 0 pid/thread 1284/4100
8000004e READ 1 WAIT test.dbxml page 11
80000051 dd= 3 locks held 1 write locks 0 pid/thread 1284/2648
80000051 READ 1 HELD test.dbxml page 13
80000054 dd= 2 locks held 0 write locks 0 pid/thread 1284/5816
80000054 READ 1 WAIT test.dbxml page 13
80000055 dd= 1 locks held 0 write locks 0 pid/thread 1284/4824
80000055 READ 1 WAIT test.dbxml page 13
80000056 dd= 0 locks held 0 write locks 0 pid/thread 1284/2648
80000057 dd= 0 locks held 0 write locks 0 pid/thread 1284/2648
80000057 READ 1 WAIT test.dbxml page 11
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Locks grouped by object:
Locker Mode Count Status ----------------- Object ---------------
80000045 WRITE 1 HELD test.dbxml page 11
8000004e READ 1 WAIT test.dbxml page 11
80000057 READ 1 WAIT test.dbxml page 11
b1 READ 1 HELD test.dbxml handle 10
ad READ 1 HELD test.dbxml handle 8
bc READ 1 HELD test.dbxml handle 14
80000051 READ 1 HELD test.dbxml page 13
80000045 WRITE 1 WAIT test.dbxml page 13
80000054 READ 1 WAIT test.dbxml page 13
80000055 READ 1 WAIT test.dbxml page 13
b5 READ 1 HELD test.dbxml handle 12
a1 READ 1 HELD test.dbxml handle 2
b5 READ 6 HELD test.dbxml handle 0
c0 READ 2 HELD test.dbxml handle 0
f1 READ 1 HELD test.dbxml handle 0
a9 READ 1 HELD test.dbxml handle 6
a5 READ 1 HELD test.dbxml handle 4
f1 READ 1 HELD test.dbxml handle 18
c0 READ 1 HELD test.dbxml handle 16Thanks, Lauren.
(1) Transaction 80000057 of thread 2648 is waiting for page 11.
(2) Page 11 is locked by transaction 80000045 of thread 4184, which is also waiting for page 13.
(3) Page 13 is locked by transaction 80000051 of thread 2648, which is, as you say, stalled with another transaction of the same thread, which is waiting for page 11.
So there is a circle here: 57 waiting for 45 waiting for 51 stalled by 57. But BDB can't see this is a conflictuous situation because 51 and 57 belong to the same thread, and conflict is defined to be between different threads, not within one thread.
How can I see that this is the case? Is it just a possibility to watch out for: Two transactions on the same thread?
Michael Ludwig -
InDesign CS5.5 - locked objects and align tools not working together
In earlier versions of InDesign I used the Align palette, spacing 0 mm, and "dragged in" other objects to perfect fit to the center object. InDesign drags in objects from the right this way. So if I needed to drag in objects from the left side I locked the center object first and InDesign understood what I wanted to do.
In CS5 and 5.5 this is not possible anymore. If I lock an object it is not selectable. But there is a preference setting for this so I change it. Now I can select the locked object. But when I try to align it with another object there is an error message saying I can't move this object because it i locked. Well... I am not trying to move it hence the lock I applied...
I don't understand this changed behaviour. If a locked object is out of play I might as well use the layer palette and lock objects that way.
Could someone please shed some light on this?Apparently the distribute spacing command only uses the top object as a reference. I would say that's a bug.
-
Mapping errors between data object and automated activity
Hi,
in a automated activity of a bpm process I try to call a web service method ("addBook") which exptects an object called u201CbookWrapperu201D. The object "bookWrapper" consist of three variables: u201Cbidu201D (Integer), u201Cauthoru201D (String), u201Ctitleu201D (String).
When I try to directly map, for example u201Ctitleu201D, out of an existing Data Object (Filled by an human activity: u201CDO_CreateBooku201D) I got the error:
Expected: xsd:string
Found list of u2018com.sap.dictionary.stringu2019
Severity and Description Path Resource Location Creation Time Id
The literal: "Expression for target path 'DO_BookWrapper/title' has errors." do not have type, in expression: "#erroneous=true;sources=TaskOutput/UIResponse/start/title#TaskOutput/UIResponse/start/title". LocalDevelopmentLocalDevelopmentbook_chapter_process~demo.sap.com/src/bpmn create book and chapter.bpmn Expression for target path 'DO_BookWrapper/title' has errors. [Galaxy, Rule, Literal] 1260878200220 4720
I do not know why this error occurs because both type are strings. Is it due to the fact that I do not have an object instead of variables as input parameters? I used the automatically generated data types as data objects.
May anybody help me please? Can I make casts?
RegardsHi Martin,
From the error that you get, it is indicated that you try to map a list to a single variable.
If you want to do so, please see the documentation http://help.sap.com/saphelp_nwce711/helpdata/en/47/63604e42bf6831e10000000a421937/frameset.htm where it is said:
If you map a node, whose content is a list or a node, with one or more parents that are lists, to a single-valued node, you get an error. Depending on your needs you could provide custom expression, for example to aggregate the list to a single value, or you could do parent mapping between the multi-valued parent nodes.
So you need to create an EJB function that does the conversion between a list and single value type. Here is the help for functions: http://help.sap.com/saphelp_nwce711/helpdata/en/47/63604e42bf6831e10000000a421937/frameset.htm and especially for EJB functions http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/609c9982-39af-2b10-768b-e5bd8813c1f3.
I hope this helps you.
Best regards,
Radost -
Break association between original object and transformation copies?
Hi,
After I had created an array of duplicates for the original drawing object, I found that once the original object is modified, all its copies are changed automatically afterwards.
Is it possible to break the association between the original object and is transformation copies, so that subsequent editing can be made on each individual copy?
BobModify>Separate Attributes. This will give you the objects as a group. The Transform Effect is no longer in effect.
Judy Arndt -
Link Between Business Object and Transaction
<b>How is Business Object linked to transactions?</b>
For example, how is business object BUS2032 (Sales order) linked to transaction VA01 (Create sales order)?Hi Ben,
I'm not sure that you link a business object and a transaction code explicitly. Normally in the business objects methods you have coded what transaction code should be called. Therefore if you use the methods of the business objects it then knows what transaction to call.
Conversely on the workflow side you will find that down in the depths of the coding for VA01 (as an example) it calls workflow function modules and raises events. When doing so it provides the business object id and key to the business object (i.e. the sales order number). Indirectly I guess the change documents that are raised for most things in SAP like sales documents are uniquely identified and therefore can also be translated to the business object key (e.g. sales documents will have their own change document type).
A brief example in my 4.6c system can be found in include LIEDPF4C in the form finsta_kontoauszug_buchen with a call to function SAP_WAPI_CREATE_EVENT. You see the the parameter "object_type" has a variable passed to it "objtype_finsta". If you drill back on objtype_finsta you see that is hardcoded to the value BUS4499.
I guess you could say the developer of the business object knows what transaction codes the business object should use and the developer of the code in the transaction code knows what business objects he should be raising events for if necessary.
Hope this helps.
Regards,
Michael
Maybe you are looking for
-
SAP & Crystal reports connectivity
Hi SAP Gurus, I'm facing a problem while connecting ABAP query & infoset from crystal reports. I've installed crystal reports 8.5 and also SAP crystal report enterprise add on. when i want to connect to sap system from crystal reports, it aunthentica
-
Fatal Error when starting Power Saver on Tecra M9
When I try to start Power Saver on a Tecra M9 (21), I get a Fatal error; code: 0X51A. I've tried various combinations of uninstalling, cleaning registry, rebooting, etc., but everytime I reinstall (version 7), I get the same fatal error.
-
This copy of iTunes is corrupted or not installed correctly.
After many tries (and failed attempts) to install the 9.0.3 update and getting this message above in the subject line I restarted, reinstalled again and succeeded (in the install)... until I tried to open iTunes to find that I still got the error. Wh
-
Photo Gallery combined with three column CSS
Hi, I am trying to implement your photo gallery into our school site and I am having trouble with the layout. I am using a three-column layout created with CSS and JS, and then placing the photo gallery inside of this. What happens is when you pull u
-
I've created titles in Boris but can't figure how to get them to the timeline. I hit apply when finished but where does it go? Thanks. Kosmc4