Can I open file in shared mode so that multiple users can write at same tim

Hi,
  I want to write to a trace file from a user exit and BADI. But I want to create only one trace file in which multiple users can simultaneously append. Is it possible to do this? How? Code could really help as this is urgent.
Thanks for reading.

Hi,
I think we can use the locks shared or exclusive locks concept here
you can find examples in this section on how to implement them -
http://help.sap.com/saphelp_47x200/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/frameset.htm
There are two types of lock in the R/3 System:
Shared lock
Shared locks (or read locks) allow you to prevent data from being changed while you are reading it. They prevent other programs from setting an exclusive lock (write lock) to change the object. It does not, however, prevent other programs from setting further read locks.
Exclusive lock
Exclusive locks (or write locks) allow you to prevent data from being changed while you are changing it yourself. An exclusive lock, as its name suggests, locks an application object for exclusive use by the program that sets it. No other program can then set either a shared lock or an exclusive lock for the same application object.
Regards
Chandralekha
Regards
Chandralekha

Similar Messages

  • Multiple iTunes open in multiple 'user accounts'- at the same time

    We have three people in our family, each with their own iPod/iphone, we sync our iPod/iphone on the same computer but in different ‘user accounts’ in xp.
    Now the problem is ; only one iTunes program can run at a time, so if one person is downloading a podcast and another logs into their user account then they can’t open iTunes because it is open in another user account already.
    There must be a way to run multiple iTunes at the same time in different user accounts?
    Anyone?
    I’m running XP on an i7 machine

    Welcome to AD!
    Sadly, there is not a way to do this.
    http://support.apple.com/kb/TS1969?viewlocale=en_US

  • Sharing a library between multiple user accounts on the same PC

    I have an XP pc setup for the kids and each has their own login so they can have their own bookmarks, shortcuts, desktop, etc. They each have an iPod and use iTunes. I want them to share the same music library so that when one downloads or rips a song, It's available to each of them. Using the default installation, it is currently not working the way I want it to. Is what I'm describing possible? If so, how do I configure it?

    You need to have all the music stored in a shared folder.
    http://support.apple.com/kb/HT1203
    If you move all the files around with Win Explorer, itunes will lose the paths to the files. It might be best to move everything to the shared folder and have them start over with a blank library (new ratings, playcounts)
    The last lines in that article state
    +When another user of the computer has imported new music from CD, repeat steps 6 through 8 to add the music to your library.+
    You might want to use a little program like "itunes folder watch" to do it automatically for you.

  • Sharing iTunes Library Among Multiple User's on the Same Computer

    OK, so I've followed the instructions in iTunes article HT1203 to set up my laptop to share a common iTunes library but for whatever reason it won't open. Here's what I did:
    Backed up the iTunes library to DVD from the old system
    Restored the DVD to the new laptop
    Located the iTunes folder in \Users\Dennis\Music\
    Dragged it to \Users\Public\Public Music
    Opened iTunes
    Editted the Preference Advanced tab to change the location of the music folder to \Users\Public\Public Music
    Closed the preferences
    No music is displayed. I know it's there because when I opened iTunes BEFORE I moved the folder it showed all of the music titles I was expecting to see.
    I even went out and changed the Security on \Users\Public\Public Music to Full Control for all users (only two) and it had no effect. What am I missing?
    Thanks for you advice.

    iTunes always uses the last ITL databse file it used from before, unless it can't find it....in which case, it makes a new library ITL file that's blank.
    When you dragged the ituness folder to the public foder, I think it confused itunes.
    Try a shift-start of itunes and select the ITL file in the public folder.
    Press *AND HOLD* the shift key while starting itunes until you see a prompt to choose or create a library. Browse to that public folder and choose its ITL file.

  • 11GR2 2nodes CRSD ASM - Failed to open file in dirty mode

    Hi...
    we facing a problem with a two node 11gr2 cluster.
    Independently first started node one ore node two. The node that has start first starts normal.
    The second started node fail with error mess ......
    vi .../emcrsp.log
    2011-04-17 10:19:14.406: [  OCRASM][4090540208]ASM Error Stack : ORA-15077: could not locate ASM instance serving a required diskgroup
    2011-04-17 10:19:14.408: [  OCRASM][4090540208]proprasmo: kgfoCheckMount returned [7]
    2011-04-17 10:19:14.408: [  OCRASM][4090540208]proprasmo: The ASM instance is down
    2011-04-17 10:19:14.416: [  OCRRAW][4090540208]proprioo: Failed to open [+DGCONF]. Returned proprasmo() with [26]. Marking location as UNAVAILABLE.
    2011-04-17 10:19:14.416: [  OCRRAW][4090540208]proprioo: No OCR/OLR devices are usable
    2011-04-17 10:19:14.416: [  OCRASM][4090540208]proprasmcl: asmhandle is NULL
    2011-04-17 10:19:14.416: [  OCRRAW][4090540208]proprinit: Could not open raw device
    2011-04-17 10:19:14.416: [  OCRASM][4090540208]proprasmcl: asmhandle is NULL
    2011-04-17 10:19:14.416: [ default][4090540208]a_init:7!: Backend init unsuccessful : [26]
    [   CLWAL][738463920]clsw_Initialize: OLR initlevel [30000]
    2011-04-17 10:19:15.272: [  OCRASM][3128352944]proprasmo: Failed to open file in dirty mode
    2011-04-17 10:19:15.272: [  OCRASM][3128352944]proprasmo: Error in open/create file in dg [DGCONF]
    [  OCRASM][3128352944]SLOS : SLOS: cat=8, opn=kgfolclcpi1, dep=402, loc=kgfokge
    The interlink is up and running.
    We try to recreate the OCR and Voting from daily backup without any result
    Does anyone has an idea ?
    Thanks *T
    Edited by: tbrinkmann on Apr 20, 2011 5:15 AM

    Hi Paul,
    yes the ASM is down.
    That was confusing me. If I shutdown the other node the +ASM can start and clustering com´s up normal.
    It looks like only one node can use voting or ocr....
    The behavior looks like the interlink is down buts is not ;:-(
    One node ( first com´s up) start normally and take all cluster resources ...scan .. the vips..
    And second node show this error mess..
    Thanks
    *T                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Open File in RGB mode

    How to Open file in RGB mode in illustrator using Javascript

    if you have CS6 or above you can executeMenuCommand
    app.executeMenuCommand ('doc-color-rgb');
    or
    app.executeMenuCommand ('doc-color-cmyk');
    this will switch the active documents colour mode

  • Firefox installed the latest version. Now my google browser, history etc. doesn't work anymore. It doesn't respond. I can't run searches from the browser. youtube button is missing. I've tried opening firefox in safe mode but that doesn't work.

    # Question
    firefox installed automatically the latest version. Now my google browser, history etc. doesn't work anymore. It doesn't respond. I can't run searches from the browser. youtube button is missing. I've tried opening firefox in safe mode but that doesn't work

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    What happens if you open Firefox in Save mode?
    *https://support.mozilla.com/kb/Safe+Mode
    *Help > Restart with Add-ons Disabled

  • The Windows SMB feature has file locking if multiple users are accessing the same file.  Does Snow Leopard Server File Sharing (AFP) provide similar features?

    The Windows SMB feature has file locking if multiple users are accessing the same file.  Does File Sharing (AFP) on Snow Leopard Server provide similar services?

    Were you ever able to solve this problem. I'm having similar issues since upgrading to snow leopard. Four macs connect to a Windows Server 2003 for shared files. Each user has full permissions & when we "get info" it shows read & write permissions. Two of the computers were running 10.4, two were running 10.5. Everything worked properly until upgrading to snow leopard. Some files let me copy, move, delete. Others either just hang up or we get a "no permission" error. Also getting a "pdf is in use" error, even when the file/folder doesn't contain a pdf. We had our IT rep check the server who said everything is in working order. They don't represent macs any longer but feel that it's a mac problem. I would have to agree since this problem only started after the upgrade, and the one machine that was not upgraded (still running 10.5.8) is not dealing with these problems.
    Lastly, I would install 10.5 back on all of the computers if I could, but the leopard disk that came with one of the computers wouldn't work with the 2 machines running 10.4 and I didn't see it available at the apple store. I'll buy it if it's still available, but why wouldn't the disks that I have work?
    Thanks for any help

  • How to open multiple hotmail accounts at the same time ?

    Hi,
    Seems maybe normal for some people but I coming from internet explorer and with this explorer I was able to open multiple hotmail accounts at the same time, by default firefox can't do that, is there some setup to modify to open these at the same time ?
    Thanks in advance for any help.
    (Version updated 3.6.8)
    Regards,
    Chris

    You can look at one of these if you want to sign on with different identities at the same time:
    * CookiePie: http://www.nektra.com/oss/firefox/extensions/cookiepie/
    * CookieSwap: https://addons.mozilla.org/firefox/addon/3255
    * Multifox: http://br.mozdev.org/multifox/ - Different logins at the same time

  • Sharing Music with Computer and Airport Express at the same time?

    I just purchased and set up airtunes with some powered speakers.
    I cannot figure out how I can play the same music at the same time to shared computers and the Express Powered Speakers at the same time.
    Can you help me with configuring instructions please?
    iMac G5 with Airport Extreme and DSL w/ iTunes pointing to external hard drive music library.
    PowerBook G4 in the kitchen wireless can share music when computer is selected.
    Powered Speakers on the screen porch with Airport Express connected can only play music when Express is selected.
    How do I fix this so that when we have a dinner party we have the same music in the office, the kitchen and the screen porch all playing together at the same time?
    Thanks.
    I hope my question is clear as I really would love to sort this out before our party.

    Although your problem is slightly different, it seems that you are having the exact same issues that I had just two days ago - solved for me by Felix. If you check the link below, it goes through what I had to do, which was basically to update the software on my airport express base station, which he explains well:
    http://discussions.apple.com/thread.jspa?threadID=476631&tstart=30
    When I did it, it then gave me the option on iTunes (check the picture at http://www.apple.com/airportexpress/airtunes.html to see the magnified bit on iTunes) and then I could just choose multiple speakers concurrently.
    Hope this helps.

  • When my most front window is a safari one and I use the shortcut key "Command N", it opens a new finder window and a new safari window at the same time. Why does it happen?

    When my most front window is a safari one and I use the shortcut key "Command N", it opens a new finder window and a new safari window at the same time. Why does it happen?

    I just found the solution!
    Niel
    Re: Why is my Finder window popping up when I open my Safari window? 
    Jan 20, 2008 7:58 PM (in response to alak)
    Open the General tab of the Safari preferences and correct the home page; the default page is this one. If it has become set to a folder on an FTP server or a local drive, that request will be sent to the Finder. (28252) 
    iMac Late 2007 Core 2 Duo, Mac OS X (10.5.1)

  • Open file in edit mode

    I need to open a file in edit mode. In my web part on item click I need to do some action before hand (like create a folder and copy file, then open it in edit mode).
    I came across the code segment below to set to a hyperlink's onClick() event
    <a onfocus="OnLink(this)"    href="/Shared Documents/myDoc.docx"    onmousedown="return VerifyHref(this,event,'1','SharePoint.OpenDocuments','')"        onclick="return DispEx(this,event,'TRUE','FALSE','FALSE',            'SharePoint.OpenDocuments.3','1', 'SharePoint.OpenDocuments',            '','','','1','0','0','0x7fffffffffffffff')">Click</a>
    But in my case, it would be nice if I can open in C# code behind, after the folder operations in my Visual web part.
    SPfile's file.OpenBinary() give a byte[], but was unable to open file.
    I am using a LinkButton for the user to click on. Any advise ?

    Hi Ahamed,
    I guess you need to undertake some action server side before you redirect the user. There are a number of different ways to do it ... maybe using a long running process with redirect at the end ... or some jQuery that calls a "handler" waits for a response
    and then redirects the user.
    For the code to duplicate or copy the file see here:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.aspx
    if the existing code you have to open the document in edit mode works you should be able to reuse it.
    Thanks Chris

  • Unable to generate SQL trace file in shared mode ??

    Hello,
    I have a 10.2.0.1.0 database on Win2003 server 64 bits, with several instances.
    On instances in dedicated mode, I can create trace files by using dbms_system.set_sql_trace_in_session, but on instances in shared mode nothing happens : no file is created in the udump directory.
    This doesn't make any sense to me o_O
    The shared parameters are the following :
    dispatchers=(protocol=TCP)
    shared_servers=1
    I've checked all the necessary parameters to create a trace file (user_dump_dest, timed_statistics, max_dump_file_size...) and everything is fine.
    I really don't understand why I can't create trace files when the instance is in shared mdoe...
    Can anyone help about this weird issue ?
    thank you !
    regards,
    Antoine

    Remember also that in Shared Server mode the trace information is not written to a single file but is written to the Shared Server trace file. Before Oracle 10g there was no way to pull all the trace information for a single user session together out of the trace files. There is a tool for doing so with 10g.
    HTH -- Mark D Powell --

  • Open file in append mode in JSP

    Hi;
    I am using the java.io.* import attribute in my jsp page and I can write to a txt file, bvut it overwrites on the older file. How do I append to the file, here is my code
    import="java.io.*" %>
    <%
    File fileObject = new File("C:/db/data.txt");
    fileObject.createNewFile();
    FileOutputStream fileStream = new FileOutputStream(fileObject);
    DataOutputStream dataStream = new DataOutputStream(fileStream);
    dataStream.writeChars("Line one\n\r");
    dataStream.writeChars("Line two\n\r");
    dataStream.close();
    out.print("The new file has been created <br>");
    %>
    </body>
    Appreciate help!!! Thanks
    lakshmi

    Go and read the API for java.io
    Use the alternate constructor, which takes a boolean parameter, saying whether to append to the file.
    ie
    new FileOutputStream(fileObject, true);
    If you are writing a text file, you might consider using a FileWriter rather than a FileOutputStream.
    Cheers,
    evnafets

  • How can multiple users edit and access same ACCESS file

    Hello,
    We have 2 access files and multiple users needs to edit and access those files.
    How can I enable mulitple access but only one user can edit rest of users are in read-only mode for one file and multiple access and edit on the another file.

    Hi,
    You should split your database in a front and backend. Then create two seperate front ends which you can distribute. If you need readonly you can opt for two options, setting the attributes of the file to read only or create a front end with read only forms.
    The last one takes a little more work but is safer than setting the attributes to read only because people can change that back themselfs.
    Maurice

Maybe you are looking for

  • ITunes stuck on backing up my iPhone 5C

    I have an iPhone 5C and I tried to get my pictures on my phone.  As soon as I pressed apply it went into the syncing process and froze on "Backing up"  I just want my pictures on my phone.  It's a new out of the box iPhone 5C and I've never backed it

  • How can I get mail to address addressees by their first name, first?

    I like it that Mail is integrated with Contacts. But when I type a name in the To: section, it is always shown as last name, first name. How can I get Mail to address my friends as Gary Smith, not Smith Gary??

  • Package problems when I migrate

    Hello! I'm new to Oracle. The migration program creates this package: CREATE OR REPLACE PACKAGE SUB_APPROVEPkg AS TYPE RCT1 IS REF CURSOR RETURN keyword%ROWTYPE; END; When I try to compile this package I get an error on keyword that says that the ref

  • IPhone 5s can't type chinese character after update to ios 8.1.1

    Updated my iPhone 5S to ios 8.1.1. Since then, I am not able to type in chinese & japanese character. Although I can select the input language from the globe, I type in the 'pinyin' but it shows only the alphabets that I type, not chinese characters.

  • Logon Screen - Users now required to click on 'Other User' before entering account info

    Hi all, we recently deployed a number of updates to the Windows 7 devices on our estate. The updates installed ok but now the Windows logon screen has changed. Previously: the user pressed ctrl + alt + del and then had to enter their Username and Pas