Procedure for deleting a role which is already in Production

Hi,
can any one explain me the procedure for deleting a role which is already in production
i want to know procedure for deletion of
1.single role
2.composite role
3.derived role
4.parent role
thanks,
SSSS

Hi,
Role deletion must be done in development box and the deletion must be transported to quality and productuion
For single and derrived roles create the transport request and delete the role and transport the deletion.
For Deletion of parent role: you cannot delete the parent role unless all the derrived roles within it are deleted.
To avoid the transport of user assignment make sure PRGN_CUST is set to 'NO' value for the parameter USER_REL_IMPORT.
Rakesh

Similar Messages

  • Writing a store procedure  for deleting records

    how can i write a store procedure for deleting records from a table.
    i have a table called employees
    empid
    empname
    deptid
    and table department
    deptid
    dept
    floor
    how can i write a store procedure which would delete records of employees from employees table for particular department when i delete that department from department table.
    thanks

    872959 wrote:
    how can i write a store procedure for deleting records from a table.
    i have a table called employees
    empid
    empname
    deptid
    and table department
    deptid
    dept
    floor
    how can i write a store procedure which would delete records of employees from employees table for particular department when i delete that department from department table.
    thanksDoes not seem to be a sound design, to me.
    Employees do not go missing when organization change is made & department is eliminated.
    If you insist such nonsense, write TRIGGER to issue desired DML

  • PL/SQL procedure for deleting rows

    We have to delete rows from a table by initiating parallel processes depending on no of connections, and also variable commit frequency. The procedure has to start by itself in case of failure of 1 or more parallel processes, by identifying the position where it stopped. Please some one help me what would be th elogic needed to write the [rocedure.
    Thanks in Advance
    Edited by: 864979 on Jun 9, 2011 10:02 PM

    Be careful of how this is designed and coded. It is very easy to do it horribly wrong, causing contention and problems.
    Have a look at DBMS_PARALLE_EXECUTE.
    If the package is not available on your Oracle version, then look at {message:id=1534900} for a manual approach.

  • Delete an SCA which is already imported from Development to Consolidation

    Hi all,
    I have a higher version of SCA wrongly imported into a track (from Development to Consolidation). Now when I try to import a lower version (correct version), it throws an error. Is there a way to delete the higher version file from the track and then import my actual version (lower version) into the track. Please let me know the procedure ASAP.
    I have tried to delete it from Consolidation queue, but it did not work (it is still existing in the track). Any help is appreciated.
    Thanks for the help,
    Hari

    HI,
    you said
    have a higher version of SCA wrongly imported into a track
    what you mean by higher version of sca.
    1. is it in terms of sp level,(like version 7.0 sp 12 and version 7.0 sp 15)
    2. in terms of version like version 7.0 and version 7.1.
    You wont be able to remove/delete that sca from the consolidation, unless you delete the track.
    instead of that  get a good new sca of higher version and import it your track. it will work as there is always backward compatibilty.
    and if have the second problem  i.e instead of 7.0 you imported 7.1, then get and 7.0 of higher version of sp level than that of 7.1.
    means a 7.1 sp3 always get replaced by 7.0 sp15

  • Error while compiling trigger/procedure for a table in which attribute is r

    I have table
    desc pappu
    name varchar(10);
    start varchar(5);
    end varchar(5);
    One of the attribute is end which is also a reserved keyword in oracle.I want to create some procedure/trigger which use the attribute end but i get errors while compiling that "
    PLS-00103: Encountered the symbol "END" when expecting one of the
    following:
    <an identifier> <a double-quoted delimited-identifier>
    The symbol "<an identifier> was inserted before "END" to
    continue.
    Any workaround for this.

    user620101 wrote:
    name varchar(10);
    start varchar(5);
    end varchar(5);
    SQL> create table pappu (name varchar(10),stat varchar(5),end varchar(5));hi,
    earlier you have given column name start and here you are creating table with colum name stat....anyway try to use column alias for column END
    CREATE TABLE pappu (NAME VARCHAR(10),STAT VARCHAR(5),END VARCHAR(5));
    INSERT INTO PAPPU ( NAME, STAT, END ) VALUES ( 'name1', '1', '14');
    INSERT INTO PAPPU ( NAME, STAT, END ) VALUES ( 'name2', '15', '20');
    CREATE OR REPLACE PROCEDURE testpappu
    AS
    CURSOR test1
    IS
    SELECT NAME,stat AS st,END AS v_end FROM pappu;
    BEGIN
         FOR i IN test1
         LOOP
         DBMS_OUTPUT.PUT_LINE ( 'name - '||i.NAME ||'-'||i.st||'-'||i.v_end );
         END LOOP;
    END;
    SQL> exec testpappu;
    name - name1-1-14
    name - name2-15-20
    PL/SQL procedure successfully completed.
    Thnx
    MB
    Edited by: ManishB on Sep 20, 2010 10:50 AM

  • Procedure for adding a characteristic to an ODS in production

    Hi,
    Can someone outline the right process of adding a newly created characteristic infoobject to an ODS (that contains records)in production?
    Many thanks,
    Xibi

    hi Xibi,
    you can add it in dev and then transport to production, if you have huge data in production, then the transport process make take long time.
    if you want historical data for that new field then you need to reupload in production.
    also take a look
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f421c86c-0801-0010-e88c-a07ccdc69601
    hope this helps.

  • BDT event for delete role in BP transaction

    Hi,
    I have requirement where in I need to display specific fields on UI when user adds a role to a business partner in BP transactions and also need to save the user inputs into the tables. I was able display the fields and also save the inputs that was entered in UI into the table, But I have requirement were in I need to delete the data from tables when user deletes the role in BP the transaction.
    I would like to know if there is any event in BDT that would be triggered when user deletes a role from the Business partner in BP transaction.
    It would be helpful if some one can provide some inputs on this.
    Thanks
    Raghavendra

    Hi Smita,
    Thank you for response. Following are steps that are followed for deleting a role from a Business Partner in BP transaction.
    1 Select a Business Partner that has multiple role in BP transaction.
    2 Click on the Role Details button, all the Role that associated with the business partner is displayed.
    3 Select a Role from the list and then click on the delete button.
    4 After Delete Button, Click on the Enter Button.
    5 Save the Business partner. Now the role has been deleted from the business partner.
    Thanks,
    Raghavendra

  • Reloading JSP for a specific role's users

    Hi all,
    We have a web application using JSPs.
    Our application has users and roles. A user is associated to a role. These are defined in 2 tables:
    create table role
    ( id int not null primary key,
      name varchar(50) not null )
    create table user
    ( user_name varchar(50) not null primary key,
      user_password varchar(50) not null,
      role_id int not null foreign key references role(id) )
    For example:
    insert into role values (1, 'HR')
    insert into user values ('michaelK', 'password', 1)
    insert into role values (2, 'Payroll')
    insert into user values ('babarA', 'honest', 2)We have 2 tables where we store all our application's web pages and buttons on each page:
    create table web_page
    ( id int not null primary key,
      name varchar(50) not null )
    create table web_page_button
    ( id int not null primary key,
      name varchar(50) not null,
      web_page_id int not null foreign key references web_page(id) )
    For example:
    insert into web_page values (1, 'Personal_Info') // "Personal Info" Screen has 2 buttons: update and cancel
    insert into web_page_button (25, 'update', 1)
    insert into web_page_button (26, 'cancel', 1)We have a requirement that the administrator want the facility to enable/disable buttons on each web page for a specific role. So we have created a table where we define enable flag for each button of a web page w.r.t a Role:
    create table role_web_page_button
    ( id int not null primary key,
      role_id int not null foreign key references role(id),
      web_page_button_id int not null foreign key references web_page_button(id),
      enable_flag int not null )So if the administrator say that for users belonging to "Payroll" role the "Update" button on "Personal Info" Screen will be disabled.
    insert into role_web_page_button values (100, 2, 25, 0)The user first go to login.jsp and provide login information. If successful we store his user_name and role_id in the session as an attribute. We then redirect the user to index.jsp. In this jsp we have a header.jsp on top. This JSP remains there on all web pages user visit.
    In that JSP we generate one Javascript function getButtonEnableFlags(). This function defines each button's enable flag of each screen for the user's role_id. So when a user of "Payroll" role logins then this is generated:
    function getButtonEnableFlags()
      var buttonEnableFlags = new Object();
      buttonEnableFlags["Personal_Info::update"] = "0";
      return buttonEnableFlags;
    }We also have a javascript function which tells us the enable flag's value for a button of a screen.
    function getButtonEnableFlag(webpageName, buttonName)
      var buttonEnableFlags = getButtonEnableFlags();
      var keyName = webpageName + "::" + buttonName;
      return buttonEnableFlags[keyName];
    }Each Web Page after loading calls a common javascript function setupButtons(webpageName). This function receives a webpage name, picks all buttons on the form of that web page, then call getButtonEnableFlag(webpageName, buttonName) to get enable flag for each button and then set it.
    This solution is working fast and perfect. The javascript function getButtonEnableFlags() is generated once when user logins so each web page does not have to call the server to figure out enable flag for their buttons.
    I have created a maintenance screen for the Administrator which provides the facility to enable/disable buttons on each web page for a specific role. This screen updates the role_web_page_button table.
    Problem is if the Administrator makes any changes for a Role how can I reflect that change on the user's of that role which are already login in the system? For example suppose 2 users of "Payroll" role are login in the system and for "Peson_Info" web page the "update" button is disabled. Now administrator changes the "update" button of "Personal_Info" web page to enable for "Payroll" role through the maintenance screen. How can I reload the header.jsp on only those 2 user's computer?
    Thanks

    I suppose you can use AJAX to change the end-users JSP page that is displayed on his browser as he is vieiwing it.
    However, I suggest against changing permissions on a JSP page while the user is using it (I believe most programmers do not do that). If I was an end-user with a JSP page displayed and I suddenly see the 'update' button disapear, I would be very upset.I suggest waiting for the user to close his session (and not simpily navigate to another page within the session, but actually ending the session by either calling up another web site or closing the browser) and when he next logs into the applcation again, the button is gone. If the administrator does take away a permission such as an 'update' button, do you really need to deny permission to everyone right then? I think you can wait for users to log off.
    An alternative is to create a batch job that when the admin removes permission, the batch job runs at midnight to actually change the permission in the database. Since few people are logged on at midnight, few people will see the change while they are working.
    Another possiblity is when they click the update button, don't do an actual update to the database. Instead, redraw the page with the update button disabled (not removed) and add a note on the JSP page that the administrator has just removed permission for all users to update at this time.

  • Pricing Procedure for India

    Hi SD Gurus,
    I am in US working for MNC having offices in India and other countries. I have to create a pricing procedure for India.
    My company does have CIN ( country India) as Add-on to our SAP 4.6C but I donu2019t see any standard pricing procedure for India in there.
    Now how to create pricing procedure for India ?
    And which latest Service pack SAP 4.6C should be on for Indian Pricing procedure to work properly ? Currently we are on SP # 41.
    Thanks,

    Dear Manish
    Copy the Std procedures mentioned above,rename it & then map/modify it to fit your requirement.
    Also, the relevant CIN Configuration & customization settings are to be done for the company code.
    Rgds
    Sumanth.Gururaj

  • Stored Procedure for Outgoing Payment Approval

    Hi
    I am writing a stored procedure for Outgoing Payment (Draft) which is not validating my fields
    1.Outgoing Draft (Procedure Not Working)
       If @object_type = '140' and @transaction_type = 'A'
       begin
         if exists(select t0.DocEntry  from OPDF T0 inner join PDF4  T1 on
         T0.DocNum = T1.DocNum where t1.ObjType ='46' AND (T0.Series = '15' AND T1.OcrCode <> 'U-1')
         and T0.DocEntry = @list_of_cols_val_tab_del)
         begin
              set @error = 1
              set @error_message = 'Check Unit'
         end
       End
    Regards
    John
    Edited by: JohnSmith@B1 on Sep 9, 2011 4:49 PM

    John......
    Try this.....
    IF (@object_type = '140' And (Select ObjType From OPDF
           Where DocEntry = @list_of_cols_val_tab_del)='46'
    AND @transaction_type IN ('A'))
    BEGIN
    if exists(select t0.DocEntry from OPDF T0 inner join PDF4 T1 on
    T0.DocNum = T1.DocNum where t1.ObjType ='46' AND (T0.Series = '15' AND T1.OcrCode != 'U-1')
    and T0.DocEntry = @list_of_cols_val_tab_del)
    begin
    select @error = 1,
    @error_message = 'Check Unit'
    end
    End
    Above SP will only work when your Series Code is 15 and OcrCode is not equal to 'U-1'....
    Please confirm........
    And Object type for Payment Draft 140 is right.....
    Regards,
    Rahul

  • How to delete the messages from SXMB_MONI which are already cancelled .

    Hi All,
    The messages were earlier in System error(Red flag) state so i cancelled it manually.
    I want to know how to delete the messages from sxmb_moni which are already cancelled manually using ctrl+f8.
    if not possible , then i want to see them in earlier state i.e.., in System error(Red flag).
    can any tell me the procedure of doing it.
    thanks
    Sai.

    Hi AmitSri,
    Thanks for u r reply,
    What is retention period, where can i find this option.
    And i don't have authorizations to sxmb_adm --> configure delete procedure
                                                                             --> Define interfaces for archiving and retention period.
    and to RSXMB_DELETE_MESSAGES in se38 , i don't have authorizations to run
    Is there any way to delete the messages or make them to System error( Red flag) which are manually cancelled.
    Thanks
    Sai.
    Edited by: sai_SHA on Aug 17, 2011 12:29 AM

  • Delete Request which is already updated to Futher data target

    Hi Experts,
    Is there any way that we can delete a request from infocube which is already updated in to another data target.
    My requirement is i have PCA infocube which 3 full loads and 1 delta. I can delete the full loads by using delete overlap request process type. But from PCA infocube the data is futher updated in another planning cube as delta request to update the actuals.
    This is causing the problem as the data is getting further update to another cube as a delta request i am not able to delete the overlapping request of full loads in PCA cube. Any ideas or suggestions would be a great help.
    please note that i cant change the dataflow at this point as this cube is already in production.
    Thanks,
    RRRRR.

    Hi R,
    thanks for pointing this out.
    I still think the procedure that I described would be suitable.
    Let me re-capture: You want to delete the Full request in the Infocube, but you don't want to touch the data of this request that has been already updated in the planning cube.
    1- Delete the full request in your infocube
    2- Confirm the messages that this will lead to de-activating the delta to the planning cube (as explained previously)
    3- Load your new full request into your infocube iif you want to
    4- Set up the delta between Infocube and Planning cube again, by requesting an INIT w/o data
    This way you will be able to change the data in the Infocube, but not impact the data that has already been updated in your data target the planning cube.
    In case you want the new FULL request to be updated via a DELTA into your planning cube you have to swap the order of steps 3 and 4 above.
    Hope that clarifies this approach to you.
    kind regards,
    Ralf

  • Better approach for deleting rows using trigger or procedure

    Hi,
    Please suggest which option is better for deleting rows from table trigger or procedure and why?
    In datawarehousing and OLTP DB's.
    Edited by: user6040008 on Nov 2, 2012 4:51 AM

    Hi,
    Please suggest which option is better for deleting rows from table trigger or procedure and why?
    In datawarehousing and OLTP DB's.
    Edited by: user6040008 on Nov 2, 2012 4:51 AM

  • How to delete "other" content which doubled with IOS 8.1 - I already tried deleting apps and pdfs i had saved, browser history, accessability to apps changed turned off, didn't change the 32 GB of "other" IOS 8 added on

    how do I delete "other" content which more than doubled with IOS 8.1 - I already tried deleting apps and pdfs i had saved, browser history, accessability to apps changed turned off, which had absolutely no effect,  32 GB of unusable "other" still on my iPad.

    *Feedback*
    "Use the form below to send us your comments. We read all feedback carefully, but please note that we cannot respond to the comments you submit."
    http://www.apple.com/feedback/ipad.html
    We can complain about Apple's business decisions, but these discussions are user to user talk about possible solutions.
    Here are the places to report bugs:
    Get an account at
    http://developer.apple.com/  then submit a bug report to http://bugreporter.apple.com/
    Once on the bugreporter page,
       -- click on New icon
       -- See if you need to attach a log file or log files, clicking on Show instructions for gathering logs.  Scroll down to find the area or application that matches the problem.
       -- etc.

  • HT4865 how i can delete an application which already download from i cloud

    how i can delete an application which already download from i cloud

    Why connect as SYS? Any DBA account should do.
    After all, it is considered poor practise to connect as SYS on a regular basis (just as logging on as root in *nix is considered poor practise).
    To the original poster - self help for this kind of question is available in the 2-Day DBA book at http://www.oracle.com/pls/xe102/homepage ... you may often find looking these things up to be faster than waiting for a response. <g>

Maybe you are looking for