How to identify if a user master record is locked

Hi,
I want to use function module BAPI_USER_CHANGE to change a user's master record (transaction SU01).  But if the user that I want to change is being modified by another user, this BAPI doesn't update, correctly so.  Is there a way to identify if a user master record is being edited by someone else?  This way, I can find out before making the change whether the change will be successful.
Along the same lines, if I'm adding a role (from transaction PFCG) to a user ID and role is locked, I'd like to know that before hand; before I try to assign a user to that role programmatically.
Thank you for your help.
Pete

Hi
Refer this Lock Owners
Definition
Person who holds a lock.
Use
At the start of an SAP transaction, two owners are always created who can request locks.
A lock can have one or two owners. You use the _SCOPE parameter to specify this.
To determine in a program which user is currently holding a lock, use the ENQUEUE_  function module.  This function module puts the name of the owner into SY-MSGV1.
Structure
There are dialog owners and update owners.
An owner is identified by his or her owner ID, as described in the section entitled The Lock Table.
A lock can have one or two owners. The ABAP programmer uses the _SCOPE parameter to define this (see below).
Example
The graphic below shows how lock owners function during a dialog transaction.
SAP LUW: Dialog Transaction with Update
At the start of the dialog transaction, the system creates two lock owners: the dialog owner Owner_1 and the update owner Owner_2.
During the course of the transaction, Owner_1 requests a lock, as does Owner_2 slightly later. When the update task is called (see also Functions of the Update Task), the lock and Owner_2 are inherited by the update task. An update work process is started with two owners, in the same way as a dialog work process, and then has three owners until the update is completed. All of the locks are released with an implicit DEQUEUE_ALL at the end of the update, at the latest.
Regards
Shiva

