Delete all the user connected to one transaction.

During some periods, we need to lock some transaction to avoid user modify data while we are processing some critical jobs.
If the users are yet in the transaction when we lock the transaction they are not removed from the transaction and we need to kill them manually from SM04 transaction in each application server.
I have been trying to adapt the RSM04000_ALV program to do this but i'm stuck with the use of the pooled session.
I guess that the system when you select the session and click on end session, it mark in anyplace something to indicate to the fuction module TH_DELETE_USER that when the option ONLY_POOLED_USER is enable, only that session need to be killed.
Anybody know how this works? someone have a similar fuctionality in you system?

Hello
Try this:
  DATA: BEGIN OF SERVER_LIST OCCURS 0.
          INCLUDE STRUCTURE MSXXLIST.
  DATA: END OF SERVER_LIST.
  DATA: BEGIN OF USER_LIST OCCURS 0.
          INCLUDE STRUCTURE UINFO.
  DATA: END OF USER_LIST.
  DATA: BEGIN OF USER_LIST1 OCCURS 0.
          INCLUDE STRUCTURE UINFO.
  DATA: END OF USER_LIST1.
  DATA: USER_TERM LIKE RFCDISPLAY-RFCHOST.
  CALL FUNCTION 'TH_SERVER_LIST'
       TABLES
            LIST   = SERVER_LIST
       EXCEPTIONS
            OTHERS = 1.
  LOOP AT SERVER_LIST.
    CALL FUNCTION 'TH_USER_LIST'
         DESTINATION SERVER_LIST-NAME
         TABLES    LIST = USER_LIST1.
    APPEND LINES OF USER_LIST1 TO USER_LIST.
    REFRESH USER_LIST1.
    LOOP AT USER_LIST WHERE TCODE = 'YOUR T-CODE'.
            CALL FUNCTION 'TH_DELETE_USER' DESTINATION SERVER_LIST-NAME
             EXPORTING
                USER            = USER_LIST-BNAME
                CLIENT          = SY-MANDT
                TID             = USER_LIST-TID
             EXCEPTIONS
                AUTHORITY_ERROR = 1
                OTHERS          = 2.
    ENDLOOP.
  ENDLOOP.

