IO Service Level versus Profit Analysis Simulation Set Service Level Change

R12 (RAC) Service Level versus Profit Analysis
Projected Service Level in Analysis workbench shows a strange negative quantity
when ussing Item Simulation Set in a plan.
The customer expects that when Service Level is changed in the item
simulation set, the system should use It.
But Target Service level still appears negative in the Analysis Workbench
Test Case:
Inventory Planner Responsibility.
Navigation: Inventory Plan > Name.
Look for an existing inventory Plan. Click on "Plan Options" Button.
Assign an Item simulation Set.
Save changes.
Close the "Plan Options" window.
From the "Inventory Plan Names" window push the "Launch Plan" Button.
When plan finished, navigate to: Analysis Workbench
Look for the plan, and review the showed value in the field projected Service Level.
They noticed that when they create an Item simulation Set, Original Service Level
field is not populated and they thought maybe It was part of the problem, so they
tried adding a value in the Service Level Field of the item simulation set.
However; it did not work.
They are expecting that if no change has been made to the service level in the Item simulation set, It should use the service level set in the Service Level set, used in the inventory Plan.

Hi Bruyneel,
I've solved the problem. I think while doing kernel or component upgrade SAP clear all configuration that connected from ABAP and JAVA. You can re-config from config tool.
1. Goto \usr\sap\<SID>\<SIst.Num>\j2ee\configtool and execute go.bat
2. cluster-data -> global server configuration -> services -> com.sap.security.core.ume.service.
3. Configure:
ume.login.guest_user.uniquefields with J2EE_GUEST, and make sure the user is already exist in ABAP
ume.persistence.data_source_configuration     dataSourceConfiguration_abap.xml
ume.r3.connection.master.ashost
ume.r3.connection.master.client
ume.r3.connection.master.passwd : with SAPJSF user's password
ume.r3.connection.master.sysnr
ume.r3.connection.master.user : SAPJSF User
Refer for this link for help: http://help.sap.com/saphelp_nw04s/helpdata/en/20/361941edd5ef23e10000000a155106/frameset.htm
Thanks & Best Regards,
Yan

