User Resource Status Change through Database

hi,
i need to know which table stores the status of the recource instance assigned to user.
i tried querying upa_resource table based on oiu_key but oiu_key corresponding to usr_key in oiu table do not match.
please help wth your inputs.
thanks

2. Updating Resource Status to Revoked for a given resource:
==========================================================
update oiu set ost_key = (select ost_key from ost where obj_key in ( select obj_key from obj where obj_name like 'RESOURCENAME' ) and ost_status like 'Revoked') where ORC_KEY = 'Process Instance Key'
update orc set orc_status='X' where orc_key = 'Process Instance Key'
Source: http://rajnishbhatia19.blogspot.com/2008/10/oim-backdoor-queries.html
Although you can do it directly, I agree 100% with Kevin.
Renato.
Edited by: Renato.Guimaraes on 27/08/2009 06:00

Similar Messages

  • My Sites database status changed to "Database is up to date, but some sites are not completely upgraded."

    We have a brand new SharePoint 2013 farm which we just put into production. As users have begun creating their My Sites, the My Sites web application database changed to a status of "Database is up to date, but some sites are not completely upgraded."
    Huh?
    Prior to deploying to production, we had some test users that had created My Sites, and everything was fine. The database status was "No action required".
    Anyone know why the creation of My Sites would cause the database status to flip to this warning?

    HI Kleung,This seems to be that after the patch upgradation some of the sites are not upgraded properly.Please check the below thread that exactly talking about the issue that see in your enviornment.
    http://expertsharepoint.blogspot.de/2014/03/data-base-is-up-to-date-but-some-sites.html
    First of all, to identify what site collection doesn't got upgraded.
             Run: stsadm.exe -o localupgradestatus > upgradestatus.txt
    or
    PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures  (Run from one of the WFE server)    
    In below as you see, there no site collection that need upgrade. If you have any, you can identify
    them by searching by word "Needs upgrade" in this file.                  
    Secondly, run the command in the Power Shell:
    For resuming the upgrade, you’ll need the ID for the database :
    Get-SPContentDatabase -Identity <your content database name>
    When you got the GUID for the database you can then resume the upgrade
             upgrade-spcontentdatabase -id <database
    GUID>
    Finally, check the upgrade status by running stsadm again:
    stsadm.exe -o localupgradestatus > upgradestatus.
    Thanks
    Anil Avula See Me At: http://expertsharepoint.blogspot.de/

  • Credit status change through Sales order - change log

    Hi Friends,
      I'm currently facing a scenario were it was reported by the client that
      credit release is happening automatically.
      Brief details : 
       Order was created on 4th Of Oct and it was blocked (reaches the VKM1 bucket )
       since the customer reaches the credit limit.The same order on 5th Oct was not in VKM1
       bucket were the status of order in Sales document header states that it's  released.
      Initial check : (Sales order change log)
      1, I've checked the change log on 5th Oct were the  field VBUK - CMGST  "Overall status of credit checks changed"  from  B to A.
       ((  Status and details below
          A - Credit check was executed and document is OK.
          B - Credit check was exectued and Document is not OK (credit block).
          C - Credit check was executed document not OK, Partial release.
          D-  Document released by Sales representative. ))
    2, I tried to replicate the order status for block and release, But when I release through  VKM1 / VKM3
         the change logs are getting updated with Status - D .(ie from B to D) .
      I'm  wondering that  what could be the reason that causes the system to update in the table - VBUK  - CMGST from A to B
      or because of what change from the client in the sales document header level could impact this changes.
      Note - There is no payment which received from customer on that day.
      Please let me know in case if you are getting the clue...
      Thanks in Advance..
      - Pugal stalin

    Hi
    A simple credit check, as the name suggests, is very simple in nature. The functionality is limited and considers only open A/R items and open items from special G/L and sales orders for performing the credit checks. When you create/change a sales order that is relevant for a simple credit check, SAP calculates the payer/customeru2019s credit exposure by adding the open A/R balance for the customer, open item balances from the special G/L, and the net sales order value. This credit exposure is then compared against the customer credit limit maintained in the customeru2019s credit master. If the credit exposure is greater than the credit limit, the system sets the credit check status as u201Cfailu201D and shows a warning, generates an error message, or performs a delivery block
    Regards from Pakistan

  • Restricting User from Status Change

    Dear All,
    I have the below requirement in support ticket :-
    1. End User can confirm only the calls pertaining to them.
    2. End User is allowed to change the status "In Process" and "Confirmed".
    3. Message processor is allowed to change the status "Customer Action" and " Proposed Solution"
    Regards,
    Raj

    Hi
    If standard roles as per the guide not helping you thn
    you can customize them more...for e.g A user "X" can set status but User "Y" cannot ..to do this use this authorization object
    authorization object B_USERSTAT  and authorization key can be created and assigned to ur each status in the status profile
    So for e.g...for same status profile -
    X & Y are processors but X cannot set certain status which Y can
    Hope it answer ur query
    Regards
    Prakhar

  • Installation order is locked by user after status change

    Hi Experts,
    As we confirm the proof of delivery in R3, I am changing the status of CRM installation order as delivered thro badi for that I am using FM CRM_ORDER_MAINTAIN then FM CRM_ORDER_SAVE and then doing commit work. But after changing the status of installation order in CRM. when I tried to edit the installation order it is saying Installation order is locked by RFCUSER of R3. system dont allow me to edit order. so please guide how to remove lock of order
    Thanks & Regards,
    Abhiiesh.

    Hi,
    IF sy-subrc = 0.
                      CLEAR : l_input_field_names,l_input_fields_order, l_status, t_status.
                      REFRESH:t_status.
                      l_input_fields_order-ref_handle = '0000000000'.
                      l_input_fields_order-ref_guid = wa_orderadm_h-guid.
                      l_input_fields_order-ref_kind = 'A'.
                      l_input_fields_order-objectname = 'STATUS'.
                      l_input_field_names-fieldname = 'ACTIVATE'.
                      INSERT l_input_field_names
                        INTO TABLE l_input_fields_order-field_names.
                      l_input_field_names-fieldname = 'REF_HANDLE'.
                      INSERT l_input_field_names
                        INTO TABLE l_input_fields_order-field_names.
                      l_input_field_names-fieldname = 'REF_KIND'.
                      INSERT l_input_field_names
                        INTO TABLE l_input_fields_order-field_names.
                      l_input_field_names-fieldname = 'STATUS'.
                      INSERT l_input_field_names
                        INTO TABLE l_input_fields_order-field_names.
                      INSERT l_input_fields_order INTO TABLE t_input_fields_order.
                      l_status-ref_handle = '0000000000'.
                      l_status-ref_guid = wa_orderadm_h-guid.
                      l_status-ref_kind = 'A'.
                      l_status-status = 'E0021'.
                      l_status-activate = 'X'.
                      APPEND l_status TO t_status.
                      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
                        EXPORTING
                          it_status         = t_status
                        IMPORTING
                          et_exception      = lt_exception
                        CHANGING
                          ct_input_fields   = t_input_fields_order
                        EXCEPTIONS
                          error_occurred    = 1
                          document_locked   = 2
                          no_change_allowed = 3
                          no_authority      = 4
                          OTHERS            = 5.
                      IF sy-subrc EQ '0'.
                        CLEAR:order_guid.
                        REFRESH:order_guid.
                        APPEND wa_orderadm_h-guid TO order_guid.
                        CLEAR ret_objects.
                        CALL FUNCTION 'CRM_ORDER_SAVE'
                          EXPORTING
                            it_objects_to_save   = order_guid
                          IMPORTING
                            et_saved_objects     = ret_objects
                            et_objects_not_saved = lt_objects_not_saved
                            et_exception         = lt_exception
                          EXCEPTIONS
                            document_not_saved   = 1
                            OTHERS               = 2.
    *                    COMMIT WORK.
                        IF sy-subrc = 0.
                          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                            EXPORTING
                              wait = 'X'.
                        ENDIF.
                      ENDIF.
                    ENDIF.

  • Monitoring user msater data change through CCMS

    Hello Experts,
    I have a requirement where I need to set up a system in which a mail should be triggered to SAP mailbox or internet mail (of one particular person or more than one person) when a SAP_ALL or SAP_NEW profile is assigned to users through SU01 transaction.
    I was trying to implement this by using CCMS (under MTE Security)
    Can anyone please guide me if this can be achieved by CCMS or is there any other method?
    Any detailed document to implement this would be of great help.
    Thanks in Advance.

    Hi Yoganand,
    thanks a lot for your helpful answer!
    I did not know that CEN first calls the sapccm4x agent and only in case of inactivity it uses the RFC based data collection method.
    I never could find that info anywhere in the SAP help.
    From time to time I have the following situations with a system, who's built-in RFC account has been locked out:
    When I open the monitor in RZ20, the login account shows up. I cancel and finally the monitor comes up and the data of this system is included!!
    That could be something like a timeout effect: after a certain number of seconds, CEN tries to get data over the RFC in addition to still trying the agent ... and then the agents finally answers and delivers the MTE data (the RFC cannot authenticate and therefore will never deliver anything ... )
    Rigas

  • ASM, Listener, Instance status changes to OFFLINE.

    Hi All,
    I have completed the installation part...whereby installed Clusterware (no OCFS2), ASM and the RAC database S/w along with the database. The RAC version is Oracle 10.2.0.1. The installation is done on the CentOS operating system.
    The crs_stat -t shows all the resources. I am facing the following issue.
    1) After rebooting the server, most of the resources status changes to UNKNOWN. I need to stop all the resources and then need to restart it again (crs_start -all).
    2) The ASM, Listener and Instances resources status changes to OFFLINE after restarting all the resources. This happen regularly. Below is the output.
    [root@rac1 bin]# ./crs_stat -t
    Name Type Target State Host
    ora....B1.inst application ONLINE ONLINE rac1
    ora....B2.inst application ONLINE OFFLINE
    ora.RACDB.db application ONLINE ONLINE rac1
    ora....SM1.asm application ONLINE ONLINE rac1
    ora....C1.lsnr application ONLINE ONLINE rac1
    ora.rac1.gsd application ONLINE ONLINE rac1
    ora.rac1.ons application ONLINE ONLINE rac1
    ora.rac1.vip application ONLINE ONLINE rac1
    ora....SM2.asm application ONLINE OFFLINE
    ora....C2.lsnr application ONLINE OFFLINE
    ora.rac2.gsd application ONLINE ONLINE rac2
    ora.rac2.ons application ONLINE ONLINE rac2
    ora.rac2.vip application ONLINE ONLINE rac1
    If someone can help me with some solution for Point 2, it will be great.
    Regards
    Amit.

    Your Database started completely, right?
    You found ASM processes, right?
    You can check by:
    srvctl status asm -n <node_name>
    How?
    try to stop/start cluster again...
    Or try to start step by step -> nodeapps -> ASM -> database by use srvctl command-line
    anyway if you serious about resulting from crs_stat command-line:
    You need to unregister from Cluster and add it again.

  • Kanban status change trnsactionwise

    Dear all,
    I would like to know, can we control the GR through transactions for kanban production orders? I mean, when i confirm production order through CO15 transaction, i should do confirmation, auto GR  (Using control key) and kanban status change.
    But when i want to force kanban status change through "PK31", GR should not happen for the production order.
    In this case i am converting a In Process Kanban status to Full. Sequence is from 3 to 5.
    If anyone knows of kanban status change control through trnasactions, please let me know.
    Thanks,
    Sharat

    No Answer received yet

  • Errors while Changing the Database to Mutli User Mode from Single user mode in SQL Server 2012

    Hi,
    Good Afternoon :).  Need your help in resolving one of the issue with SQL Server 2012.
    Today, we kept one of the database in the Single User mode and wanted to bring back to Multi User mode.  But we are getting the below error.  There are no user sessions connected to this database which are blocking each other.  I see multiple
    SYSTEM sessions are in blocked state.  The blocking is not cleared even affter restarting the SQL services.
    Verified the SQL Server Errorlog and couldnt get much useful information to troubleshoot the issue.
    pasted the information from the sys.sysprocesses as well for your kind reference.
    Msg 1205, Level 13, State 68, Line 1
    Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Msg 5069, Level 16, State 1, Line 1
    ALTER DATABASE statement failed.
    spid
    kpid
    blocked
    waittype
    waittime
    dbid
    login_time
    status
    cmd
    18
    1004
    36
    0x0005
    144
    5
    4/9/2014 13:13
    background                    
    TASK MANAGER    
    35
    1796
    36
    0x0005
    35
    5
    4/9/2014 13:34
    background                    
    TASK MANAGER    
    36
    2464
    37
    0x0005
    363
    5
    4/9/2014 13:34
    background                    
    TASK MANAGER    
    37
    5100
    36
    0x0005
    254
    5
    4/9/2014 13:04
    background                    
    TASK MANAGER    

    Clearly 36 and 37 are causing deadlock.
    see
    https://www.simple-talk.com/sql/database-administration/handling-deadlocks-in-sql-server/
    http://www.mssqltips.com/sqlservertip/1036/finding-and-troubleshooting-sql-server-deadlocks/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • User status change document

    There is a requirement , the project will be created and then a user status will be changed in 5 steps as the project goes through approval process and at the end of the process the project will be released. I want to tract down the entire process of the user status change over time. How can I do that, creating change documents for status profile? But in one place I found that change document only created if system status is set to released? In my case system status will be set to release only after all the status change in user status happened.

    Hello,
    Asides from the obvious adding of a new status to status profile SDADHEAD, you may want to have a look at the SPRO activities:
    SAP Solution Manager
    -> Scenario-Specific Settings
      -> Change Request Management
       -> Extended Configuration
        -> Change Request Management
         -> Change Transaction
          -> Change Transaction Types
            o Define Status Attributes
    Also activity "Make Settings for Change Transaction Types" in the same path is important.
    Best regards,
    Miguel Ariñ

  • How to see changes in database made by other users

    If few users are connected to one database what should be done that all users could see changes (updates, inserts) made by one of them?
    I have set conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
    and statement = DatabaseConnection.conn.createStatement
    (ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    but phrase dmd.othersUpdatesAreVisible(ResultSet.TYPE_SCROLL_SENSITIVE) returns false.
    I will be grateful for any help

    I was thinking about it, but the possibility of of
    refreshing data without users beinig involved and
    only when it is needed Something of a contradiction. If the user is not involved then you don't know if the information is needed or surplus to requirements.
    seems more elegant to meOn the contrary - it's an architectural kludge. Solutions of this type are fragile. This may be acceptable in return for an improved user experience, but you need to weigh this particular improvement against possible degradation elsewhere as a result of it.
    Databases are designed to be queried. You're trying to have the database notify you. Given this you will have to trade some quality in return for the feature you're after.
    Note also that transactionality is pretty much about avoiding the scenario (views on incomplete or conflicting transactions) that you're seeking. Given how much effort goes into avoiding this are you absolutely sure you've thought through the possible consequences of it? What about transactions that get rolled back and thus (effectively) never occur, for example - should your users be able to see these?
    So, your trade-offs are:
    Polling - Pro: gives you the behaviour you ask for. Con: Fragile, may cause performance problems, possibly unwise for business reasons. Have you performed usability testing (http://useit.com/) to ensure your users actually need this?
    Manual updates - Pro: reliable, performant, ACID. Con: Not the dynamic behaviour you ask for.
    There are two other possibilities which have not been discussed. I mention them for the sake of completeness, but I don't recommend them.
    Database Notification - Pro: as manual. Con: not a portable solution; if possible at all you will need to take advantage of database specific features such as triggers and Java stored procedures. Adds considerable complexity to the database layer and thus requires alert and informed DBAs (worth their weight in gold).
    Application Notification - Pro: portable to some extent. Con: agnostic about updates occurring outside your application. Requires a solid architectural base to be robust.
    (edit: after re-reading the OP, I'm not sure if he does or does not want to see incomplete transactions; disregard those points if he doesn't.)

  • How to generate a report from crm table to find out user status changes

    Dear all,
    Could you please help me on generating a report from SAP CRM table level
    to find out user status changes in crm orders for a specific period of time?
    Thanks in advance,
    Regards,
    Shaik

    Hi Shaik.
    You would not need to write report for this. You need to create a Table view mainenance for the CRMD_ORDERADM_H or CRMD_ORDERADM_I for whichever  you need.
    Follow the below or search on google for more on table view maintenance.
    Go to SE11, give the table name and click on change. Then Go to utilities--> Table maintenance generator.
    In the table maintenance generator screen, you should give Authorization Group,
    Function Group name (Function Group name can be same as table name),
    Maintenance type can be one step or two step, usually you will create with one
    step. You should give maintenance screen number. After clicking on create button,
    a table maintenance generator will be created.
    To check it go to SM30 . In SM30, you find display, Maintain options.
    You can view the table contents by choosing Display and  supplying the selection criteria of dates.
    Regards
    Apoorva

  • EXIT/ BADI/ Enhancement point for User Status change in Order

    Hi all,
    I am looking for an EXIT or a BADI or an enhancement point specifically for user status change in an order thru IW31/IW32.
    I have the exit names for Order PBO, PAI, 'SAVE' event etc. so m not looking for generic answers.
    I have to put some validations for the Order on USER STATUS CHANGE. Let me know if any of u have any pointers on that.
    Thanks and Regards,
    Sonal

    Hi,
    Use this Enhancement IWO10009 and call these function module to change the User Status
    STATUS_TEXT_EDIT --> To Read the existing status.
    STATUS_CHANGE_INTERN_VB --> to change the status.
    Regards,
    Satish

  • User Status change problem in Process Order

    Hi,
    We are in process of upgrading our system from 4.6C to ECC 6.0. I have a problem with User status change for process Orders.
    In 4.6C we are using the profile x with settings:
    10     ZNEW     Created process order     10     90     1     1     ZSTA
    20     ZLCK     Locked process order     20     90     1     1     ZREV
    30     ZOPN     Reopened process order     20     90     1     1     ZOPN
    40     ZMST     MES order started     20     90     1     1     ZMST
    50     ZMCL     MES order closed     20     90     1     1     ZMCL
    90     ZTEC     Technically completed      20     90     1     1     ZTEC
    In ECC 6.0 we also use the same profile settings as above.
    The problem is in ECC 6.0 when I do a goods receipt the User status changes to ZTEC . The process followed is ..Create process order, Release Order, Goods issue, Phase partuial confirmations, Goods receipt and then Finla confirmations of phases. Now in 4.6C if i do the above process the User status remains at ZMST and it only changes to ZTEC when i technically complete the order but in ECC 6.0 when I do a goods recipt from above steps the User status changes to ZTEC. THis should not happen.
    Any pointers will be very helpful.

    Hi,
    The log for production order preliminiary costing is not saved. Therefore, once the order is saved, there is no log available anymore (this is by the way a question of PP; none of the logs is saved).
    Hope that helps...
    Regards,
    Declan

  • User status change in inspection lot

    sir,
    when i am doing  ud in qa11 that there is compulsary a USER STAUS must be QAA Aprroval by QA manager if user staus is QCNA not approvewd by QA manager then it gives error for user status changes must be compulsary.
        so where we can change that user status of .I have a one option in qa02 is there any another options.
    Please guide me

    Dear Prakash
    If you want to manualy change the status in QA11, you can change there itself. Near to the user status there is a change where you can change the user status ( Set status button - tick and change button)
    Regards
    Gajesh

Maybe you are looking for

  • How do I get a refund for adding more storage to my iCloud?

    How do I contact apple to request a refund for an iCloud storage plan iv paid for but no longer need?

  • My printer officejet pro 8500A plus won't go into power or screen saver mode with XP Prof/

    why doesn't my printer officejet pro 8500A plus go into power save or screen saver mode with windows XP Professional? I have updated the firmware, i've put the printer through a power cycle, I did a semifull reset. I checked the boxes to on for power

  • Default GL for Services

    Dear SAPians, I have a scenario from the client, they want to default the GL account for services while creating the PR. I have assigned a GL to val class 3200 in GBB VBR. I have also assigned GL to the service group in transaction OMQW. Am i missing

  • Why would you add Paths to a jpeg?

    Hi Everyone! I've been using Ps on and of for a few years now as a hobby so I'm somewhat able to find my way around it. Now for the actual question: Why would you add Paths to a jpeg? Moreover why split it into several paths? I have a vague memory of

  • Burning nightmare!!!!

    I am having a big burning problem. I have made several imovie projects some with pictures and video etc. and each time I try to burn them I get the same error message. It says there were errors during burning, then I click ok and it says there was an