Similar Messages

  • How can you delete all the e mail at one time instead of one at a time?

    How can you delete all the e mail at one time instead of one at a time?

    you'd have to do it from the computer,

  • How to delete all the PSA data in one go

    Hello Guys,
    I want to clear all the data from all the PSA tables at one shot, how can i do this??
    I have tried following things:
    1) I have gone to PSA root node and right click and then clicked on delete PSA data, but its showing me all the datasources and when i am executing that, it is deleting one by one(that i means i need to select individual datasource, which i do not want).
    2) Above specified step runs RSPSADEL1 in background , so i doubt whether it deletes psa data only or complete Table?
    3)I got the info from other posts that there is a fm which is RSATREE_PSA_DELETE_BATCH, but i need to make myself clear whether this fm deletes only data or complete Table?
    I am using sap-bw 3.5.
    Regards,
    Dolly

    Hi,
    there is one easy way to delete data from PSA .You can create a process chain have one delete data from PSA step where you need to give PSA table name and request older than (no of days before which you want to delete data ).
    Execute it and it will delete all the data before specified no of days .You can add multiple PSA tables here and can delete whole data in one go .
    Regards,
    Jaya

  • Deleting all the similar records except one

    I have a table without a primary/unique key, this table contains too many rows that have the same column values(the row is duplicated), How can I delete all the duplicated rows and keep one copy of this rows?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Waleed Dallah ([email protected]):
    I have a table without a primary/unique key, this table contains too many rows that have the same column values(the row is duplicated), How can I delete all the duplicated rows and keep one copy of this rows?<HR></BLOCKQUOTE>
    Hi
    This query may be solev ur problem
    delete table where rowid not in(select min(rowid) from table1 group by fieldname)
    This query if u want to keep latest row use max(rowid) instead of min(rowid)
    let me know
    by
    venkat
    ([email protected])

  • Delete all the users in iphone

    How to delete iPhone product registration

    Login to your online support profile & remove the phone, or call AppleCare.

  • How do I delete all the user ID's & passwords that my neighbor created without my knowledge?

    My neighbor is a very sneaky & untrustworthy individual! She asked to use my phone cause her carrier terminated her service for nonpayment! She stole my phone without my knowledge & held it for several days approximately 6 weeks ago. She

    You did not finish your message. Are we talking about your phone
    (Cell or Wireless) or Firefox? Or are you asking about web sites?

  • End users connecting to one node only !!

    Hi,
    I am new to RAC. My environment: 10gAS (two nodes), 11gr2 RAC (2 nodes), on solaris10. I see all end users connecting to one node only. where other node is fine.
    SQL> select a.inst_id,instance_name,program from gv$INSTANCE a, gv$session b where a.inst_id=b.inst_id and
    2 username like 'HRAPPS';
    INST_ID INSTANCE_NAME PROGRAM
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode2 (TNS V1-V3)
    1 mod11g1 frmweb@asnode2 (TNS V1-V3)
    1 mod11g1 frmweb@asnode2 (TNS V1-V3)
    1 mod11g1 java@asnode2 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode2 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode2 (TNS V1-V3)
    1 mod11g1 frmweb@asnode2 (TNS V1-V3)
    1 mod11g1 frmweb@asnode2 (TNS V1-V3)
    1 mod11g1 frmweb@asnode2 (TNS V1-V3)
    1 mod11g1 frmweb@asnode2 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    1 mod11g1 frmweb@asnode1 (TNS V1-V3)
    tnsnames.ora on two application server nodes
    CONNDB11 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = racdb1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = racdb2-vip)(PORT = 1521))
    (LOAD_BALANCE = OFF)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = mod11g)
    grid@*racdb1* $ crs_stat -t
    Name Type Target State Host
    ora.DATA.dg ora....up.type ONLINE ONLINE racdb1
    ora.FRA.dg ora....up.type ONLINE ONLINE racdb1
    ora....ER.lsnr ora....er.type ONLINE ONLINE racdb1
    ora....N1.lsnr ora....er.type ONLINE ONLINE racdb2
    ora....N2.lsnr ora....er.type ONLINE ONLINE racdb1
    ora....N3.lsnr ora....er.type ONLINE ONLINE racdb1
    ora.asm ora.asm.type ONLINE ONLINE racdb1
    ora.eons ora.eons.type ONLINE ONLINE racdb1
    ora.gsd ora.gsd.type OFFLINE OFFLINE
    ora.mod11g.db ora....se.type ONLINE ONLINE racdb2
    ora....network ora....rk.type ONLINE ONLINE racdb1
    ora.oc4j ora.oc4j.type OFFLINE OFFLINE
    ora.ons ora.ons.type ONLINE ONLINE racdb1
    ora....SM1.asm application ONLINE ONLINE racdb1
    ora....B1.lsnr application ONLINE ONLINE racdb1
    ora.racdb1.gsd application OFFLINE OFFLINE
    ora.racdb1.ons application ONLINE ONLINE racdb1
    ora.racdb1.vip ora....t1.type ONLINE ONLINE racdb1
    ora....SM2.asm application ONLINE ONLINE racdb2
    ora....B2.lsnr application ONLINE ONLINE racdb2
    ora.racdb2.gsd application OFFLINE OFFLINE
    ora.racdb2.ons application ONLINE ONLINE racdb2
    ora.racdb2.vip ora....t1.type ONLINE ONLINE racdb2
    ora.scan1.vip ora....ip.type ONLINE ONLINE racdb2
    ora.scan2.vip ora....ip.type ONLINE ONLINE racdb1
    ora.scan3.vip ora....ip.type ONLINE ONLINE racdb1
    grid@*racdb2* $ crs_stat -t
    Name Type Target State Host
    ora.DATA.dg ora....up.type ONLINE ONLINE racdb1
    ora.FRA.dg ora....up.type ONLINE ONLINE racdb1
    ora....ER.lsnr ora....er.type ONLINE ONLINE racdb1
    ora....N1.lsnr ora....er.type ONLINE ONLINE racdb2
    ora....N2.lsnr ora....er.type ONLINE ONLINE racdb1
    ora....N3.lsnr ora....er.type ONLINE ONLINE racdb1
    ora.asm ora.asm.type ONLINE ONLINE racdb1
    ora.eons ora.eons.type ONLINE ONLINE racdb1
    ora.gsd ora.gsd.type OFFLINE OFFLINE
    ora.mod11g.db ora....se.type ONLINE ONLINE racdb2
    ora....network ora....rk.type ONLINE ONLINE racdb1
    ora.oc4j ora.oc4j.type OFFLINE OFFLINE
    ora.ons ora.ons.type ONLINE ONLINE racdb1
    ora....SM1.asm application ONLINE ONLINE racdb1
    ora....B1.lsnr application ONLINE ONLINE racdb1
    ora.racdb1.gsd application OFFLINE OFFLINE
    ora.racdb1.ons application ONLINE ONLINE racdb1
    ora.racdb1.vip ora....t1.type ONLINE ONLINE racdb1
    ora....SM2.asm application ONLINE ONLINE racdb2
    ora....B2.lsnr application ONLINE ONLINE racdb2
    ora.racdb2.gsd application OFFLINE OFFLINE
    ora.racdb2.ons application ONLINE ONLINE racdb2
    ora.racdb2.vip ora....t1.type ONLINE ONLINE racdb2
    ora.scan1.vip ora....ip.type ONLINE ONLINE racdb2
    ora.scan2.vip ora....ip.type ONLINE ONLINE racdb1
    ora.scan3.vip ora....ip.type ONLINE ONLINE racdb1
    please advise,,,,
    thanks

    Thanks every one responded. I have modified tns entry in application servers (load balance on). I will post details, once I am back in seat.
    Thanks a lot guys...
    Bjoe, I am using SCAN listener, details are :
    racdb1
    -bash-3.00$ lsnrctl status
    LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 27-OCT-2010 17:04:56
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
    Start Date 12-OCT-2010 13:08:46
    Uptime 15 days 3 hr. 56 min. 9 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
    Listener Log File /u01/app/grid/diag/tnslsnr/racdb1/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.11)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.20)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM1", status READY, has 1 handler(s) for this service...
    Service "mod11g" has 1 instance(s).
    Instance "mod11g1", status READY, has 1 handler(s) for this service...
    Service "mod11gXDB" has 1 instance(s).
    Instance "mod11g1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    SQL> show parameter remote
    NAME TYPE VALUE
    remote_dependencies_mode string TIMESTAMP
    remote_listener string rac-scan.mod.com:1521
    remote_login_passwordfile string EXCLUSIVE
    remote_os_authent boolean FALSE
    remote_os_roles boolean FALSE
    result_cache_remote_expiration integer 0
    racdb2
    -bash-3.00$ lsnrctl status
    LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 27-OCT-2010 17:15:35
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
    Start Date 27-OCT-2010 03:25:50
    Uptime 0 days 13 hr. 49 min. 45 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
    Listener Log File /u01/app/grid/diag/tnslsnr/racdb2/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.12)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.21)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM2", status READY, has 1 handler(s) for this service...
    Service "mod11g" has 1 instance(s).
    Instance "mod11g2", status READY, has 1 handler(s) for this service...
    Service "mod11gXDB" has 1 instance(s).
    Instance "mod11g2", status READY, has 1 handler(s) for this service...
    The command completed successfully
    SQL> show parameter remote
    NAME TYPE VALUE
    remote_dependencies_mode string TIMESTAMP
    remote_listener string rac-scan.mod.com:1521
    remote_login_passwordfile string EXCLUSIVE
    remote_os_authent boolean FALSE
    remote_os_roles boolean FALSE
    Edited by: userR12 on Oct 27, 2010 7:34 AM

  • How do I delete all the photos from my camera roll?

    I have all the photos/videos saved to Dropbox, now how do I delete all the photos from my iPhone & iPad Camera Roll/Photo Stream? I want to delete all the photos/videos at one time, is this possible?

    Connect to you're laptop. If you are using Windows:
    Click "File Explorer"
    Click "Computer"
    Click the iPhone
    Find "Camera Rolll"
    Select all of the photos and delete them.
    For Mac:
    No idea how macs work but it should be something like the instructions for Windows :-/
    As far as Photo Stream, they will automatically be deleted after 30 days and they do not take up iCloud space so you have nothing to worry about.
    -Ethan

  • I have a used mac computer. I want to sync and update my iphone. Currently itunes tells me that my iphone is connected to a different itunes account. How do I make itunes sync and update my phone without deleting all the current information on my phone?

    I have a used mac computer. I want to sync and update my iphone. Currently itunes tells me that my iphone is connected to a different itunes account and will sync, but delete everything from my phone. How do I make itunes sync and update my phone without deleting all the current information on my phone?

    Iphone will sync with one and only one cpomptuer at a time.  Syncing to another will erase the current content and replace with content from the new computer.  This is the design of the  iphone.
    It will erase the content when you sync.
    Why not update from the comptuer with which you normally sync?

  • Is there a way to delete all the messages for a user in CUC 8.6 ?

    With Unity it was possible as an administrator, to delete all the messages in a user's mailbox, directly from the server (Windows).  Now, with Unity Connection (8.6.1) is there a way to do the same ?  When I'm logged as an administrator, I can see, for every user, the number of messages and the size (Mailbox menu) that they have in their mailbox, but what I want to do is to be able to delete all the messages for a specific user... Is it possible with CUC 8.6.1 ?

    Hi there,
    The best way with Unity Connection is with the use of this excellent tool from
    the great suite of Unity Tools (** "reset" feature);
    Unity Connection Bulk User Delete   
    For resetting users you have the option of emptying the mailbox, resetting greetings, deleting voice names, resetting passwords, removing private lists and a number of other options you may choose.  For installations where the user base “changes over” frequently such as schools this may be a nicer option.  This option is also allowed for CoRes installations since it does not involve the removal of user objects from the Connection database.
    http://www.ciscounitytools.com/Applications/CxN/BulkUserDelete/BulkUserDelete.html
    Cheers!
    Rob

  • Request in steps in deleting all the tables data in an user schema.

    Hi Gurus,
    Could some one please provide me the steps involved in deleting all the tables data in an user(schema)
    thanks in advance

    write a script as below
    sys@11GDEMO> select 'truncate table '||owner||'.'||table_name||';' from dba_tables where owner='SCOTT';
    'TRUNCATETABLE'||OWNER||'.'||TABLE_NAME||';'
    truncate table SCOTT.DEPT;
    truncate table SCOTT.EMP;
    truncate table SCOTT.BONUS;
    truncate table SCOTT.SALGRADE;
    truncate table SCOTT.EMPBACKUP;
    truncate table SCOTT.T_NAME;
    truncate table SCOTT.D_TEMP_STSC;
    Example:
    sys@11GDEMO> truncate table SCOTT.T_NAME;
    Table truncated.
    sys@11GDEMO>

  • How do i delete all the songs on my itunes except for the songs on one of my playlists.

    how do i delete all the songs on my itunes except for the songs on one of my playlists?

    Hi Jaylcee,
    Connect it to your computer and sync it to your iTunes Library.
    GB

  • For multiple users on a computer, will Firefox Sync synchronize all the users on a computer or only the one logged on?

    For multiple users on a computer, will Firefox Sync synchronize all the users on a computer or only the one logged on? For instance my spouse and I will share a laptop and I want to sync my Firefox when I log on there also but do not want to sync her data.

    Curt
    how do you know if your using the
    Central cache all distributed cache ?
    and are they both stored in the same place ?

  • How can I delete all the email from a user's account?

    I have a user account with a huge amount of mail (around 50K messages) that Apple Mail can't deal with... it constantly hangs and/or crashes whether I use POP or IMAP to try and delete all the mail from the client.
    How can I delete all the mail from the mailbox on the server? I don't want to delete the account entirely, I just want to empty everything out of it.
    Thanks!

    sudo -u _cyrus /usr/bin/cyrus/bin/ipurge -d 0 -f user/mailboxname
    HTH,
    Alex

  • My laptop was stolen and I need to be able to connect my iPhone4 to the new laptop and transfer content (photos, mp3's, apps etc.) to the new laptop.  I'm afraid to try a sync in case it deletes all the content off the iPhone.  Any suggestions?

    My laptop was stolen and I need to be able to connect my iPhone4 to the new laptop and transfer content (photos, mp3's, apps etc.) to the new laptop.  I'm afraid to try a sync in case it deletes all the content off the iPhone.  Any suggestions?

    You should be importing all pics taken with the iphone to your computer regularly as you would with any digital camera.
    iOS: Importing personal photos and videos from iOS devices to your computer

Maybe you are looking for

  • MTO-Need to block (Not to Change)plant in sales order after process order

    Hi All, We are creating MTO sales order and requirement has been forwarded to MRP. Planning person is creating process order and will start their work. Sometime sales person change the plant in the existing sales order. Say for ex: changing the plant

  • Synchronous MQAdapter using User-defined Correlation Id

    Hi I need to invoke and receive message from MQ 6.x / 7.0 from a BPEL 11.1.1.3 process. My requirement is to implement the below : 1 . Synchronous BPEL process to get the request XML from client (webservices) 2. Generate a Correlation Id (ie., some u

  • Complement with Airport Express?

    Greetings, I have a Cat6 cabled home. The outside internet is pulled inside to the laundry room on the first floor where it then disperses into 4 other rooms. I currently use a Netgear WNDR4500 1000GB wirelss router in this area to share, but unfortu

  • Issues with transferring files from older MacBook to new Macbook Pro

    Hi there. I am trying to transfer my files from an older MacBook (OS 10.5) to my new MacBook Pro but there is no firewire and it didn't like the file sharing 'afp' address I tried. My Time Machine is saved on a HD with only firewire so that doesn't h

  • Zig zag effect for shading

    Hi there, I'm wondering what tools I can use to create this zig-zag effect used for shading in illustrator. Thanks in advance!