Similar Messages

  • ARQ: What level of risk analysis is performed in Access Request???

    Hi,
    I have a question/doubt which might look silly!
    When we perform risk analysis in access request in "Risk Violation" Tab. May I know if I am correct in saying that this is "USER LEVEL" risk analysis?
    Secondly, note#1638140 says:
    Resolution
    The Impact Analysis type in Access Request risk analysis simulation is suppose to evaluate the HR org or position changes, which might have an impact on other users that are in the same org or assigned to the same positions.  The Risk Analysis type is showing existing risks plus the risks if the new access in the request is added to the users or roles.
    I am a bit confused with this statement. It says "if the new access in the request is added to the users or roles".
    Can anybody please help me understand this?
    Thirdly, if a request shows existing risks plus new risks if the new access (only 1 single role) in the request is added to a user, does such request qualify for "Violation Detour" and changes its path for the new role added?
    Please advise.
    Regards,
    Faisal

    Faisal,
    not really sure if I understand your doubts correctly.
    The risk analysis in simulation analyzes all the current and to-be-added authorization. Better to explain in an example.
    User has ROLE_A and ROLE_B and in simulation you add ROLE_C. ROLE_A contains FB60, ROLE_B MM03 and ROLE_C FK02. Per definition from rule set a violations is between FK02 and FB60. MM03, as it is only display, isn't a risk.
    So the user has with the current authorization (MM03, FB60) no risk. In simulation you add FK02 which conflicts with FB60 and the simulation will show a violation. In the simulation you can differenciate risks based on their color if it comes from existing or newly added authorization.
    In simulation it is possible to simulate different scenarios like adding tcodes, roles or profiles. Be aware that if you run the simulation if always analyzes the full authorization (current and simulated).
    Does this answer your question?
    Regards,
    Alessandro

  • Link material to profit center at storage location level

    Hello,
    I have one plant 0001,  two storage location assigned to this plant (MAG1, MAG2).
    In " MAG1", I am keeping the consignment stock (stock blongs to my vendor), hence when I create the material at the storage location I need that profit center be set to PF1
    "MAG2" is my own stock location, so when I create material at MAG2 level, I need that profit center be set as PF2.
    Does standard SAP allows such scenario.
    Is there any possibility to map this scenario
    Many thanks for your help
    Meher Souayeh

    Dear,
    Basically GUIXT script work mainly from Technical point of view..
    Here they can write codes accordinly so that if you want to make any sort of changes in the application or if you want to put some restriction parameters then by writing codes, it is very much possible to get the desired output.
    Hope this clears your doubt.
    Utsav

  • C How to Set Isolation Level in the Connection String

    How to Set Isolation Level in the Connection String using the "Microsoft OLE DB Provider for DB2 Version 4.0"?
    We are trying to move from Crystal Reporting that run against a IBM DB2 database on a mainfram to SSRS reporting and we have downloaded the "Microsoft OLE DB Provider for DB2 Version 4.0" and then worked with the DB2 Administrator to create the
    Packages.  We only have access to use the "Read Uncommitted ("MSUR001") package.   We were able to connect and pull data before he removed access to the other packages, but after setting access the Connection keeps trying to use
    the 'Cursor Stability (MSCS001)" package.   How do we change the Default to the "Read Uncommitted ("MSUR001") package???   Since it is keeps defaulting to the the other package
    we can't connect to do it in the T-SQL query, it has to be set at the Connection String level.

    Hi Dannyboy1263,
    According to your description, you want to set the Transaction Isolation Level in Connection String. Right?
    In Reporting Services, the Connection String for OLE DB Connection can only contains Provider, Data Source and Initial Catalog. There's no property for setting Transaction Isolation Level in the Connection String. Based on my knowledge, we can
    only set the Transaction Isolation Level at Query level or set it by using code (C#, VB, Java...) to call the property of Connection. So unfortunately your requirement can't be achieved currently.
    Reference:
    OLE DB Connection Type (SSRS)
    Data Connections, Data Sources, and Connection Strings in Reporting Services
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • CC: Warning: -O5 overwrites previously set optimization level of -O3

    I'm trying to get a clean compile of the Boost 1.32.0 library using the Studio Express August build, and in the course of that (this post is not about Boost), I get the following:
    sunpro-C++-action bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/release/exception.o
    /opt/SPROexpress/opt/SUNWspro//bin//CC -O -xlang=c99 -mt \
    -library=stlport4 -features=tmplife -features=tmplrefstatic -errtags=yes \
    -D_POSIX_THREAD_SEMANTICS -c -DNDEBUG -DNDEBUG -fast -O4 -xtarget=generic \
    -library=stlport4 -features=tmplife -features=tmplrefstatic -erroff=wbadinitl,wbadasgl \
    -Qoption ccfe -complextmplexp \
    -I"bin/boost/libs/filesystem/build" -I"/thirdparty/lib/boost_1_32_0" -I"/thirdparty/lib/boost_1_32_0" \
    -o "bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/release/exception.o" \
    "/thirdparty/lib/boost_1_32_0/libs/filesystem/build/../src/exception.cpp"
    CC: Warning: -O5 overwrites previously set optimization level of -O3
    Maybe I'm doing something wrong in the way that both -O and -O4 get specified on the command line, but why is the error message specifying -O5 and -O3, neither of which I specified??

    Herteg,
    I see what's going on here. -O expands to -O3. That
    is overridden by the -O5 which is included in the
    expansion of -fast.This is correct.
    Four things about this:
    (1) The warning message should say "overrides", not
    "overwrites".I think that there should be no warning at all. We have "rightmost wins" rule for the compiler flags, and both -O and -fast are documented well enough to understand which -O<n> (or -xO<n>) they will be translated into.
    The problem is that I don't see this "rightmost wins" in the documentation for -O<n>/-xO<n>.
    (2) There is no corresponding warning when the -O5 is
    overridden by the following -O4. Or is it?I believe there shouldn't be one in the first place.
    (3) The effect of multiple -Olevel options is
    unspecified; that should be corrected in the manual.Well, it is specified, it's just not documented :-)
    (4) The Sun Studio 11 C++ User's Guide is
    inconsistent on the meaning of the -O option:
    A.2.61 -O
    The -O macro now expands to -xO3 instead of -xO2.
    A.2.145 -xOlevel
    On the SPARC Platform:
    The -O option is equivalent to the -xO2 option.The second one is wrong. But I suppose you already know this.
    Thank you very much for bringing this to our attention! Would you please file a bug through the web interface: http://bugs.sun.com/services/bugreport/index.jsp ?
    Thanks,
    Boris

  • Help on  Setting logical Levels  in Fact tables and on Dimension tables

    Hi all
    Can any body provide any blogs or any king of material on what exactly is levelling .
    Like after creating the Dimensional hierarchies we need to set the logical levels for the LTS of fact tabels ri8 .So what is the difference between setting logical levels to fact tabels and also Setting levelling on Dimension tables .
    Any kind of help is appreciated
    Thanks
    Xavier.
    Edited by: Xavier on Aug 4, 2011 10:50 AM

    I have read these blogs ,but what my question is
    Setting the logical levels in LTS of Fact tables i understood .
    But we can also set the logical levels for dimensions also ri8 .I didn't understand why do we set the logical levels for dimensions .Is there any reason why we go with the levelling at dimensions
    Thanks
    Xavier
    Edited by: Xavier on Aug 4, 2011 2:03 PM
    Edited by: Xavier on Aug 4, 2011 2:32 PM

  • Profit centre at storage location level

    Hi Experts,
    Can we define a profit centre @ storage location level?
    My scenario :
    The document splitting of FI is activated for the document type of FI and also the profit centre is mandatory entry for any accounting document that will be created so when I am trying to post a MIGO I encounter the error
    "Balancing field "Profit Center" in line item 001 not filled"
    We have a option of maintaining a profit centre in plant data/storage location but i will be updated in the profit centre field of Costing1 view . But we does not want to upadate in costing view of material master data.
    Basically We want the system to determine profit centre based on storage location  in Goods reciept transaction .
    Helpful Sugestions on this would be helpful & rewarded max .
    points.
    Regards,
    Patil
    t

    Hi Raju ,
    Thanx for the reply.I am Basavarajs Collougues.
    Our Enterprise Structure of our Client is as follows
    One company code is assigned to one plant and we have treated all the branches across India as Storage locations.Each  Branch (Storage Location- MM) is configured as Profit centres in FICO.The goods are procured for a storage location.
    By using the functionality of document splitting, the profit center field is made mandatory for all the accounting documents generated in the system. Now we are trying to post a goods receipt against a Purchase Order, the system is giving error "Balancing field "Profit Center" in line item 001 not filled"
    The option is there to maintain a profit center at the plant level.But we have several storage locations under the plant and each storage location has to be linked with the particular profit center. So that, while doing goods receipt the system should determine profit centre based on the storage location in purchase orders.
    Please suggest on this.
    Regards,
    SVU123

  • BizTalk 2010 Error consuming WCF service metadata. Object reference not set to an instance of an object.

    "Error consuming WCF service metadata.
    Object reference not set to an instance of an object."
    I have no clue what happen to my BizTalk.  I checked all the below forum but m clueless why BTS not consuming WCF through Generated Items. I tried both metadata exhange endpoint and metadata file through
    svcutil. but all my wcf services are working fine with .net C# client.
    http://blogs.msdn.com/b/appfabriccat/archive/2010/11/23/how-using-duplex-mep-to-communicate-with-biztalk-from-a-net-application-or-a-wf-workflow-running-inside-appfabric-part-1.aspx
    http://msdn.microsoft.com/en-us/library/bb226552.aspx
    http://msdn.microsoft.com/en-us/library/bb798122.aspx
    http://masteringbiztalkserver.wordpress.com/tag/wcf-service-consuming-wizard/
    I reinstall the WCF lob Adapter SDK to my BizTalk VM but still no clue. no erros in event viewer nothing.
    http://www.abdulazizfarooqi.wordpress.com Abdul Aziz Farooqi [BizTalk & SharePoint Consultant] MCPD Web & MCPD SharePoint 2010

    Thanks from me too Neal - this worked from me. I wan't able to consume directly from exchange because the certificate is broken. However, I was able to convince Google Chrome to let me view the /Services.wsdl and from there I could save the .wsdl and two
    .xsd files. In my case the problem lay at the top of the .wsdl file. I changed the following:
    <wsdl:types>
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xs:import namespace="http://schemas.microsoft.com/exchange/services/2006/messages" schemaLocation="messages.xsd"/>
            </xs:schema>
    by giving the same targetNamespace as assigned in the <wsdl:definitions element, so I ended up with
    <wsdl:types>
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.microsoft.com/exchange/services/2006/messages">
                <xs:import namespace="http://schemas.microsoft.com/exchange/services/2006/messages" schemaLocation="messages.xsd"/>
            </xs:schema>

  • Error when opening workspace, web analysis and shared services

    Hi All,
    We installed hyperion 11.1.2, Essbase on a AIX server, with reports etc on a windows 2008 server. when logging onto workspace, web analysis and shared services i get the following error message:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    If we re-start the server it sometimes work, but in the morining we have the same issue, can anyone help.
    Thanks
    Dylan

    Hi,
    Restart the services. Issue with Oracle Http server. If you restart foundation and other services I can bring workspace up.
    Thanks
    Radhika

  • The File Replication Service has detected that the replica set "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)" is in JRNL_WRAP_ERROR.

    Hi!
    I recently took over management of a Windows 2003 domain that had only one domain controller.  I was building a second DC for redundancy and discovered that the SYSVOL share on the original DC is in "JRNL_WRAP_ERROR" after the SYSVOL and NETLOGON
    share would not create on the new DC.  This error goes back as far as the log goes back so I don't know how long it has been in this state. 
    The message in the event log states to enable "Enable Journal Wrap Automatic Restore" but I found a KB article that says to use the BurFlags key instead. http://support.microsoft.com/kb/290762
    Should I run an authoritative restore since I don't have another domain controller with a good SYSVOL?
    The File Replication Service has detected that the replica set "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)" is in JRNL_WRAP_ERROR.
     Replica set name is    : "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)"
     Replica root path is   : "c:\windows\sysvol\domain"
     Replica root volume is : "\\.\C:"
     A Replica set hits JRNL_WRAP_ERROR when the record that it is trying to read from the NTFS USN journal is not found.  This can occur because of one of the following reasons.
     [1] Volume "\\.\C:" has been formatted.
     [2] The NTFS USN journal on volume "\\.\C:" has been deleted.
     [3] The NTFS USN journal on volume "\\.\C:" has been truncated. Chkdsk can truncate the journal if it finds corrupt entries at the end of the journal.
     [4] File Replication Service was not running on this computer for a long time.
     [5] File Replication Service could not keep up with the rate of Disk IO activity on "\\.\C:".
     Setting the "Enable Journal Wrap Automatic Restore" registry parameter to 1 will cause the following recovery steps to be taken to automatically recover from this error state.
     [1] At the first poll, which will occur in 5 minutes, this computer will be deleted from the replica set. If you do not want to wait 5 minutes, then run "net stop ntfrs" followed by "net start ntfrs" to restart the File Replication
    Service.
     [2] At the poll following the deletion this computer will be re-added to the replica set. The re-addition will trigger a full tree sync for the replica set.
    WARNING: During the recovery process data in the replica tree may be unavailable. You should reset the registry parameter described above to 0 to prevent automatic recovery from making the data unexpectedly unavailable if this error condition occurs again.
    To change this registry parameter, run regedit.
    Click on Start, Run and type regedit.
    Expand HKEY_LOCAL_MACHINE.
    Click down the key path:
       "System\CurrentControlSet\Services\NtFrs\Parameters"
    Double click on the value name
       "Enable Journal Wrap Automatic Restore"
    and update the value.
    If the value name is not present you may add it with the New->DWORD Value function under the Edit Menu item. Type the value name exactly as shown above.

    > The message in the event log states to enable "Enable Journal Wrap
    > Automatic Restore" but I found a KB article that says to use the
    > BurFlags key instead.
    http://support.microsoft.com/kb/290762
    >
    > Should I run an authoritative restore since I don't have another domain
    > controller with a good SYSVOL?
    The automatic restore process AFAIK will initiate a D2 restore. And if
    there's no other DC, sysvol might be gone.
    I really would prefer to have control - this means I would do a D4.
    Absolutely I would :)
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Setting application level item during authentication

    We’re having an issue with an application level item that we set during our custom authentication function to store a role list for authorization. The issue is that the application level item, which should be set using htmldb_util.set_session_state(‘ITEM_NAME’, p_item_value), is not being set.
    On further investigation we realised that this issue was only affecting developers, not users of the application. This seems to be because the home page link, set in Shared Components > Edit Security Attributes, is set to “f?p=&APP_ID.:1:&SESSION.”, which means that the developers session was being passed to the application when the “Run Application” button was pressed. What then happens is that following the successful execution of the authentication function, a new session id is generated and visible on the URL and the Application Level Items are not set correctly.
    Examples:
    I’m developing an application on Apex that has the home page link set to “f?p=&APP_ID.:1:&SESSION.”, here’s the first part of my URL at the Application home page:
    http://apex.oracle.com/pls/otn/f?p=4000:1:1065658352862710::
    I hit “Run Application” and get to this URL (note the session id is the same)
    http://apex.oracle.com/pls/otn/f?p=16033:1:1065658352862710:::::
    I log in using any old username and password (the auth scheme on this demo app always returns true) and I get to this URL (note the session id is different):
    http://apex.oracle.com/pls/otn/f?p=16033:1:1403999736046638
    My application level item is not set and I start to cry. When I recover from my tearful episode I try to log in again, I hit logout and get taken to this URL:
    http://apex.oracle.com/pls/otn/f?p=16033:1
    I log in again (with the same username or different, it doesn’t matter) and low and behold, my application level item is set ok. This is the URL I can see (note another new session id):
    http://apex.oracle.com/pls/otn/f?p=16033:1:4917752800353335
    In despair, I close my browser window and go to my other application, this one has got the home page link set to “f?p=&APP_ID.:1” (no session id passed).
    I log back into Apex as a developer and go to the application home page at this URL:
    http://apex.oracle.com/pls/otn/f?p=4000:1:131988631742187::
    I hit “Run Application” and get to this URL (note the session id is missing):
    http://apex.oracle.com/pls/otn/f?p=19114:1::::::
    I log in using any old username and password (same deal as before) and I get to this URL (new session id):
    http://apex.oracle.com/pls/otn/f?p=19114:1:4320851658879093:::::
    Amazingly, this time the application level items are set first time.
    What I’d like to know (there is a purpose to this) is:
    - Why is a different session allocated to the application after login, when a “developer’s” session id is passed to the application?
    - If I remove the session id from the home page url what is the impact? I can’t think of anywhere within the application that this is used (other than between page 101 and the home page), but our thoughts are that this could mean that users end up generating more sessions on the server.
    - Is there any other way around this, perhaps using a different method of setting the application level item? The authentication procedure which sets the item reads as follows and mimics our authentication procedure (which you can assume does a little bit more than just returning true):
    function test_login 
      (p_username in varchar2 default null, 
      p_password in varchar2 default null) return boolean is 
    begin 
      htmldb_util.set_session_state('F16929_SYSDATE', to_char(sysdate, 'DAY')); 
      return true; 
    end;- Has anyone else encountered difficulties with the setting of application level items during login or has anyone come up with a more ingenious plan for passing something back from authentication that can later be used for authorisation?
    Thanks
    matt

    Scott,
    Many thanks for the response.
    We've found a way around this now, by changing the developer's usernames to the same as their NT/ Active Directory signon, which fools APEX into maintaining the session id from their builder session even though when logging into the application they get authenticated by LDAP.
    Using a post authentication process would be ok but I can't see any way of passing a variable retrieved in the authentication process under the first session to the post authentication process so that it can be set in the second session. We'd either therefore have to insert the data into a table and read it back or add an extra LDAP call to retrieve the user role/ group list during the post authentication process.
    Thanks again,
    Matt

  • Setting audio level points?

    I am trying to change the level of an audio in a sequence. I double clicked the audio clip to open the waveform in the Viewer. I know there is a way to select various spots on the audio waveform and mark them. Then you can drag the audio level line to a new setting to adjust that part of the waveform. But I don't know how to create the spots on the waveform. I can't find the answer in the Help manual.
    Thanks for any info.

    You need to select the Pen Tool which is to the right of the timeline.
    You can also do it by pressing p
    Then click the pink "level" line of the audio and a keyframe will be created. Click further along and you can drag the sound up or down etc.
    Ian.

  • Setting App level Items and using it.

    Hi all
    I am setting the application level item value by application level process which is working good.
    application level process : select get_dbname into env_str from dual.
    But when I use this variable value, its not working.
    In logout URL,, I am trying to put &env_str. but that is not working.
    Any idea?
    pb

    Scott,
    Its working, but for some reason this whole thing (using item in logout url) wasnt working for this particular application.
    Thanks for the reply.
    pb

  • Setting Item level access rights on sharepoint list item in ItemAdding event handler

    Hi ,
    I am using sharepoint 2013. I am trying to set item level access rights when a list item is added using the following code snippet,
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    ConfigureItemSecurity(properties);
    private void ConfigureItemSecurity(SPItemEventProperties properties)
    var item=properties.ListItem;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(properties.SiteId))
    using (SPWeb oWeb = site.OpenWeb())
    item.ParentList.BreakRoleInheritance(true);
    oWeb.AllowUnsafeUpdates = true;
    var guestRole = oWeb.RoleDefinitions.GetByType(SPRoleType.Reader);
    var editRole = oWeb.RoleDefinitions.GetByType(SPRoleType.Editor);
    SPGroup HRGroup = oWeb.SiteGroups.Cast<SPGroup>().AsQueryable().FirstOrDefault(g => g.LoginName=="HR Team");
    SPRoleAssignment groupRoleAssignment = new SPRoleAssignment(HRGroup);
    groupRoleAssignment.RoleDefinitionBindings.Add(guestRole);
    SPUserCollection users = oWeb.Users;
    SPFieldUserValueCollection hm = (SPFieldUserValueCollection)item["HiringManager"];
    SPFieldUserValueCollection pm = (SPFieldUserValueCollection)item["ProjectManager"];
    SPFieldUserValueCollection pmChiefs = (SPFieldUserValueCollection)item["ProjectManagerChief"];
    item.BreakRoleInheritance(true);
    item.RoleAssignments.Add(groupRoleAssignment);
    foreach (SPFieldUserValue staffMember in hm)
    SetRightsOnItem(item, staffMember, editRole);
    foreach (SPFieldUserValue staffMember in pm)
    SetRightsOnItem(item, staffMember, guestRole);
    foreach (SPFieldUserValue staffMember in pmChiefs)
    SetRightsOnItem(item, staffMember, guestRole);
    item.Update();
    private void SetRightsOnItem(SPListItem item, SPFieldUserValue staffMember, SPRoleDefinition role)
    SPUser employeeUser = staffMember.User;
    var userRoleAssignment = new SPRoleAssignment(employeeUser);
    userRoleAssignment.RoleDefinitionBindings.Add(role);
    item.RoleAssignments.Add(userRoleAssignment);
    Nothing is happening though... Is the event handler the right place to do this?
    thank you

    Hi ,
    You can refer to the code working in my environment:
    using System;
    using System.Security.Permissions;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Utilities;
    using Microsoft.SharePoint.Workflow;
    namespace ItemLevelSecurity.ItemSecurity
    /// <summary>
    /// List Item Events
    /// </summary>
    public class ItemSecurity : SPItemEventReceiver
    /// <summary>
    /// An item was added.
    /// </summary>
    public override void ItemAdded(SPItemEventProperties properties)
    SPSecurity.RunWithElevatedPrivileges(delegate()
    try
    using (SPSite oSPSite = new SPSite(properties.SiteId))
    using (SPWeb oSPWeb = oSPSite.OpenWeb(properties.RelativeWebUrl))
    //get the list item that was created
    SPListItem item = oSPWeb.Lists[properties.ListId].GetItemById(properties.ListItem.ID);
    //get the author user who created the item
    SPFieldUserValue valAuthor = new SPFieldUserValue(properties.Web, item["Created By"].ToString());
    SPUser oAuthor = valAuthor.User;
    //assign read permission to item author
    AssignPermissionsToItem(item,oAuthor,SPRoleType.Reader);
    //update the item
    item.Update();
    base.ItemAdded(properties);
    catch (Exception ex)
    properties.ErrorMessage = ex.Message; properties.Status = SPEventReceiverStatus.CancelWithError;
    properties.Cancel = true;
    public static void AssignPermissionsToItem(SPListItem item, SPPrincipal obj, SPRoleType roleType)
    if (!item.HasUniqueRoleAssignments)
    item.BreakRoleInheritance(false, true);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(obj);
    SPRoleDefinition roleDefinition = item.Web.RoleDefinitions.GetByType(roleType);
    roleAssignment.RoleDefinitionBindings.Add(roleDefinition);
    item.RoleAssignments.Add(roleAssignment);
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Eric Tao
    TechNet Community Support

  • Setting system level deployment.user.cachedir in deployment.config

    G'day,
    I've been experimenting with JRE 1.5.0_04 on Windows XP.
    By default deployment.user.cachedir is set to <user home>\Application Data\Sun\Java\Deployment\cache. However, I want it to be <user home>\Local Settings\Application Data\Sun\Java\Deployment\cache.
    I have managed this as follows.
    C:\Windows\Sun\Java\Deployment\deployment.config contains:
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.propertiesand C:\Windows\Sun\Java\Deployment\deployment.properties contains:
    deployment.user.cachedir=$USER_HOME\\..\\..\\..\\..\\Local Settings\\Application Data\\Sun\\Java\\Deployment\\cacheThis works but is ugly. The problem is that $USER_HOME=<user home>\Application Data\Sun\Java\Deployment. It seems that $USER_HOME and $JRE_HOME are the only two variables for use in deployment properties. Are there any others, in particular, one that mirrors the user's actual home directory?
    Thanks,
    Chris.

    G'day,
    Open the Java Console and execute "dump system and
    deployment properties" which shows property values,
    and see if what you want is there.Thanks, but I don't think I can use these at the system level, can I?
    I did try using ${user.home} but that doesn't work.
    So, are there any variables other than $USER_HOME and $JRE_HOME that can be used when setting system level properties?
    More info, http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    Thanks,
    Chris.

Maybe you are looking for

  • Protect Crystal Report File

    I have created a report using CR8.5 and I want to protect the file from being opened in design mode to accidental change of formulas, parameters, etc. Something similar to Excel that provides  password protection to VBA code. Is there anyway to imple

  • How do I open my raw files in Photoshop that have been shot with a Nikon D1700?

    I can't open my raw images in Photoshop, I have updated Photoshop but it is still coming up with ...' Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw. Pl

  • Can't send mail to specific address

    I am having problems sending mail to my brother from my ibook. When I send it from .mac it is fine but when I send it from the Mail application (postage stamp) it appears in my sent items as normal but never arrives with my brother. This is the only

  • Is After Effects CS4 compatible with Mavericks?

    Can't seem to find that info anywhere, which leads me to believe the answer is No...

  • 3rd Party Apps not working after 3.1 update

    As the topic says, none of my third party apps are working at the moment. I tried doing a full restore and backup and that doesn't seem to do anything. I've also noticed that most of my music is not syncing, even though podcasts and movies are. I'm r