Enhancement to delete particular entry of a specific role.

I am novice to role maintenance (PFCG).
I have a requirement to delete a partcular entry of a specific role. Currently this is done manually and i need to automate this.
Is there any FM/BAPI for this purpose.
Help in this regard will be appreciated.
Regards,
YOGESH KHEMANI

Iam using this code for deleting instances in bulk,
WhereCondition wc = WhereConditionHelper.whereInstancesClosed();
IBPELDomainHandle domainHandle = locator.lookupDomain();
BPELProcessId processId1 = new BPELProcessId("default","DBTest","1.0");
domainHandle.deleteInstancesByProcessId(processId1);
but iam getting Eceptions like
Exception in thread "main" java.lang.Exception: Error deserializing return-value: java.io.InvalidClassException: com.oracle.bpel.client.BPELDomainHandle; local class incompatible: stream classdesc serialVersionUID = -6384534326625967840, local class serialVersionUID = -8310067783665200608
Iam able to delete instances one by one using this code,
------------------- basic code-----------
IInstanceHandle instance_handle[];
instance_handle= locator.listInstances(wc);
for(int x = 0; x< instance_handle.length; x++){
System.out.println("Deleting instance "+instance_handle[x]);
instance_handle[x].delete();
But i want to delete instances in bulk,not one by one.Can you help me out in this.

Similar Messages

  • How to delete forecast entries with zero current and original qty from a particular forecast set which span across multiple forecasts

    how to delete forecast entries with zero current and original qty from a particular forecast set which span across multiple forecasts

    Hi,
    There is no way to delete those records selectively from front end.
    The best possible way is to delete the records from MRP_FORECAST_DATES tables from backend.
    Hope that helps!!
    Regards,
    Mohan Balaji
    NOTE: Please mark the post as Helpful or Answered if the update has really helped you. This would also bring the thread to logical conclusion and will be helpful for the viewers.

  • My previous recipient list appears to be corrupt. When I attempt to access a particular entry to list or delete it hangs. Is there a way to just clear the history?

    My previous recipient list appears to be corrupt. When I scrool through the list it hangs on one partially completed entry. I assume the system crashed some time back and left this entry. It is a little inconvienent at times since some addresses won't auto complete. Any suggestions on deleting entries or clearing the whole list since using the normal procedure to delete an entry just hangs.  Thanks

    What happens if you select all then click "Remove from List"?

  • How do I create a new event entry for a specific calendar?

    In my iMac Calendar app, I have created a few calendars for different functions.    But every time I try to create a new event entry for a specific calendar, the app seems to prefer a different calendar instead by default.   I cannot enter events in other calendars.   Is there a way to do this?   In previous versions, I would highlight the particular calendar I wanted to work with and the entry would go into that calendar.   Thanks!

    You don't.  Moments in Photos are the new Events, i.e. groupings of photos sorted by date taken.
    When the iPhoto Library was first migrated to Photos there was a folder created in the sidebar titled iPhoto Events and all migrated iPhoto Events (which are now Moments) are represented by an album in that folder. To open the sidebar if it's not already open use the Option+Command+S key combination.
    There's a way to simulate events in Photos.
    When new photos are imported into the Photos library go to the Last Import smart album, select all the photos and use the File ➙ New Album menu option or use the key combination Command+N.  Name it as desired.  It will appear just above the iPhoto Events folder where you can drag it into the iPhoto Events folder
    When you click on the iPhoto Events folder you'll get a simulated iPhoto Events window.
    The downside to the simulation is that the Albums/Events can only be sorted automatically by Title. But they can also be sorted manually, either in the sidebar or in the folder's window at the right.
    Ask Apple for more sorting options in Photos via https://www.apple.com/feedback/photos.html.

  • "WF-USER can only delete this entry" error while deleting entry in tRFC

    Hello Experts,
    We have a scenario wherein the outbound IDoc from our SAP system consists of lot of IDoc data segments. Becase if this large size, the EAI Middleware is getting out of memory exception while processing it before sending it to the receiving system with an error "Trnasaction XXXXXXXXX rolled back" (Committing is geting failed). And it is not possible from EAI Middleware side to increase the memory. Because of this, other outbound IDocs getting struck in the tRFC (IDoc status  = 03, Data Passed to Port OK) queue and thereby delaying the process.
    We would like to delete the entry (TID) of this particular IDoc from the tRFC queue. When we try to do taht, we are getting the error message "WF-BATCH can only delete this entry" which is actually the system Workflow user.
    Could anyone suggest me the way to delete the entries? We hav one option where we can that system user name to our user name in "Debug Change'. Becasue of some authorozation problems, we would not be getting that.
    Could you please suggest me about any alternative. Appriciate your help. Thanks in advance.
    Best regards,
    Kishore.

    Hello Kishore,
    I also encountered the same problem in transaction SWU2.
    I could bypass the message in debuging mode only.
    I put a breakpoint in report RSARFCRD, and, in debug mode, I skip the following check:
          if sy-lisel+1(12) <> sy-uname.
            message e019 with  sy-lisel+1(12).
          endif.
    Best Regards,
    Alexandre.

  • Unable to delete last entry in Custom table

    Hi,
    I have one custom table which allows only some specific entries to be maintained in the table.I have used a standard table as a check table for dis.I found no issue while maintaining entries in the table.But when i try to delete the last entry in the table i get the message "No entry exist".Long textNo entries were found when importing data from the database.
    Kindly help.

    Hi,
    If it is not possible through table maintainence then write a small Z program to delete the entries in devlopment system and then if then if you want you can transfer those to other systems.
    delete from ZTABLE where {give your condition for the last record}.
    Regards,
    Sandipan

  • Unable to create entry under Product Specific Transportation Lane by BAPI Function Module

    I am developing one RFC function module which will trigger BAPI_TRLSRVAPS_SAVEMULTI2 to create transportation lane (/n/SAPAPO/SCC_TL1) in APO. But I am facing one problem while creating a new entry under “Product Specific Transportation Lane”. But I am not able to pass ‘Group Selection’ radio button field in BAPI11201TRPRODLANE2 structure since I am not getting suitable field, but Product Group Type and Product Group value I am able to pass. Can anyone help me if you have any idea on this?

    Hi Siva,
    Thaks for those function modules. I tried with '/SAPAPO/TR_TRPRODM_PUT'. This deletes from table /SAPAPO/TRPRODM but not from /SAPAPO/TRM and so the means of transport still appears in the transaction. Do you have any idea why it behaves this way.
    Thanks

  • Delete an entry in ASMD table

    Hi Experts,
    Can anyone help me in how to delete a entry in SAP standard table ASMD.
    This table consist of service master data.I tried to create service master data using LSMW tool,but the service master data was created without service number.
    Due to this I'm unable to execute tcode AC03,which gives a short dump .
    the system I'm using doesn't have development access.
    Thanks in advance.

    Hi,
    You can create a DDL trigger. (a trigger that fire after a DROP command for example):
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#i2235611
    In this trigger you can look for a specific event (use the ora_sysevent, ora_dict_obj_owner, ora_dict_obj_name system variables if you only wnat to track the drop of users.
    you have a such example here:
    http://psoug.org/reference/ddl_trigger.html
    I suggest you to start with a trigger that log all drop command and then you issue different drop command and see how the trigger is logging the different events ..
    Edited by: user11268895 on Aug 16, 2010 10:44 AM

  • How to delete table entries with SE16 in debugging mode?

    We are trying to delete some table entries which cause our InfoPackage short dumps in BW system.  The problem is that we can only see the Display menu item with SE16 and the Delete menu item is dimmed that we are unable to conduct the deletion.  SAP Support suggest to use debug with SE16 to do the deletion, but we can't figure out how!
    Anyone's idea is greatly appreciated!

    Then you are not at the right place.   Lets start at the begining.
    Go to SE16.
    Enter table name.
    Hit F7.
    Enter selection criteria.
    hit F8.
    Double click the specific record that you want to delete.
    In the transaction code field at the top, enter  "/H" and hit enter.  Debug is switch on.
    Now hit enter again. 
    You should now be in debug and you should see this code..
    form set_status_val tables ntab structure x031l           
                        using code name next for_lines.       
      field-symbols: <field>.                                                                               
    refresh exclude_tab.                                    
      if code = 'SHOW'.                                       
        set titlebar 'TAB' with name 'anzeigen'(100).         
      elseif code = 'EDIT'.                                   
        set titlebar 'TAB' with name 'ändern'(101).           
      elseif code = 'INSR'.                                   
        set titlebar 'TAB' with name 'einfügen'(102).         
      elseif code = 'ANVO'.                                   
        set titlebar 'TAB' with name 'einfügen'(102).         
      elseif code = 'DELE'.                                   
        set titlebar 'TAB' with name 'löschen'(103).          
    Notice that there is a field called CODE in the IF statement.
    Now enter the word "CODE" in the field names list,  change the value to DELE and click the pencil.  Hit F8.  Now you can delete the entry.
    Regards,
    Rich Heilman

  • How to transport deletion config entry

    Hi
    I have deleted payment terms in Development client and want to reflect the same in Quality.It did not ask for Transport request while deleting.I am aware in case of any addtion or modifications we select the particular new/modified entry and create a transport request by including the changes.
    Here I can't do that since  entry is deleted.How do I delete the entry in Quality.
    Please help.
    regards

    Hi,
    Good afternoon and greetings,
    You can recreate the Transport Request in the following way
    1. By seeing the entry in QA recreate the Payment Method in Development client and at the time of saving ensure that a transport request is prompted.
    2. You will have to delete the Payment Method and SAVE IT IN THE SAME Transport request and then release it to see the effect in the QA client.
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • How to edit one particular entry in custom database table

    Hi all,
    I want edit one particular entry in custom database table with or without a program.
    1.   I tried using SE16N and &SAP_EDIT but im unable to get entries to edit.
    2.   I tried using '/h' and 'code = edit' but it is prompting me to delete an entry but not edit.
    3.   I tried using modify statement. But in vain.
    I tried this statements through programatically,
                            MODIFY itab FROM wa_itab TRANSPORTING  zabc.
                            MODIFY zsample_02 FROM itab.
    please suggest with out writing a program, if possible.

    Hi ,
    Try with FM SE16N_INTERFACE.
    1 .Go to SE37
    2. Enter FM SE16N_INTERFACE and execute
    3. Give table name in Itab,
    I_EDIT                  =   
    X
    I_SAPEDIT             =    
    X
    4. Press F8
    5. Edit table entries and save.
    Thanks

  • Delete old entries

    Hi Experts,
    One of my clients system is perfoming very slow because of lots of entries. Whether i can delete the old entries ? i.e entries of 2000,2001 etc. ?
    Is there is any impact if  i delete these entries?
    What is the T-code for deleting the old entries?
    What is the use of T-code  f.63 ?
    Regards,
    Anish

    Hi,
    You are not supposed to delete transaction data, this is serious violation of financial regulations. However, there is a mechanism of archiving in SAP. You can read more about it here:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/8d/3e5163462a11d189000000e8323d3a/frameset.htm
    Anyway, low performance does not always mean that you have a lot of data. You should analyse your system in terms of hardware and read some notes about low performance of specific transactions. Sometimes, a professional analysis of system performance is required. You can address this request to your BASIS team.
    Regards,
    Eli

  • How to delete the entries in the given field box

    Hi Every One,
    How can I delete the entries which I have given in example SE37 box.
    When I press Backspace button the entries which I have given will appear so I want to delete these entries.
    With Regards,
    Venkat

    Hi,
    Goto ==> Customize Local Layout (Alt + F12) , then Options ====> LocalData=======> Clear History
    This process should clear your history.

  • I was deleting particular events in my iCal but now all of the events in that category have gone from iCloud and all of my devices.  How do I get them back?

    How do I restore events in my iCal and iCloud?  I was deleting particular events that weren't relevant to that week and then all of the events in that category have disappeared.  I want them back.  How do I do this?

    did you ever get an answer?  The same thing just happened to me!

  • Hi Apple Team, I would like to change the iCloud account on my iPhone, however it says I must 'delete the account' before doing so? Does this mean that I delete the entire existing account, or just delete it from my phone specifically?

    Hi Apple Team, I would like to change the iCloud account on my iPhone, however it says I must 'delete the account' before doing so? Does this mean that I delete the entire existing account, or just delete it from my phone specifically?

    From the iPhone only.

Maybe you are looking for