Similar Messages

  • Create the user master records using the Enterprise Portal

    Hello gurus!!
    I'm configuring SRM 7.0 with EP.
    I'm configuring the organizational structure, and steps guide (pdf and Solution Manager ) are:
    1. Go to transaction SU01 and create an ABAP User. (SRMADMIN)
    2. Assign this user the administrator role /SAPSRM/ADMINISTRATOR
    3. As the administrator, creater the organizational plan
    4. Create the remaining organizational unit
    5. Using the Enterprise Portal application, Business Parter:Employee, create the user master records for the departmental managers.
    How I must create the user in Enterprise Portal? What user I have to use to log on in the Enterprise Portal application? Has the user to be integrated in the organzational structure??
    Thanks in advance!!!!
    Best regards.
    Maria.

    Hi,
    You can create users in WebDynpro application. You can also create users in USERS_GEN transaction.
    Regards,
    Masa

  • User master records

    Hey everybody!
    I'm a newbie in the SRM-topic. Do I have to maintain 'user master records' in SRM and in the ERP? If I only maintain in SRM, how is this booked in the Backend-System (without 'user master records')?
    Thanks in advance,
    Felix

    Felix,
    It is not mandatory to maintain the same User Master Record in SRM and ERP. The User Master record is maintained in SRM for end users perfoming shopping cart functionality or processing any other request pertaining to SRM. Follow on documents booked in the backend system are created by a background RFC user which facilitates the connection between SRM and the backend system.
    Also a User Master record (SU01 User) is maintained in SRM so that this will facilitate the creation on an EBP user. An EBP user consists of the followings objects:
    1.) Position
    2.) SU01 User
    3.) Central Person
    4.) Business Partner
    The relationship built between these objects creates an EBP user which can perform shopping. These relationships are stored in table HRP1001.
    Please assign points, if answer is usefull !!
    Sundeep

  • Date format in user master record cannot be interpreted

    When running an Infopackage from BW to an R/3 customer extractor, the R/3 job cancels with this error message, "Date format in user master record cannot be interpreted". I can restart the R/3 job program from the ABAP editor screen using the same variant that BW issued and the job runs without cancelling.
    NOTE: This process runs without any errors on our QAS system.
    Any idea what causes this error message and how I can fix it?

    Hi Alan,
    I have resolved this issue by myself. Same just like yours mine is also a custom Datasource.
    Solution for this is go to source system check your Background user id i.e like BWALEREMOTE or ALEREMOTE which ever id you have created for setting up RFC connection between R/3 & BW. Check your Date format which has been set for your background user. Use the second format mm/dd/yy. Then run your extraction you will not face any problem.
    If you still have any problem do let me know. If this solution helps you assign points.
    Regards,
    Bhuvana.

  • RSCCUSND (CUA: Distribution of User Master Records)

    Hello Techi!
    Good Day!
    I have successfully configured CUA in SAP Production landscape. All
    functions are working fine, except RSCCUSND (CUA: Distribution of User
    Master Records).
    I have created the test user in Central system and for child systems as
    well with different roles, now I want to synchronize user master record
    and Roles from Central system to child systems.
    I executed the report RSCCUSND from the central system, selected the
    required receiving System, Selected the user "test", select all the
    options from Distribution list and execute it.
    In SCUL I am getting "Distribution Unconfirmed" status for the said
    user, as well as the user status is as it is in SU01 (both in child and
    Central system)
    I am using ECC6 SR3, SAP_Basis release 7.
    Pls. advice how to resolve it .
    Regards
    Saqib Ayub

    I think you missed the concept a bid:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bf/b0b13bb3acd607e10000000a11402f/frameset.htm
    Normally with CUA you can only assign profiles in the maser.
    Can you check this page again?
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/b1b13bb3acd607e10000000a11402f/frameset.htm
    then
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cc/50b43be7492354e10000000a114084/frameset.htm
    In the child there should be a X un table USBAPILINK ( this will avoid creating users in the child system)
    RSCCUSND you normally don't have to use: this is if you by accident loose you master and you have to send some data again
    Also read this: http://www.sdn.sap.com/irj/sdn/crphelp#section17
    Good luck
    Edited by: Nico Bresseleers on Nov 19, 2009 7:22 AM

  • User Master record

    Hi Experts,
    I need to maintain mail id in my user master record.
    Please tell me what is the Tcode for it and how to do it  .
    Thanks in advance,
    MK

    Thanks Atish.
    Yes, i don't have access to SU01 transaction.
    And Basis requested me to update my user master record with the email address .
    So, Is there any other of doing it ? or should i revert it back to Basis again.

  • Update termination Error : Maintain Output device in User master record

    Hi All,
    For transaction IW32 when print is given we have getting Update termination error : Maintain Output device in User master record.
    I have set the user_settings = Space, for output_Options passed the output device . Even for control_paramters I have passed the device while calling the Smartform . However there is no use. Still I am getting the update termination error.
    Please let me know how to solve this issue. Any OSS Note is there for this.
    Thanks in Advance!
    Regards,
    Preethi G

    Hi,
    Thanks for the reply. There is no problem in the print program .
    In the user master record , if the output device is not given and in the print program if we pass the output device. the error is coming.Is there any way to solve the issue at the print program level with out maintaining the user master.Please let me know.
    Many Thanks!
    Regards,
    Preethi G

  • Digital Signature - Setup User master record for Particular group of user

    I already setup Electronic signature for RR and UD. but having problem to complete transaction.
    When a Digital signature is executed, the system should copies the signatory name from the user master record to the signed document. However, the name has not been maintained completely in user master record and for this reason, i cannot execute the signature. So how can i setup User master record for Particular group of user?
    Regards,
    NP

    It is actuly comes under QM module to save the test record, but before saving it, we need to have authorization.
    For authorization, we are having digital signature.
    So i need to assign user group for particular those authorization digital signature. so i thought, might be IDM can help on that?
    How would i do that? so are you guys able to help me on that ?
    Thank you
    NP

  • SAP R/3 Mass User Master Record Update

    I am currently involved in a project to update specific fields of the User Master Record for all applicable records from an external source.
    For the mass change i was thinking along the lines of CATT, BDC/ABAP or Table Changes. Obviously table changes was out first because of the dangers of causing inconsistencies among the SAP standard tables. CATT i think is not really made for this purpose but could probably do the job, and BDC or ABAP is probably the right way to go.
    Any suggestions/comments?
    Thanks

    hello Ashley,
    All 3 options are good.
    I personally use CATT for this purpose however it depends on what your trying to update. SU10 is another option but its drawback is that you can use only 1 value at a time. In CATT however you can use different values for different users. Also time involved in creating CATT tool is very less.
    Obviously you have options like BDC/LSMW and ABAP also with you.
    Regards.
    Ruchit.

  • Export and import user master records

    Hi,
    We are planning for system refresh activity. So I am planning Production server data to copy in Quality server. I want retain Quality server users like that only.  Is there any way I can export user master records and import it later?
    Please advice us.
    Our environment is 4.6 C, Oracle 10g, windows 2003 server.
    Regards
    Satya

    Hello Satyanarayana,
    please be aware, that with SAP_USER standard change logs are not copied. So if you have such in your QAS, they will be propably overwritten by the PRD content. You will loose then change logs for role changes, which are kept in the standard change documents (cdpos,cdhdr).
    User change docs are copied together with the users with provfile SAP_USER.
    That is just for your information. In general there will not be change documents for roles in QAS.....
    b.rgds, Bernhard

  • User Master Records/Tables - Exporting User tables for Recovery

    Hi there,
    Work in the Security area ....Outside of the client export of SCC8 for user master records/roles. Is there another recommended method for saving user tables that can be re-imported on the chance of deletion of users and roles and can be selectively re-imported if needed. For instance if a particular User Grouip was deleted with X number of users, could that be re-imported by a selective means ? SU10 is handled delicately in prod when used but unwanted results still occur. Approaches appreciated ..

    Hi,
    Try the following..
    BAPI_USER_CREATE         Create a User
    BAPI_USER_CREATE1       Create a User 
    Hope that helps! 
    Regards,
    Tanveer
    <b>Please mark helpful answers</b>

  • Comparing User Master Records in SAP ECC 6.0

    Hi,
    I have 2 questions,
    1.We have an issue with user master records comparison. we have assigned a certain role to the user with validity till 15.11.2010. But user had authorizations related to this role till 21.11.2010.  The profile got deleted on 21.11.2010 from user record instead of 15.11.2010.Further I noticed that there was fresh assignment for this role as on 18.11.2010 for another new user. whenever fresh assignment happens the user master record should happen automatically but it is not the case here ? what can be reason ?
    2.By google I have found one report PFCG_TIME_DEPENDENCY which can be scheduled as a background job periodically for user masster records comparision. I just want to know will there be any adverse impact on system performance if we run such jobs periodically ?
    Please help.
    Thanks in advance.
    Regards,
    Syam sundara babu.v

    Hi Nikhil,
    1.We have an issue with user master records comparison. we have assigned a certain role to the user with validity till 15.11.2010. But user had authorizations related to this role till 21.11.2010. The profile got deleted on 21.11.2010 from user record instead of 15.11.2010.Further I noticed that there was fresh assignment for this role as on 18.11.2010 for another new user. whenever fresh assignment happens the user master record should happen automatically but it is not the case here ? what can be reason ?
    This happens if the role is assigned twice and only 1 instance is removed.
    2.By google I have found one report PFCG_TIME_DEPENDENCY which can be scheduled as a background job periodically for user masster records comparision. I just want to know will there be any adverse impact on system performance if we run such jobs periodically ?
    The PFCG_TIME_DEPENDENCY job is required to perform the user master record comparison, so that these kind of inconsistencies will not occur. There will not be any system performance issues and it should be scheduled to run Dialy after 00:00 hours, so that the expired profiles will be deleted.
    Alternatively, you can use PFUD transaction to create this job or to run the comparison once.
    Hope this answers!!
    Best Regards,
    Raghu
    Edited by: Raghu Boddu on Nov 24, 2010 9:06 PM

  • User Master Record : Which table the Email Id stored?

    Hi All,
    Which table and what is the field the Email id stored in.
    I checked the USR02 and some other tables and I did't find it.
    Thanks.
    Rgds,
    Raj.

    >
    John Navarro wrote:
    > I run into to this problem many moons ago and the solution is to run tcode SQVI.
    >
    > Create a query and join the following tables (USR21 & ADR6) and use the relevant fields.  I have the complete steps documented in a procedure if you need it posted on this thread.
    >
    > Let me know and good luck!
    OK - Here it is!  I forgot I got the step by step procedure on this forum
    You can get the information through one more option also. In case of function module you need to execute the module again and again for each user or may be need to write a report. I would like to suggest you an alternative. That is making use of queries.
    1. Go to transaction SQVI.
    2. In the input field Quick View give the any name for query for example Z_EMAIL_ADD.
    3. Choose create option. In the resulting pop up give description in Title field. In data source choose TABLE JOIN. Select Basis mode.
    4. In the next screen choose INSERT TABLE pushbutton and in the pop up give USR21. Then again choose INSERT TABLE pushbutton and this time give ADR6.
    5. Now go back using back arrow or F3.
    6. Now in the new screen you will be under the tab strip List fld select.. From that entries under available filed (on right hand side) select User name in user master record and the first entry for Internet mail (SMTP) address. Now using single arrow pushbutton pointing towards left move these fields to tabstrip List fld select.
    7. Now go to tabstrip selection filed. As done in step 6 move User name in user master record under it.
    8. Save the changes and go back. A pop up will come asking you to save quick view Z_EMAIL_ADD. Choose yes.
    9. Now execute the query. In the input field you can give one user or multiple users at a given time.
    This approach is easier and time saving in my opinion and gives output in desirable format.
    Regards,
    -John N.

  • User master record not sufficiently maintain for object authori

    Dear Friends,
    I am getting error in the query for one of the test user id "User master record not maintained sufficiently for object authori".
    I have authorization variable call zso_auth, zdc_auth for authroization for sales office and distribution channel.  I have maintained value in pfcg.  Please help. What will be problem.
    Regards,
    Chetana Kotian

    HI Sourav,
    It means that you are not authorized to see the ODS data. (Your BW logon ID has not been added to the users list of the Role.
    Regards,
    R.Ravi

  • Missing Field error when modifying user Master Record

    We are using our corporate LDAP to authenticate our portal users and do not have (nor do we want) write permission to the LDAP. We are using additional attributes (ume.admin.addattrs) to hold information pertinent to the portal. We are running into a problem though when required information is missing from the LDAP user master record. For example, if the users email address is missing, when we attempt to save a user's record with the additional attributes we need, the system responds with a "Missing Field" error message and will not save the additional attribute until the LDAP record is complete. Currently the only work around to this problem is to notify the LDAP administrators and have them update the record (not a high priority for them).
    Is there a way to have the portal ignore incomplete records and just save what it has?
    Thanks
    Ken Burd

    We are using our corporate LDAP to authenticate our portal users and do not have (nor do we want) write permission to the LDAP. We are using additional attributes (ume.admin.addattrs) to hold information pertinent to the portal. We are running into a problem though when required information is missing from the LDAP user master record. For example, if the users email address is missing, when we attempt to save a user's record with the additional attributes we need, the system responds with a "Missing Field" error message and will not save the additional attribute until the LDAP record is complete. Currently the only work around to this problem is to notify the LDAP administrators and have them update the record (not a high priority for them).
    Is there a way to have the portal ignore incomplete records and just save what it has?
    Thanks
    Ken Burd

Maybe you are looking for

  • How to Create payment term for -Net Due 1st Day of Second Month Following

    Hi, We need to add a payment term for "Net Due 1st Day of Second Month Following Delivery". We need this to be in the system as soon as possible as we just were told of a change in terms for our client effective May 1st. Kindly advice me how to selec

  • Exporting Into Excel from Crystal Reports 8.0.1.0

    Post Author: Manoj CA Forum: Exporting Hi, I am using Seagate Crystal Reports 8.0.1.0 along with my VB application. System was exporting into Excel on Older Versionsof Windows like 98 and all. But in XP, after exporting if i open the exported file, e

  • Does the "Reset All Settings" option delete app data?

    I have upgraded from a 16GB iPhone 4S to a 64GB iPhone 6. I restored my new phone from a backup of my old one just so I could transfer app data from one app. All went well with that, but now the app is sending notifications that I can no longer progr

  • IR-runtime

    what the diff will make in service and _service without party_? thanq

  • Geetting mp3s to show up in my Podcast playlist/folder

    Is there a way I can get mp3's I've put on my Touch to appear in my Podcast playlist/folder? I have a number of podcasts I don't get through iTunes that I copy on to my Touch in a custom playlist weekly. So they go into my Music playlist/folder. I ca