Regarding locking changes to a ztable
hi guys,
i got a z table and this needs to be locked for changes ( do not maintain entries )in test server and production but it should allow user to maintain entries in development server. i have got 2 roles with me but how do i do this requirement,
Can any one please suggest me regarding this,
Thank you
Pavan kumar Ravikanti
Hi Pavan,
Go thru the following links... thought might help you!!
http://help.sap.com/saphelp_40b/helpdata/es/52/671374439b11d1896f0000e8322d00/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67129F439B11D1896F0000E8322D00/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/4d/6d8939fb613f71e10000000a11402f/frameset.htm
also there is means to restrict access to the specified tables by assigning it to a request and then having restrictions over the request. But this is done by the administrators ony.
if you could find a solution let us know!!!
regards,
Naveenan.
Similar Messages
-
Regarding Lock objects concept
Hi,
I am interested in knowing what is the significance of Lock objects in SAP.
Can we co-relate SAP lock objects with Oracle.
Frnds, I dont need any material i hav enough but i want to know the cocept behind this.
Thanking u all.
regards,
surajHi,
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
Check these links -
lock objects
Lock Objects
Lock Objects
Regards,
Priyanka. -
Regarding locks in SAP ( concurrent access by two reports for a same table)
Hi All,
I have a problem regarding locks. I have designed a report using lock function modules to set locks and release them after the database operations and it works perfectly. There is another report which also does some DB operation on the same table but there are no table locks using enqueue function module implemented in this report and despite of lock set by first report on the table it is able to do the changes on the db table. I need to know how to overcome this problem.
Thanks for your solutions.
Regards,
SachinSachin Dangayach wrote:
Hi All,
>
> I have a problem regarding locks. I have designed a report using lock function modules to set locks and release them after the database operations and it works perfectly. There is another report which also does some DB operation on the same table but there are no table locks using enqueue function module implemented in this report and despite of lock set by first report on the table it is able to do the changes on the db table. I need to know how to overcome this problem.
> Thanks for your solutions.
>
> Regards,
> Sachin
lock procedure requires that all programs involved cooperate. Inconsistencies can occur if a program reads or changes data without having previously locked it. When a lock is set, the data records are only protected against changes by another program if this program also requests a lock before accessing the data.
Please check the above extract from [SAP help|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eed9446011d189700000e8322d00/frameset.htm], to maintain data consistency, it must be ensured that all the programs should lock the data before changing.
-Rajesh. -
Question regarding to changing the region of the app with remaining balance
Question regarding to changing the region of the app with remaining balance
Hello, I am attempting to change the location of my app store which has remaining balance of 0.01$. In order to change the location of the store, it requires spending all the remaining balance. As my balance is too low " 0.01$" to buy an app from the store, I am not able to change the region of my app store. Moreover, Since I am not a residence in USA, I am not able to use my credit card either.
I am wondering if it is possible to change the location of my app store with a remaining balance OR to delete my current balance.
Thanks
NejemClick here and request assistance.
(85511) -
Hello,
For the auditors I need the answer to the follwing question:
In the list of changes related to users accounts (produced via SUIM) I see the following entry:
User Name Date Time Changed by Action Old Contents of Changed Field Text New Contents of Changed Field Text TCode
TESTACC 05/23/2008 13:55:53 TESTACC Lock Changed 0 Not Locked 128 Incorrect Logon Lock KRNL
Action says: Lock changed, and Text said "Not Locked". Why Text says "Not Locked"?
Thanks
GalinaSilvia,
Thanks for your reply.
Here is the same line in different format where each field has its value next to it. I understand that user was not locked and then got locked due to multiple logins. What I did not understand is why Text said Not Locked. And auditors did not understand this as well.
User Name: TESTACC
Date: 05/23/2008
Time:13:55:53
Changed by: TESTACC
Action: Lock Changed
Old Contents of Changed Field: 0
Text: Not Locked
New Contents of Changed Field: 128
Text: Incorrect Logon Lock
TCode: KRNL
It makes sense now.
Galina -
i have lost my icloud account password and i have tried a lot to get back my password through i forgot but i have not recieved any mail to my id regarding the change of password
Check your spam mail. If you have more than one email address verified with that apple id that email will go to the rescue email.
About the rescue email address
http://support.apple.com/kb/HT5312 -
Regarding Attribute Change Run failure.
Dear All,
We have a process chain which contains many meta chains.
Now in each chain i mean meta chain there are attribute change runs
We have desegregated the attribute change run. is tere any method to place a check for attribute change run locks because at the last i have another attribute change run which is failing every day because of the attribute change run is still happenign in some chain.
how do i implement it?
Thanks in advance
Janardhan Kumar.Hi Janardhan,
In master data process chain where you have added process of attribute change, just insert a program before this process:
The program is: RSDDS_CHANGERUN_MONITOR
This program will check for any another attr change run running at that time and if there's any other attr change run runnning locking the object which your next attr change run requires then this program will not allow your attr change run to run.
Once all the locks all cleared for attr change run it will trigger the next node.
This program has a do loop which keeps on checking until unless locks are cleared.
Regards,
Vij -
Hi,
I was going thru a doc about locks and I came with a clause...
".....was trying to change the lock mode from 3 to 5........"
what is lock mode 3 and 5??
Regds,
SYou should check this link --
http://orafaq.com/node/854
Hope this will solve your problem.
Regards.
Satyaki De. -
Lock change of ztransaction while using in migo
hi all,
in general how do we stop change of a document while it is edited in other transaction .
Ex : if PO number is in use while doing MIGO it will stop us editing in ME22n.
i have a similar requirement , we have a modulepool program ZMRN_CREATE, ZMRN_CHANGE jst like ME21n ME22n .
the number generated here is used in MIGO , how can i stop editing or change of MRN number while it is in use in MIGO screen.
Thanks in advance...Pl help in this regard...
Deepak.Hi Deepak ,
Use this report in your program to lock and unlock your tcode in the background.
use SUBMIT statement in your current module pool.
REPORT Z_LOCK_UNLOCK_TRANSACTIONS
LINE-SIZE 80
MESSAGE-ID 00.
* Program to lock and unlock transactions
* Suvendu Swain
TABLES: TSTC.
DATA: LOCK_TEXT(30).
*SELECTION-SCREEN begin.
SELECT-OPTIONS: S_TCODE FOR TSTC-TCODE OBLIGATORY NO INTERVALS.
PARAMETERS: P_LOCK RADIOBUTTON GROUP A,
P_UNLOCK RADIOBUTTON GROUP A DEFAULT 'X'.
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD' FIELD 'SM01'.
IF SY-SUBRC NE 0.
MESSAGE E172 WITH TEXT-010.
STOP.
ENDIF.
IF P_LOCK &H3D 'X'.
LOCK_TEXT &H3D TEXT-008.
ELSE.
LOCK_TEXT &H3D TEXT-009.
ENDIF.
LOOP AT S_TCODE.
CALL FUNCTION 'Z_LOCK_UNLOCK_TRANSACTIONS'
EXPORTING
TCODE &H3D S_TCODE-LOW
LOCK &H3D P_LOCK
UNLOCK &H3D P_UNLOCK
EXCEPTIONS
FAIL_TO_LOCK &H3D 1
FAIL_TO_UNLOCK &H3D 2
INVALID_TCODE &H3D 3
INVALID_OPTIONS &H3D 4
TRANSACTION_ALREADY_LOCKED &H3D 5
TRANSACTION_ALREADY_UNLOCKED &H3D 6
OTHERS &H3D 7.
CASE SY-SUBRC.
WHEN 0.
WRITE:/ TEXT-001, S_TCODE-LOW, LOCK_TEXT.
WHEN 1.
WRITE:/ TEXT-002, S_TCODE-LOW.
WHEN 2.
WRITE:/ TEXT-003, S_TCODE-LOW.
WHEN 3.
WRITE:/ TEXT-004, S_TCODE-LOW.
WHEN 4.
WRITE:/ TEXT-005, S_TCODE-LOW.
WHEN 5.
WRITE:/ TEXT-006, S_TCODE-LOW.
WHEN 6.
WRITE:/ TEXT-007, S_TCODE-LOW.
ENDCASE.
ENDLOOP.
hope this will solve your problem.
cheers,
Suvendu
Edited by: Suvendu Swain on May 10, 2009 10:27 AM -
Hi Experts,
Can you please guide me how i can find out the lock object name. If i know the table name. is there any table which stores the table name and lock object name for that table.
Or any function module to which i can pass table name in return i can get lock object name.
i have to do all this by coding.
Its very urgect.
Thanks in advance.
AZAD:)Hi
Lock Objects Tables is: <b>DD25L</b>
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.
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
Issue regarding to change taxcode in tab Gl-account for T.cod MIR7
Hi Expert,
I have issue regarding Tax code in Tab Gl-account for t.cod MIR7 which come by-default , i wan to change that taxcode based on purchase order number which also have tax code with multiple line item in tab PO Refrence,,i want first taxcode of tab PO Refrence to be copied in first line item of tab GL-account based on po number ,can anyone put a light on this issue with priority..
Regard's,
shaikh khalid.Hi,
You can clear the old items posted in 28000 with the other leg in suspense / clearing GL Account.
Once the above is done, please post once again to Vendor clearing the suspense / clearing account.
Ensure that the suspense / clearing account does not have any open items.
The lines are transfered to new recon account.
Hope this helps, if yes, please assign points.
Regards,
Sankar -
Regarding Locking of PL/SQl Procedure or function
Hi,
My PL/SQL code is getting locked. The flow is like this.
My PL/SQL code writes a particular data into a file which is read by a C program. Once the processing is done then the C driver writes back into anither file called response file from which my PL/SQL code reads from. What is happening is I use dbms_lock.sleep in my PL/SQL code. Now my PL/SQL code is hanging. In the sense when try to recompile my PL/SQL file, it gets timed out saying that It could not lock the object [Function Name]. How can I find out whether any other process is using my File or not. Even if it using how can I release the lock.
Thanks in avanceI think you have executed this PL/SQL code earlier and is hung. When you are trying to recompile that, it is not allowing to change the code as it is already being used and "locked".
You need to find out the session which is holding the lock on this code and kill the same. -
Regarding function changes in sap backend system
Hi Team,
I would like to check if we can alter functions and its actions/permissions in SAP back end and transport it across landscape.
This is needed as we customize the rule set and its difficult to validate the risk analysis changes directly in production when its made via nwbc.
Thanks in advance.
Regards,
AnilHi Anil
If you maintain a Function definition then you are updating those tables (Function to Action (transactions) and Function to Permission (Authorisations) tables). So the answer is YES
If you are asking if you should maintain directly in Production Vs Transport then the answer would be DEPENDS - what is your company process
If you are asking if you can maintain the SAP delivered rule set (activate via BC SETS) then the answer is DEPENDS. Again, it comes back to your company business process. You would then need to consider how you manage any future recommendations from SAP if they update their rule sets
But again, those tables is where you store function definitions so of course you can maintain them.
Regards
Colleen -
Regarding attribute change runs in process chains
Hi All,
While creating process chain for master data objects. I am trying to incorporate attribute change run process type for an info object. But the system asks for the DTP of the attribute and when i choose the DTP then both DTP and then Attribute are being incorporated. This is not exactly a problem but i need to understand why it is happening as i am already using that DTP to load data. Will this affect the data in master data object?. Thanks in advance.
regards
satishHi Bhagyarekha,
The reason behind that error could be:
An attempt is made to activate a characteristic whose compounding was replaced and whose navigation attributes were simultaneously deleted. The replacement of the compounding temporarily deletes the M view of the characteristic during internal activation. The process of deleting navigation attributes involves converting the attribute SID tables. However, the M-view of the characteristic, which has just been deleted, is needed for this conversion.
Check this SAP Note:
Note 684405 - Replacing the compounding and deleting navigation attr.
Hope it helps.
Veerendra. -
Confirmation to user regarding Save changes depending on data change
Hi,
I am using JDeveloper 11.1.1.0.2 version and new to ADF. I have a situation like, i have 8 - tabs and user will be moving from one to another by optionally modifying the information displayed on the each tab. If user doesn't modify the page, then system should not prompt for "Saving the data in the perticular tab". However in the case of modification in the tab and moving to another tab, system shoud prompt to the user with the message "Do you want to save the changes? Yes/No".
I need a help regarding this by using the JavaScript / backing beam. I feel, if this can be implementable by using Javascript will be good.
If we implement the above by using backing bean, then we may end-up in using ActionListner to send the status back to server and at the time of moving to another tab, again travel back to server to get the changed value status. If i have 20 elements on page, there may be ActionListner for all GUI element respectively and frequently traversing back to server may not be good.
If the code is shared related to above scanario, will be a great help.
Thanks in advance,
--MajidThis might help
http://manieshsailoz.blogspot.com/2010/05/declarative-dialog-component.html
Maybe you are looking for
-
Dear all, I used the report S_ALR_87100623 to manage the retirement and i didn't found an option to display the customer number & description. I need a report on Asset Retirement (similar to S_ALR_87100623) which display the customer number and his d
-
TS1424 How to research "payed for purchases when none were made"...
I would like to know how to contact apple to research charges to my credit card. Thank you.
-
Best Way to Publish mp3 Files?
I'm looking for recommendations about the best way to publish mp3 files. I have a client that is a church that wants their staff to be able to upload mp3 files on a weekly basis from a web client and have those files automatically be included in a po
-
iTunes has stopped to load any covers. Anybody else have this problem? Thanks a lot Peter
-
Can anyone help me re transferring music
I want to copy the music that I have on my iphone and ipad into my existing itunes library but when I go to sync them it says that the music will be wiped off my device and replaced with the music from the library. Can anyone help? Thanks