Upload
ashish-mohapatra
View
224
Download
0
Embed Size (px)
Citation preview
7/26/2019 Creating Lock Object and Using Lock in Program
1/8
3/7/2016 C r eati ng Loc k Obj ect and U s i ng Lock i n Pr og r am
http://fr eesapabap.bl og s pot.i n/2013/07/cr eati ng - l ock- obj ec t- and- us i ng - l ock- i n.html 1/8
[ h t t p : / / 3 . b p . b l o g s p o t . c o m / -
iTFa y t F Y 7 M U / U e Q v X _ l O r J I / A A A A A A A A B s 8 / V j 8 o x V j w 6 u U / s 1 6 0 0 / 1 . j p g ]
[ h t t p : / / 1 . b p . b l o g s p o t . c o m / -
s n n P B 6 oW 7 T g / U e Q v e O z Z 9 I I / A A A A A A A A B u M / 7 F 7 O q n _ YB O k / s 1 6 0 0 / 2 . j p g ]
Step 1. Go to TCODESE11, Provide the lock object name and Click on
Create Button.
Step2. Provide the Short text and click on the Tables Tab.
Step 3. Provide the table name and Select the Lock mode as Write
Lock and Click on the Lock Parameter Tab.
Creating Lock Object and Using Lock in
Program
http://1.bp.blogspot.com/-snnPB6oW7Tg/UeQveOzZ9II/AAAAAAAABuM/7F7Oqn_YBOk/s1600/2.jpghttp://1.bp.blogspot.com/-snnPB6oW7Tg/UeQveOzZ9II/AAAAAAAABuM/7F7Oqn_YBOk/s1600/2.jpghttp://freesapabap.blogspot.com/2013/07/creating-lock-object-and-using-lock-in.htmlhttp://3.bp.blogspot.com/-iTFaytFY7MU/UeQvX_lOrJI/AAAAAAAABs8/Vj8oxVjw6uU/s1600/1.jpghttp://1.bp.blogspot.com/-snnPB6oW7Tg/UeQveOzZ9II/AAAAAAAABuM/7F7Oqn_YBOk/s1600/2.jpghttp://3.bp.blogspot.com/-iTFaytFY7MU/UeQvX_lOrJI/AAAAAAAABs8/Vj8oxVjw6uU/s1600/1.jpghttp://freesapabap.blogspot.com/2013/07/creating-lock-object-and-using-lock-in.html7/26/2019 Creating Lock Object and Using Lock in Program
2/8
3/7/2016 C r eati ng Loc k Obj ect and U s i ng Lock i n Pr og r am
http://fr eesapabap.bl og s pot.i n/2013/07/cr eati ng - l ock- obj ec t- and- us i ng - l ock- i n.html 2/8
[ h t t p : / / 2 . b p . b l o g s p o t . c o m / - 1 _ e I 1 S K o E j Q / U e Q v e T 1 -
M _ I / A A A A A A A A B u Q / t N K B u C d h p D I / s 1 6 0 0 / 3 . j p g ]
[ h t t p : / / 4 . b p . b l o g s p o t . c o m / -
w P G k k 2 C x d h g / U e Q v f m 2 C D v I / A A A A A A A A B u Y / 0 m a w C V m 2 v c c / s 1 6 0 0 / 4 . j p g ]
Step 4. All the primary key fields of the given table are added underthe Lock parameter section.
Activate the Lock Object.
Step 5. When the lock object is activated it creates two function
modules 'Enqueue & Dequeue'.
Navigate along the below shown path to get the generated function
modules.
http://2.bp.blogspot.com/-1_eI1SKoEjQ/UeQveT1-M_I/AAAAAAAABuQ/tNKBuCdhpDI/s1600/3.jpghttp://4.bp.blogspot.com/-wPGkk2Cxdhg/UeQvfm2CDvI/AAAAAAAABuY/0mawCVm2vcc/s1600/4.jpg7/26/2019 Creating Lock Object and Using Lock in Program
3/8
3/7/2016 C r eati ng Loc k Obj ect and U s i ng Lock i n Pr og r a m
http://fr eesapabap.bl og s pot.i n/2013/07/cr eati ng - l ock- obj ec t- and- us i ng - l ock- i n.html 3/8
[ h t t p : / / 4 . b p . b l o g s p o t . c o m / -
g E 4 5 2 5 H 4 d T 0 / U e Q v g Z 5 D S y I / A A A A A A A A B u g / y y u - N c Z q _ P g / s 1 6 0 0 / 5 . j p g ]
[ h t t p : / / 1 . b p . b l o g s p o t . c o m / -
e K G L L x x t Y e Q / U e Q v h g S x T v I / A A A A A A A A B u o / H K H c V f J S L 7 I / s 1 6 0 0 / 6 . j p g ]
Step 6. FM names.
Step 7. Let's use the generated function module in a program .
Go to TCODE SE38, provide a report program name and click on
create button.
http://3.bp.blogspot.com/-cBquXF9IM_o/UeQviCYZVyI/AAAAAAAABuw/f9Fojp6-2BA/s1600/7.jpghttp://4.bp.blogspot.com/-gE4525H4dT0/UeQvgZ5DSyI/AAAAAAAABug/yyu-NcZq_Pg/s1600/5.jpghttp://3.bp.blogspot.com/-cBquXF9IM_o/UeQviCYZVyI/AAAAAAAABuw/f9Fojp6-2BA/s1600/7.jpghttp://1.bp.blogspot.com/-eKGLLxxtYeQ/UeQvhgSxTvI/AAAAAAAABuo/HKHcVfJSL7I/s1600/6.jpg7/26/2019 Creating Lock Object and Using Lock in Program
4/8
3/7/2016 C r eati ng Loc k Obj ect and U s i ng Lock i n Pr og r am
http://freesapabap.blogspot.in/2013/07/creating-lock-object-and-using-lock-in.html 4/8
[ h t t p : / / 3 . b p . b l o g s p o t . c o m / -
c B q u X F 9 I M _ o / U e Q v i C Y Z V y I / A A A A A A A A B u w / f 9 F o j p 6 - 2 B A / s 1 6 0 0 / 7 . j p g ]
[ h t t p : / / 1 . b p . b l o g s p o t . c o m / - a b 0 d -
L z b w Z Y / U e Q v j g 9 a x W I / A A A A A A A A B v A / i l r j q g b q 6 w o / s 1 6 0 0 / 9 . j p g ]
[ h t t p : / / 1 . b p . b l o g s p o t . c o m / -
U l z 8 g y Z z X S g / U e Q v i k L n m g I / A A A A A A A A B u 4 / v G W A P u g W w K g / s 1 6 0 0 / 8 . j p g ]
Step 8. Call the Enqueue Function Module to lock the Single record.
Step 9. In the program PF Status Create the Application tool
bar button as shown below.
Step 10. Activate the report. Open two different session at a time
http://3.bp.blogspot.com/-cBquXF9IM_o/UeQviCYZVyI/AAAAAAAABuw/f9Fojp6-2BA/s1600/7.jpghttp://3.bp.blogspot.com/-cBquXF9IM_o/UeQviCYZVyI/AAAAAAAABuw/f9Fojp6-2BA/s1600/7.jpghttp://1.bp.blogspot.com/-ab0d-LzbwZY/UeQvjg9axWI/AAAAAAAABvA/ilrjqgbq6wo/s1600/9.jpghttp://1.bp.blogspot.com/-Ulz8gyZzXSg/UeQvikLnmgI/AAAAAAAABu4/vGWAPugWwKg/s1600/8.jpg7/26/2019 Creating Lock Object and Using Lock in Program
5/8
3/7/2016 C r eati ng Loc k Obj ect and U s i ng Lock i n Pr og r am
http://fr eesapabap.bl og s pot.i n/2013/07/cr eati ng - l ock- obj ec t- and- us i ng - l ock- i n.html 5/8
[ h t t p : / / 3 . b p . b l o g s p o t . c o m / -
a S p Z 5 m L 2 H A c / U e Q v Z o b H S K I / A A A A A A A A B t Q / k x r W m H n L g n 8 / s 1 6 0 0 / 1 0 . j p g ]
[ h t t p : / / 1 . b p . b l o g s p o t . c o m / -
D A 9 u t i j b E 5 s / U e Q v Z W w 6 V k I / A A A A A A A A B t M / d R l 6 Y Z s U X N Q / s 1 6 0 0 / 1 1 . j p g ]
and run the same report.
Step 11. Provide the CARRID as 'AA' in both sessions.
Step 12. Run the first session and we have the out put. Execute the
same report in second session,
now we have the error message given below as the same record is
locked in first session.
http://3.bp.blogspot.com/-aSpZ5mL2HAc/UeQvZobHSKI/AAAAAAAABtQ/kxrWmHnLgn8/s1600/10.jpghttp://1.bp.blogspot.com/-DA9utijbE5s/UeQvZWw6VkI/AAAAAAAABtM/dRl6YZsUXNQ/s1600/11.jpg7/26/2019 Creating Lock Object and Using Lock in Program
6/8
3/7/2016 C r eati ng Loc k Obj ect and U s i ng Lock i n Pr og r am
http://fr eesapabap.bl og s pot.i n/2013/07/cr eati ng - l ock- obj ec t- and- us i ng - l ock- i n.html 6/8
[ h t t p : / / 4 . b p . b l o g s p o t . c o m / -
W E Y 2 S _ 2 0 P w E / U e Q v b F a p 2 K I / A A A A A A A A B t Y / h j m O 3 C P 4 P N U / s 1 6 0 0 / 1 2 . j p g ]
[ h t t p : / / 3 . b p . b lo g s p ot . c o m / - i W q B Q U S 9 d -
M / U e Q v b t l 4 I 4 I / A A A A A A A A B t k / V p 0 q J u Y V y H M / s 1 6 0 0 / 1 3 . j p g ]
[ h t t p : / / 2 . b p . b l o g s p o t . c o m / -
p N P A W q h l N _ U / U e Q v b x u 8 A o I / A A A A A A A A B t o / 7 r s B S t 7 L m J E / s 1 6 0 0 / 1 4 . j p g ]
Step 13. Now again run the same report in two different sessions and
provide different inputs and execute it.
Step 14. Now no error message is there.
Step 15. Now again run the same report in two different session and
provide the same input.
Run the program in first session.
http://4.bp.blogspot.com/-WEY2S_20PwE/UeQvbFap2KI/AAAAAAAABtY/hjmO3CP4PNU/s1600/12.jpghttp://3.bp.blogspot.com/-iWqBQUS9d-M/UeQvbtl4I4I/AAAAAAAABtk/Vp0qJuYVyHM/s1600/13.jpghttp://2.bp.blogspot.com/-pNPAWqhlN_U/UeQvbxu8AoI/AAAAAAAABto/7rsBSt7LmJE/s1600/14.jpg7/26/2019 Creating Lock Object and Using Lock in Program
7/8
3/7/2016 C r eati ng Loc k Obj ect and U s i ng Lock i n Pr og r am
http://fr eesapabap.bl og s pot.i n/2013/07/cr eati ng - l ock- obj ec t- and- us i ng - l ock- i n.html 7/8
[ h t t p : / / 2 . b p . b l o g s p o t . c o m / -
K G A 1 b W X _ 3 f 0 / U e Q v c a V b w F I / A A A A A A A A B t w / V W m m q e 0 r z 4 s / s 1 6 0 0 / 1 5 . j p g ]
[ h t t p : / / 2 . b p . b l o g s p o t . c o m / -
Q Xe i 7 5 7p l J U / U eQ vd i o K f G I/ A A A A A A A A B u A / A 7 O s J 8 w8 _ G 8 / s 1 6 0 0/ 1 6 . j p g ]
[ h t t p : / / 3 . b p . b l o g s p o t . c o m / -
y x 7 m b K U B g x g / U e Q v c z u A N T I / A A A A A A A A B t 4 / Y 9 V n U d J 9 i W g / s 1 6 0 0 / 1 7 . j p g ]
Step 16. Now the record is locked. Now Unlock the Record By clicking
on the Application toolbar button that is created in the program PF
Status. Now run the Report in the Second session.
Step 17. The same record is shown in the second session without
error.
Posted 15th July 2013by S Prasad
1 View comments
http://3.bp.blogspot.com/-yx7mbKUBgxg/UeQvczuANTI/AAAAAAAABt4/Y9VnUdJ9iWg/s1600/17.jpghttps://plus.google.com/114153916726242002532http://2.bp.blogspot.com/-QXei757plJU/UeQvdioKfGI/AAAAAAAABuA/A7OsJ8w8_G8/s1600/16.jpghttp://2.bp.blogspot.com/-KGA1bWX_3f0/UeQvcaVbwFI/AAAAAAAABtw/VWmmqe0rz4s/s1600/15.jpg7/26/2019 Creating Lock Object and Using Lock in Program
8/8
3/7/2016 C r eati ng Loc k Obj ect and U s i ng Lock i n Pr og r am
http://fr eesapabap.bl og s pot.i n/2013/07/cr eati ng - l ock- obj ec t- and- us i ng - l ock- i n.html 8/8
1 comment
Top comments
raghu guru 1 year ago - Shared publicly
Thank you so much....
Reply
Add a comment